Skip to content

secret_storage_file config param for store cookie secret#306

Merged
bugy merged 1 commit into
bugy:masterfrom
miksir:secret_storage_file
Jun 5, 2020
Merged

secret_storage_file config param for store cookie secret#306
bugy merged 1 commit into
bugy:masterfrom
miksir:secret_storage_file

Conversation

@miksir

@miksir miksir commented Jun 4, 2020

Copy link
Copy Markdown

secret_storage_file option for move secure cookie key file. Otherwise cookie reseted on docker container recreation.

@bugy

bugy commented Jun 5, 2020

Copy link
Copy Markdown
Owner

Hi @miksir thanks for your changes, they definitely make sense!
But what do you think about configuring the whole temp folder instead? I think it would be more flexible/helpful

@miksir

miksir commented Jun 5, 2020

Copy link
Copy Markdown
Author

IMHO no. TEMP folder is for temporary files which is safe to delete. Temporary files should not change application behavior if removed. But files with any kind of state - it's not temporary file. In point of linux directories view - it's or /etc (config) or /var. IMHO it's much closer to config, many frameworks even has config option "secret key" for hmac signing.

@bugy

bugy commented Jun 5, 2020

Copy link
Copy Markdown
Owner

Hmm, maybe Script server should store the secret file in the config folder then?

@miksir

miksir commented Jun 5, 2020

Copy link
Copy Markdown
Author

May be :) as for me - separate path is better because conf folder mounted as ro volume to container

@bugy

bugy commented Jun 5, 2020

Copy link
Copy Markdown
Owner

ok :)

@bugy bugy merged commit 42b7898 into bugy:master Jun 5, 2020
@bugy bugy added this to the 1.16.0 milestone Jun 6, 2020
@miksir miksir deleted the secret_storage_file branch June 11, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants