Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: feature: Use secret to derive addtional secrets deterministcally #233

Closed
wants to merge 3 commits into from

Conversation

shimunn
Copy link

@shimunn shimunn commented Jan 1, 2024

This PR adds functionality to derive additional secrets for an existing one without the need to encrypt an additional value.

age.secrets = rec {
 regular.file = ./secret.age;
 derived = regular // {
  derive = {
   # will be concatenated with secret and hashed, the hash will then be used as seed for an RNG 
   path = "test"
   # filter to be applied to the RNG
   filter = "A-F0-9";
  };
 };
};

TODO:

  • doc
  • tests
  • supress warnings during activation

@shimunn shimunn marked this pull request as draft January 1, 2024 21:02
@shimunn shimunn closed this Jan 21, 2024
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