Skip to content

fix: preserve --env secrets when config defines secrets#460

Open
cadeljones wants to merge 1 commit intorailwayapp:mainfrom
cadeljones:fix/secrets-env-merge
Open

fix: preserve --env secrets when config defines secrets#460
cadeljones wants to merge 1 commit intorailwayapp:mainfrom
cadeljones:fix/secrets-env-merge

Conversation

@cadeljones
Copy link

@cadeljones cadeljones commented Feb 15, 2026

Summary

  • Preserve CLI --env secrets when config file also defines secrets by merging both sources instead of replacing one with the other.
  • Add coverage for secret merge behavior in core/core_test.go to prevent regressions.

Context

Union env-derived secret names with merged config secrets so file-level  no longer drops build-time env vars. Add a regression test that covers this merge behavior.
@iloveitaly
Copy link
Collaborator

@cadeljones thanks for this—great fix. Two things I need to do before I can merge this:

  1. Add an integration test for this (examples/ entry that tests this functionality)
  2. Update snapshots (mise run test-update-snapshots)

If you have time to do those, great! If not, I'll get them when I can.

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.

2 participants