mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-07-17 14:35:25 +08:00
Fix secrets mount point and remove default
This commit is contained in:
parent
16e94d49ea
commit
79706f6748
1 changed files with 1 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ type loggingConfig struct {
|
|||
|
||||
type manifest struct {
|
||||
Secrets []secret `json:"secrets"`
|
||||
SecretsMountPoint string `json:"secretsMountpoint"`
|
||||
SecretsMountPoint string `json:"secretsMountPoint"`
|
||||
SymlinkPath string `json:"symlinkPath"`
|
||||
SSHKeyPaths []string `json:"sshKeyPaths"`
|
||||
GnupgHome string `json:"gnupgHome"`
|
||||
|
|
@ -497,12 +497,6 @@ func (app *appContext) validateSecret(secret *secret) error {
|
|||
|
||||
func (app *appContext) validateManifest() error {
|
||||
m := &app.manifest
|
||||
if m.SecretsMountPoint == "" {
|
||||
m.SecretsMountPoint = "/run/secrets.d"
|
||||
}
|
||||
if m.SymlinkPath == "" {
|
||||
m.SymlinkPath = "/run/secrets"
|
||||
}
|
||||
if m.GnupgHome != "" {
|
||||
errorFmt := "gnupgHome and %s were specified in the manifest. " +
|
||||
"Both options are mutually exclusive."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue