Datatypes › Secrets and credentials (passwords, keys, tokens)

HashiCorp Vault token

ID hashicorp_vault_token

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Token that authenticates a client to HashiCorp Vault. Since Vault 1.10 the prefix names the token type - hvs. for service tokens, hvb. for batch tokens and hvr. for recovery tokens - and at least 24 random characters follow; service tokens in practice are much longer. Vault 1.9 and earlier used the prefixes s., b. and r., which are too short to recognize reliably and are not covered.

Parent datatype
Access token access_token
Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
70/100 · missing: examples, mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
Datadog Sensitive Data Scanner, GitGuardian, GitHub secret scanning, Gitleaks, TruffleHog

Regular expression

^hv[sbr]\.[A-Za-z0-9_.-]{24,}$

Python re syntax.

Test a value

Examples

ValueDescription
s.ExampleTokenNotReal0000 invalid Legacy format of Vault 1.9 and earlier
hvs.TooShort invalid Too short

Sources

Use this record