**secret is of a type string
In comparison Certificate object allows Text or Env Var or a File:**
Before 0.16 it was possible to use %{file:/whatever} expansions basically everywhere, the current design is more limiting.
**secret is of a type string
In comparison Certificate object allows Text or Env Var or a File:**
Before 0.16 it was possible to use %{file:/whatever} expansions basically everywhere, the current design is more limiting.
This issue also arises when trying to declaratively configure Stalwart.
For example, with NixOS, you can set Stalwart to read a DNS API token from a secret file decrypted by sops-nix, but if you want to set a user’s password, you have to end up with their password in the actual stalwart-cli apply plan file, which breaks secrecy.
Ideally, this would be fixed by making PasswordCredential.secret into a SecretText, but that would be backwards-incompatible, so perhaps Credential could have two new variants: PasswordCredentialFile and PasswordCredentialEnv.
Hoping this can be resolved soon.
Just ran into the same issue - would love to see this solved.
fancy seeing you here!
(you’ve been reviewing my stalwart-provision nixpkgs PR)