listener stanza
The listener
stanza configures the addresses and ports on which Vault will
respond to requests. At this time, there are two listeners:
Unauthenticated endpoints - sensitive data redaction
There are four different types of information deemed sensitive that can be returned by unauthenticated API endpoints:
- Version number
- Build date
- Cluster name
- IP address
Vault offers the ability to configure each listener
stanza such that when appropriate,
these values will be redacted from responses.
The following API endpoints support redaction based on listener
stanza configuration:
When a value is redacted by Vault, it will be replaced with an empty string (""
).
Note: In certain situations, due to an empty string value, the related key may
no longer be present in the response object returned from the API, as that field is
omitted when the value is empty (""
).
Note: The Vault API is also consumed by the Vault CLI and UI, therefore enabling redaction settings will also affect them both.
Redaction examples
Please see redaction settings (below) for details on each redaction setting.
Example configuration for the tcp
listener,
enabling redact_addresses
,
redact_cluster_name
and
redact_version
.
API: /sys/health
curl -s https://127.0.0.1:8200/v1/sys/health | jq
:
When comparing the JSON response above to when redaction settings are not enabled,
we can see that cluster_name
is not present (it is now omitted due to being empty).
Also, that version
is now redacted and shown only as ""
.
API: sys/leader
curl -s https://127.0.0.1:8200/v1/sys/leader | jq
:
When comparing the JSON response above to when redaction settings are not enabled,
we can see that leader_address
and leader_cluster_address
are now redacted and
shown only as ""
.
API: sys/seal-status
curl -s https://127.0.0.1:8200/v1/sys/seal-status | jq
:
When comparing the JSON response above to when redaction settings are not enabled,
we can see that cluster_name
is not present (it is now omitted due to being empty).
Also, that build_date
and version
are now redacted and shown only as ""
.
CLI: vault status
When examining the output of vault status
we can see that Version
, Build Date
and HA Cluster
show as n/a
. Also, that Active Node Address
shows as <none>
.
Common configuration options
The following options apply to both types of listener (see above), and can be configured for each individual listener stanza.
Please see the sensitive data redaction explanation above for further information.
Redaction settings
redact_addresses
(bool: false)
- If enabled, will redactleader_address
andcluster_leader_address
values when applicable.redact_cluster_name
(bool: false)
- If enabled, will redactcluster_name
values when applicable.redact_version
(bool: false)
- If enabled, will redactversion
andbuild_date
values when applicable.