Applies defaults, validates (throws ConfigError) and freezes.
ReadonlyconnectConnection setup timeout in ms.
ReadonlyheadersExtra request headers (values redacted in debug output).
Optional ReadonlyhooksRequest/response hooks.
ReadonlykvDefault KV mount.
Optional ReadonlykvFixed KV version, or undefined for auto-detection.
Optional ReadonlyloggerDiagnostic logger (silent by default).
Optional ReadonlynamespaceNamespace (X-Vault-Namespace).
Optional ReadonlyproxyProxy URL (environment proxies are ignored).
ReadonlyrequestPer-attempt timeout in ms.
ReadonlyretryRetry policy.
ReadonlysecretsBase path of client.secrets() inside the KV mount ("" = the mount root).
ReadonlytlsTLS settings.
Optional ReadonlytokenClient token (redacted in every string form).
ReadonlytotalWhole-call timeout in ms, including retries.
ReadonlyurlEndpoint base URL.
Optional ReadonlyuserAppended after the standard User-Agent.
ReadonlyvalueKV data field of a client.secrets() value.
Static ReadonlyDEFAULT_Default KV mount.
Static ReadonlyDEFAULT_Default endpoint (http://127.0.0.1:8200).
Static ReadonlyDEFAULT_Default KV data field of a client.secrets() value.
Static ReadonlyENV_Prefix of every environment variable.
util.inspect form (credentials redacted).
Credential values to redact from error messages and logs.
Debug form with every credential redacted.
Returns a string representation of an object.
Throws ConfigError when a setting is invalid.
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence: explicit overrides >
GROW_HASHICORP_VAULT_<NAME> > vendor variables (VENDOR_ENV: VAULT_*) > defaults.
Reads URL, TOKEN, NAMESPACE, CA_CERT, CLIENT_CERT, CLIENT_KEY,
INSECURE_SKIP_VERIFY, PROXY, the timeouts, MAX_RETRIES, KV_MOUNT, KV_VERSION
(1, 2; 0 = auto-detect) and SECRETS_PATH.
Immutable configuration of VaultClient.