Skip to content

Conversation

@DSeeLP
Copy link

@DSeeLP DSeeLP commented Feb 14, 2025

modules/templates/default.nix generates the placeholders manifest entry by using the name of the secret in the sops.secrets attrset. sops-install-secrets looked up the placeholder using the secret name and resolved to the wrong secret when a secret was renamed.

This renames the entry in the manifest from placeholderBySecretName to placeholderBySecretKey and changes the lookup to use the key instead of the name.

This fixes my issue in #688 but results in a new issue that there can be multiple keys.

I think another solution would be to store the secrets in the manifest in an object instead of a list and use the name of the secret in the sops.secrets attrset as the key.

modules/templates/default.nix generates the placeholders manifest entry
by using the name of the secret in the `sops.secrets` attrset.
sops-install-secrets looked up the placeholder using the secret name and
resolved to the wrong secret when a secret was renamed.

This renames the entry in the manifest from `placeholderBySecretName`
to `placeholderBySecretKey` and changes the lookup to use the key instead
of the name.

Fixes Mic92#688
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