Replies: 1 comment 3 replies
|
Thanks for the detailed report! I dug into this and
profile_flag // -P/--profile
.or_else(|| (*env::FNOX_PROFILE).clone()) // FNOX_PROFILE env var
.unwrap_or_else(|| "default".to_string()) // fallbackThe I built
So the env var is honored in every case. The key detail: an empty/invalid Common GitHub Actions reasons for this:
Could you share:
That'll confirm whether the env var is reaching the step as This comment was generated by Claude Code. |
Uh oh!
There was an error while loading. Please reload this page.
I just switched a project to a setup with Vault + fnox. Locally, I use the 1Password provider to access the Vault token. In a Github CI pipeline, the Vault token should be supplied by the hashicorp/vault-action. This means, that I have no access to 1Password in the CLI.
I thought I solved this by moving the 1Password provider into a development profile, while all secrets used for the production deployment live in their own profile.
The
ci-redactcommand works as expected with--profile production:However, when I set
FNOX_PROFILE=productionas an environment variable, the command fails because it wants to access secrets from thedevelopmentprofile.Is this intended behavior? From my impression and reading the source code, I though that ci-redact would respect the profile setting instead of fetching all secrets.
All reactions