-
-
Notifications
You must be signed in to change notification settings - Fork 497
[FrameworkBundle][Secret] Leverage vault to store APP_SECRET env var #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,12 @@ | |
}, | ||
"composer-scripts": { | ||
"cache:clear": "symfony-cmd", | ||
"assets:install %PUBLIC_DIR%": "symfony-cmd" | ||
"assets:install %PUBLIC_DIR%": "symfony-cmd", | ||
"secrets:generate-keys": "symfony-cmd", | ||
"secrets:set APP_SECRET --random": "symfony-cmd" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not know if I should use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesn't this generate a new APP_SECRET every time? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indeed it does :s 2 options:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nicolas-grekas friendly ping :) |
||
}, | ||
"env": { | ||
"APP_ENV": "dev", | ||
"APP_SECRET": "%generate(secret)%" | ||
"APP_ENV": "dev" | ||
}, | ||
"gitignore": [ | ||
"/.env.local", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the composer scripts run on each install/update. you don't want to regenerate keys every time
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to the command doc:
@Tobion iiuc it is ok like this; after the first install, other updates will change nothing related to those keys