-
Notifications
You must be signed in to change notification settings - Fork 199
Description
I use NixOS for a couple dozen microservices, each has their own secrets that they require. Some services require the same credentials, for which I'd like to re-use existing entries in secrets.yaml. However, I also use separate files per service to not grant services access to secrets that they do not require at runtime.
The current options have a key attribute that I can use to select a subfield of the config. Using one key per microservice would require me to duplicate secrets within the same file. Using one key per logical secret group would not be powerful enough, as microservices might require multip0le secrets from multiple groyps.
I think changing the type of the key option to a list that gets merged into the final secrets file during evaluation would be a solution to this problem. But maybe this is already somehow possible and I am not aware of it.
Thank you for writing and maintaining this module!