Skip to content

Fix: RAM-based secrets injection + config save encryption#149

Merged
jonathonbyrdziak merged 1 commit into
masterfrom
fix/aws-secrets-ram-based-injection
Mar 24, 2026
Merged

Fix: RAM-based secrets injection + config save encryption#149
jonathonbyrdziak merged 1 commit into
masterfrom
fix/aws-secrets-ram-based-injection

Conversation

@jonathonbyrdziak

Copy link
Copy Markdown
Contributor

Summary

  • ConfigSave now re-encrypts .env files before committing when deployment.secrets = 'encrypted', fixing the bug where config save pushed stale .env.enc
  • ProtocolStart no longer writes secrets to disk — keeps them in /dev/shm (RAM) and passes absolute paths to the Docker Compose override
  • SecretsProvider uses absolute paths in env_file override YAML so Docker can read from /dev/shm, and adds debug logging to /var/log/protocol/secrets-provider.log for troubleshooting

Test plan

  • Run protocol config save with deployment.secrets = 'encrypted' — verify .env.enc is updated in git
  • Run protocol start with deployment.secrets = 'aws' — verify docker exec <container> env shows AWS secrets
  • Confirm no .env.protocol-secrets file is written to the project directory
  • Check /var/log/protocol/secrets-provider.log for debug output

🤖 Generated with Claude Code

- ConfigSave now re-encrypts .env files before commit when deployment.secrets
  is set to 'encrypted', so config save actually pushes updated .env.enc
- ProtocolStart no longer copies secrets to disk; passes /dev/shm path directly
  to Docker Compose override, keeping secrets RAM-only
- SecretsProvider uses absolute paths in env_file override so Docker can read
  from /dev/shm
- Added debug logging to SecretsProvider for troubleshooting secrets resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak
jonathonbyrdziak merged commit f035825 into master Mar 24, 2026
5 of 8 checks passed
@jonathonbyrdziak
jonathonbyrdziak deleted the fix/aws-secrets-ram-based-injection branch March 24, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant