Skip to content

Change key option to type listOf str #879

@mainrs

Description

@mainrs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions