lib.secrets:
lib.secrets.mkUserSecret
Create secrets for use with agenix
.
Arguments
- [file] the age file to use for the secret
- [mode] the permissions of the secret, this defaults to "400"
Type
mkUserSecret :: (String -> String -> String -> String) -> AttrSet
Example
mkUserSecret { file = "./my-secret.age"; }
=> {
file = "./my-secret.age";
mode = "400";
}
lib.secrets.mkSystemSecret
Create secrets for use with agenix
.
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"
Type
mkSystemSecret :: (String -> String -> String -> String) -> AttrSet
Example
mkSystemSecret { file = "./my-secret.age"; }
=> {
file = "./my-secret.age";
owner = "root";
group = "root";
mode = "400";
}