Skip to content

Commit

Permalink
set configSeal.Type to the type specified via the env var if provided (
Browse files Browse the repository at this point in the history
  • Loading branch information
calvn authored and briankassouf committed Mar 25, 2019
1 parent 1944263 commit 93e1cd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ func (c *ServerCommand) Run(args []string) int {
sealType := vaultseal.Shamir
if !configSeal.Disabled && os.Getenv("VAULT_SEAL_TYPE") != "" {
sealType = os.Getenv("VAULT_SEAL_TYPE")
configSeal.Type = sealType
} else {
sealType = configSeal.Type
}
Expand Down

0 comments on commit 93e1cd0

Please sign in to comment.