Skip to content

Commit 7b684ac

Browse files
[FrameworkBundle] Leverage vault to store APP_SECRET env var
1 parent f5f76c3 commit 7b684ac

File tree

10 files changed

+43
-3
lines changed

10 files changed

+43
-3
lines changed

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,13 @@ one used by ``symfony/framework-bundle``:
335335
},
336336
"composer-scripts": {
337337
"cache:clear": "symfony-cmd",
338-
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd"
338+
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
339+
"secrets:generate-keys": "symfony-cmd",
340+
"secrets:set APP_SECRET --random": "symfony-cmd",
341+
"secrets:decrypt-to-local": "symfony-cmd"
339342
},
340343
"env": {
341-
"APP_ENV": "dev",
342-
"APP_SECRET": "%generate(secret)%"
344+
"APP_ENV": "dev"
343345
},
344346
"gitignore": [
345347
".env",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../4.2/config/bootstrap.php
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../4.2/config/packages/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../4.4/config/routes/dev/framework.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/prod.decrypt.private.php
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../4.2/config/services.yaml
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"bundles": {
3+
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/",
7+
"public/": "%PUBLIC_DIR%/",
8+
"src/": "%SRC_DIR%/"
9+
},
10+
"composer-scripts": {
11+
"cache:clear": "symfony-cmd",
12+
"assets:install %PUBLIC_DIR%": "symfony-cmd",
13+
"secrets:generate-keys": "symfony-cmd",
14+
"secrets:set APP_SECRET --random": "symfony-cmd",
15+
"secrets:decrypt-to-local": "symfony-cmd"
16+
},
17+
"env": {
18+
"APP_ENV": "dev",
19+
"#TRUSTED_PROXIES": "127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16",
20+
"#TRUSTED_HOSTS": "'^localhost|example\\.com$'"
21+
},
22+
"gitignore": [
23+
"/.env.local",
24+
"/.env.local.php",
25+
"/.env.*.local",
26+
"/%PUBLIC_DIR%/bundles/",
27+
"/%VAR_DIR%/",
28+
"/vendor/"
29+
]
30+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../4.2/post-install.txt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../4.4/public/index.php

symfony/framework-bundle/5.4/src

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../4.2/src/

0 commit comments

Comments
 (0)