lib.secrets
lib.secrets:
Section titled “lib.secrets:”lib.secrets.mkSecret
Section titled “lib.secrets.mkSecret”Create secrets for use with agenix.
Arguments
Section titled “Arguments”- [file] the age file to use for the secret
- [owner] the owner of the secret, this defaults to “root”
- [group] the group of the secret, this defaults to “root”
- [mode] the permissions of the secret, this defaults to “400”
mkSecret :: (String -> String -> String -> String) -> AttrSetExample
Section titled “Example”mkSecret { file = "./my-secret.age"; }=> { file = "./my-secret.age"; owner = "root"; group = "root"; mode = "400";}