mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-17 02:47:07 +00:00
* docs: Update VAULT_ALLOW_PENDING_REMOVAL_MOUNTS doc
This commit is contained in:
@@ -40,6 +40,7 @@ import (
|
||||
vaulthttp "github.com/hashicorp/vault/http"
|
||||
"github.com/hashicorp/vault/internalshared/configutil"
|
||||
"github.com/hashicorp/vault/internalshared/listenerutil"
|
||||
"github.com/hashicorp/vault/sdk/helper/consts"
|
||||
"github.com/hashicorp/vault/sdk/helper/jsonutil"
|
||||
"github.com/hashicorp/vault/sdk/helper/logging"
|
||||
"github.com/hashicorp/vault/sdk/helper/strutil"
|
||||
@@ -1266,6 +1267,16 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
}
|
||||
}
|
||||
|
||||
if allowPendingRemoval := os.Getenv(consts.VaultAllowPendingRemovalMountsEnv); allowPendingRemoval != "" {
|
||||
var err error
|
||||
vault.PendingRemovalMountsAllowed, err = strconv.ParseBool(allowPendingRemoval)
|
||||
if err != nil {
|
||||
c.UI.Warn(wrapAtLength("WARNING! failed to parse " +
|
||||
consts.VaultAllowPendingRemovalMountsEnv + " env var: " +
|
||||
"defaulting to false."))
|
||||
}
|
||||
}
|
||||
|
||||
// If mlockall(2) isn't supported, show a warning. We disable this in dev
|
||||
// because it is quite scary to see when first using Vault. We also disable
|
||||
// this if the user has explicitly disabled mlock in configuration.
|
||||
|
||||
Reference in New Issue
Block a user