> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/virtual-hsm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/virtual-hsm/documentation/setup/configuration/server/parameters.md). Agents can also search and read this documentation through its [MCP server](https://docs.enclaive.cloud/virtual-hsm/~gitbook/mcp).

# Parameters

Learn more about the parameters that you can configure to run the vHSM server.

### Parameters

This table outlines essential configuration parameters for Vault. These parameters control various aspects of vHSM behaviour, including storage, authentication, logging, security, and high availability. Each parameter is described in detail, providing guidance on how to configure Vault for optimal performance and security based on your deployment needs.

| Parameter                                                                                                      | Type               | Default       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------- | ------------------ | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **storage**                                                                                                    | `[StorageBackend]` | `<required>`  | Configures the storage backend where Vault data is stored. Please see the storage backends documentation for the full list of available storage backends. Running Vault in HA mode would require coordination semantics to be supported by the backend. If the storage backend supports HA coordination, HA backend options can also be specified in this parameter block. If not, a separate ha\_storage parameter should be configured with a backend that supports HA, along with corresponding HA options. |
| **ha\_storage**                                                                                                | `[StorageBackend]` | `nil`         | Configures the storage backend where Vault HA coordination will take place. This must be an HA-supporting backend. If not set, HA will be attempted on the backend given in the storage parameter. This parameter is not required if the storage backend supports HA coordination and if HA specific options are already specified with storage parameter. (Refer to Use Integrated Storage for HA Coordination for a usage example.)                                                                          |
| **listener**                                                                                                   | `[Listener]`       | `<required>`  | Configures how Vault is listening for API requests.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **user\_lockout**                                                                                              | `[UserLockout]`    | `nil`         | Configures the user-lockout behaviour for failed logins. For more information, please see the user lockout configuration documentation.                                                                                                                                                                                                                                                                                                                                                                        |
| **seal**                                                                                                       | `[Seal]`           | `nil`         | Configures the seal type to use for auto-unsealing, as well as for seal wrapping as an additional layer of data protection.                                                                                                                                                                                                                                                                                                                                                                                    |
| **cluster\_name**                                                                                              | `string`           | `<generated>` | Specifies the identifier for the Vault cluster. If omitted, Vault will generate a value. When connecting to Vault Enterprise, this value will be used in the interface.                                                                                                                                                                                                                                                                                                                                        |
| **cache\_size**                                                                                                | `string`           | `"131072"`    | Specifies the size of the read cache used by the physical storage subsystem. The value is in number of entries, so the total cache size depends on the size of stored entries.                                                                                                                                                                                                                                                                                                                                 |
| **disable\_cache**                                                                                             | `bool`             | `false`       | Disables all caches within Vault, including the read cache used by the physical storage subsystem. This will very significantly impact performance.                                                                                                                                                                                                                                                                                                                                                            |
| **disable\_mlock**                                                                                             | `bool`             | `false`       | Disables the server from executing the mlock syscall. mlock prevents memory from being swapped to disk. Disabling mlock is not recommended unless using integrated storage. Follow the additional security precautions outlined below when disabling mlock. This can also be provided via the environment variable VAULT\_DISABLE\_MLOCK.                                                                                                                                                                      |
| **plugin\_directory**                                                                                          | `string`           | `""`          | A directory from which plugins are allowed to be loaded. Vault must have permission to read files in this directory to successfully load plugins, and the value cannot be a symbolic link.                                                                                                                                                                                                                                                                                                                     |
| **plugin\_tmpdir**                                                                                             | `string`           | `""`          | A directory that Vault can create temporary files in to support Unix socket communication with containerized plugins. If not set, Vault will use the system's default directory for temporary files. Generally not necessary unless you are using containerized plugins and Vault does not share a temporary folder with other processes, such as if using systemd's PrivateTmp setting. This can also be specified via the VAULT\_PLUGIN\_TMPDIR environment variable.                                        |
| **plugin\_file\_uid**                                                                                          | `integer`          | `0`           | Uid of the plugin directories and plugin binaries if they are owned by an user other than the user running Vault. This only needs to be set if the file permissions check is enabled via the environment variable VAULT\_ENABLE\_FILE\_PERMISSIONS\_CHECK.                                                                                                                                                                                                                                                     |
| **plugin\_file\_permissions**                                                                                  | `string`           | `""`          | Octal permission string of the plugin directories and plugin binaries if they have write or execute permissions for group or others. This only needs to be set if the file permissions check is enabled via the environment variable VAULT\_ENABLE\_FILE\_PERMISSIONS\_CHECK.                                                                                                                                                                                                                                  |
| [**telemetry**](https://docs.enclaive.cloud/virtual-hsm/documentation/setup/configuration/server/telemetry.md) | `[Telemetry]`      | `<none>`      | Specifies the telemetry reporting system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **default\_lease\_ttl**                                                                                        | `string`           | `"768h"`      | Specifies the default lease duration for tokens and secrets. This is specified using a label suffix like "30s" or "1h". This value cannot be larger than max\_lease\_ttl.                                                                                                                                                                                                                                                                                                                                      |
| **max\_lease\_ttl**                                                                                            | `string`           | `"768h"`      | Specifies the maximum possible lease duration for tokens and secrets. This is specified using a label suffix like "30s" or "1h". Individual mounts can override this value by tuning the mount with the max-lease-ttl flag of the auth or secret commands.                                                                                                                                                                                                                                                     |
| **default\_max\_request\_duration**                                                                            | `string`           | `"90s"`       | Specifies the default maximum request duration allowed before Vault cancels the request. This can be overridden per listener via the max\_request\_duration value.                                                                                                                                                                                                                                                                                                                                             |
| **detect\_deadlocks**                                                                                          | `string`           | `""`          | A comma separated string that specifies the internal mutex locks that should be monitored for potential deadlocks. Currently supported values include statelock, quotas and expiration which will cause "POTENTIAL DEADLOCK:" to be logged when an attempt at a core state lock appears to be deadlocked. Enabling this can have a negative effect on performance due to the tracking of each lock attempt.                                                                                                    |
| **raw\_storage\_endpoint**                                                                                     | `bool`             | `false`       | Enables the sys/raw endpoint which allows the decryption/encryption of raw data into and out of the security barrier. This is a highly privileged endpoint.                                                                                                                                                                                                                                                                                                                                                    |
| **introspection\_endpoint**                                                                                    | `bool`             | `false`       | Enables the sys/internal/inspect endpoint which allows users with a root token or sudo privileges to inspect certain subsystems inside Vault.                                                                                                                                                                                                                                                                                                                                                                  |
| **ui**                                                                                                         | `bool`             | `false`       | Enables the built-in web UI, which is available on all listeners (address + port) at the /ui path. Browsers accessing the standard Vault API address will automatically redirect there. This can also be provided via the environment variable VAULT\_UI. For more information, please see the ui configuration documentation.                                                                                                                                                                                 |
| **pid\_file**                                                                                                  | `string`           | `""`          | Path to the file in which the Vault server's Process ID (PID) should be stored.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **enable\_response\_header\_hostname**                                                                         | `bool`             | `false`       | Enables the addition of an HTTP header in all of Vault's HTTP responses: X-Vault-Hostname. This will contain the host name of the Vault node that serviced the HTTP request. This information is best effort and is not guaranteed to be present. If this configuration option is enabled and the X-Vault-Hostname header is not present in a response, it means there was some kind of error retrieving the host name from the operating system.                                                              |
| **enable\_response\_header\_raft\_node\_id**                                                                   | `bool`             | `false`       | Enables the addition of an HTTP header in all of Vault's HTTP responses: X-Vault-Raft-Node-ID. If Vault is participating in a Raft cluster (i.e. using integrated storage), this header will contain the Raft node ID of the Vault node that serviced the HTTP request. If Vault is not participating in a Raft cluster, this header will be omitted, whether this configuration option is enabled or not.                                                                                                     |
| **log\_level**                                                                                                 | `string`           | `"info"`      | Log verbosity level. Supported values (in order of descending detail) are trace, debug, info, warn, and error. This can also be specified via the VAULT\_LOG\_LEVEL environment variable.                                                                                                                                                                                                                                                                                                                      |
| **experiments**                                                                                                | `string array`     | `[]`          | The list of experiments to enable for this node. Experiments should NOT be used in production, and the associated APIs may have backwards incompatible changes between releases. Additional experiments can also be specified via the VAULT\_EXPERIMENTS environment variable as a comma-separated list, or via the -experiment flag.                                                                                                                                                                          |
| **imprecise\_lease\_role\_tracking**                                                                           | `bool`             | `"false"`     | Skip lease counting by role if there are no role-based quotas enabled. When imprecise\_lease\_role\_tracking is set to true and a new role-based quota is enabled, subsequent lease counts start from 0. imprecise\_lease\_role\_tracking affects role-based lease count quotas, but reduces latencies when not using role based quotas.                                                                                                                                                                       |

### High availability parameters

When configuring Vault in a high-availability (HA) setup, certain parameters help optimize communication and coordination between cluster members. These parameters define how Vault nodes interact, advertise themselves, and handle request forwarding. Proper configuration ensures seamless failover, efficient request routing, and enhanced reliability. Some of the key parameters used for backends that support high availability are as follows:

<table><thead><tr><th>Parameter</th><th width="192">Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><strong>api_addr</strong></td><td><code>string</code></td><td><code>""</code></td><td>Specifies the address (full URL) to advertise to other Vault servers in the cluster for client redirection. This value is also used for plugin backends. This can also be provided via the environment variable <code>VAULT_API_ADDR</code>. In general, this should be set as a full URL that points to the value of the listener address. This can be dynamically defined with a <code>go-sockaddr</code> template that is resolved at runtime.</td></tr><tr><td><strong>cluster_addr</strong></td><td><code>string</code></td><td><code>""</code></td><td>Specifies the address to advertise to other Vault servers in the cluster for request forwarding. This can also be provided via the environment variable <code>VAULT_CLUSTER_ADDR</code>. This is a full URL, like <code>api_addr</code>, but Vault will ignore the scheme (all cluster members always use TLS with a private key/certificate). This can be dynamically defined with a <code>go-sockaddr</code> template that is resolved at runtime.</td></tr><tr><td><strong>disable_clustering</strong></td><td><code>bool</code></td><td><code>false</code></td><td>Specifies whether clustering features such as request forwarding are enabled. Setting this to <code>true</code> on one Vault node will disable these features only when that node is the active node. This parameter cannot be set to <code>true</code> if <code>raft</code> is the storage type.</td></tr></tbody></table>
