Skip to content

Commit d5f99d9

Browse files
justin808claude
andcommitted
Add SECRET_KEY_BASE to Control Plane GVC template
Adds SECRET_KEY_BASE environment variable to the Control Plane GVC template to prevent Rails from failing at startup with "Missing secret_key_base" error. For test/staging apps, a placeholder value is sufficient since security is not critical. For production apps, the comment instructs users to set a secure random value using openssl or configure via secrets. This resolves deployment failures where Rails would crash during initialization when SECRET_KEY_BASE was not present in the environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c55d3f7 commit d5f99d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.controlplane/templates/app.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ spec:
1919
- name: REDIS_URL
2020
# No password for GVC local Redis. See comment above for postgres.
2121
value: 'redis://redis.{{APP_NAME}}.cpln.local:6379'
22+
- name: SECRET_KEY_BASE
23+
# For test apps, a placeholder value is fine. For production apps, this should be
24+
# set to a secure random value using: openssl rand -hex 64
25+
# Production apps should configure this manually after app creation via a secret.
26+
value: 'placeholder_secret_key_base_for_test_apps_only'
2227
# Part of standard configuration
2328
staticPlacement:
2429
locationLinks:

0 commit comments

Comments
 (0)