Skip to content

lib.secrets

Create secrets for use with agenix.

  • [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) -> AttrSet
mkSecret { file = "./my-secret.age"; }
=> {
file = "./my-secret.age";
owner = "root";
group = "root";
mode = "400";
}