Skip to content
Back to skills

Hashicorp Vault Knowledge Patch

ASecurity

HashiCorp Vault

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentgonodekubernetesawsgcpazureterraformapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill hashicorp-vault-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hashicorp Vault Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hashicorp Vault Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-hashicorp-vault-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-hashicorp-vault-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hashicorp-vault-knowledge-patch
description: HashiCorp Vault
version: "2.2.2"
license: MIT
metadata:
  author: Nevaberry
---


# HashiCorp Vault compatibility guidance

Load this skill when upgrading Vault, changing server or policy configuration,
integrating authentication or secrets engines, or investigating cluster behavior.
Use the topic references for release-specific conditions, defaults, fixes, and
commands. Enterprise, Community, beta, and experimental qualifiers apply only
where stated.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration and known issues](references/migration-and-known-issues.md) | Upgrade planning, removals, HCL and list-policy migration, operator authentication, canonical paths, regressions |
| [Authentication, identity, and policy](references/auth-identity-and-policy.md) | ACLs, identity templates, entities, SCIM, LDAP, cloud and certificate auth, MFA, SPIFFE, Agentic IAM, OAuth |
| [Server, cluster, and storage](references/server-cluster-and-storage.md) | Listeners, quotas, storage authentication, Raft, seals, diagnostics, snapshot recovery |
| [Secrets, rotation, and synchronization](references/secrets-rotation-and-sync.md) | Rotation Manager, database and cloud credentials, LDAP static roles, KV, OS accounts, Secret Sync |
| [PKI, Transit, and managed keys](references/pki-transit-and-managed-keys.md) | RSA limits, certificate constraints, ACME, SCEP, External CA, cryptographic operations, managed keys, KMIP |
| [Plugins, agents, and delivery](references/plugins-agents-and-delivery.md) | Containers, plugin installation, Vault Client, Agent, Proxy, CLI, Go APIs, SDK, Terraform, Secrets Operator |
| [Audit, events, billing, and UI](references/audit-events-billing-and-ui.md) | Audit permissions and data, events, telemetry, licensing, utilization, client counts, GUI workflows |

## Breaking changes and deprecations

### HCL and policy migration

- Consolidate repeated attributes within each HCL configuration or ACL policy
  block. In 2.0.4, duplicate attributes are unconditional parse errors and
  `VAULT_ALLOW_PENDING_REMOVAL_DUPLICATE_HCL_ATTRIBUTES` is removed. Before
  upgrading, search server logs for `policy contains duplicate attributes`;
  creating or using a token referencing an affected policy can fail once unique
  attributes are enforced.
- Whole-list exact matching for `allowed_parameters` and `denied_parameters` is
  retired in 1.21.x. Migrate to per-element matching. During the 1.21 deprecation
  window, `VAULT_LEGACY_EXACT_MATCHING_ON_LIST` temporarily retains whole-list
  comparison when set in the server environment.
- In 2.0.1, identity-template expansion that introduces `+` or `*` causes
  `permission denied`. Use concrete identity metadata and keep intentional
  wildcards directly in the policy path. The global
  `deny_slash_in_templated_path` option rejects slashes introduced by rendered
  templates when enabled; it defaults to `false`.
- Vault lowercases policy names in the `policies` request parameter before
  checking `allowed_parameters` and `denied_parameters`. Use lowercase policy
  names in constraints on that field.
- Explicit ACL `deny` rules match paths case-insensitively under the usual
  path-specificity rules. Enterprise LIST requests with trailing slashes honor
  more-specific deny rules in 1.20.13, which can introduce permission errors.

### API callers and operator workflows

- Normalize request paths. Vault 2.0.0 rejects `/../`, `/./`, and `//` components;
  patched 1.x releases differ between rejection and canonical redirects. Consult
  the migration reference for the behavior of the target patch.
- Vault 2.0.0 requires a valid token alongside seal or recovery key fragments for
  rekey, root-token generation, and DR operation-token generation. Include the
  in-progress operation's nonce when cancelling a rekey on affected releases.
- The TCP listener's `max_token_header_size` defaults to 8192 bytes and caps
  `X-Vault-Token` and `Authorization: Bearer` values. In Enterprise 2.0, oversized
  requests return HTTP 431 before token validation. Increase the setting in the
  existing TCP listener stanza when JWT or OIDC tokens exceed the default.
- Vault enforces an 8192-bit RSA modulus ceiling on affected releases, including
  use or signing of existing keys. Audit and replace larger keys before upgrading;
  see the PKI reference for the release-specific limits and SSH behavior.

### Retired authentication and integrations

- Move Snowflake password-based database connections to key-pair authentication
  before upgrading to 1.21.x. Key-pair authentication is supported in Community
  as well as Enterprise.
- LDAP login requires a nonempty password, including on mounts configured with
  `deny_null_bind=false`. Remove `deny_null_bind` from provisioning for the major
  upgrade targeted by the April 2026 removal notice.
- Move Vault Agent API proxy traffic to Vault Proxy; the notice targets Q2 2026
  for removal of the Agent feature. Centrify support has ended, and the Active
  Directory secrets engine is listed as removed. Replace affected workflows
  before upgrading to a release that removes the relevant feature.
- Newly deprecated built-in plugins warn on unseal and affected API responses.
  Pending-removal built-in auth and secrets plugins cause immediate core
  shutdown. In an emergency, `VAULT_ALLOW_PENDING_REMOVAL_MOUNTS` can temporarily
  restore deprecated behavior for eligible mounts.
- Read `session_token` from AWS AssumeRole and FederationToken credential
  responses; `security_token` is deprecated. Remove `password_policy` from Azure
  secrets engine configuration; the Graph API generates and returns passwords.

## Server, container, and plugin operations

Vault 1.20 requires explicit `disable_mlock` configuration with integrated storage.
This setting disables memory locking:

```hcl
disable_mlock = true
```

Container capability requirements vary by patch. The Enterprise 1.20.12 image
removes the binary's memory-lock capability: set `disable_mlock = true` for that
image and disable host swapping if memory must stay out of swap. The official
2.0.2 OCI images run as the non-root `vault` user with `IPC_LOCK` removed.
Bind-mounted paths need permissions allowing the container user to access them.

For the Enterprise 2.0.0 startup error
`unable to set CAP_SETFCAP effective capability`, set `SKIP_SETCAP=1` in the
container environment. The plugin and delivery reference lists the affected
older Enterprise images and other patch-specific capability requirements.

If an external plugin fails to load at startup or unseal, restore the missing
binary or registration and reload the plugin to resume writes while Vault runs.
Enterprise 2.0.1 can return `openpgp: key expired` when registering an external
Enterprise plugin released from April 21, 2026 onward and signed with the renewed
key. Upgrade to 2.0.2 or a later patch before registering an affected plugin.
External-plugin environment settings override inherited server variables.
Enterprise official plugin download endpoints and `vault plugin register -download`
are beta features in the guidance that introduces them.

`/sys/health` reports 530 for removed nodes and 474 for standbys unable to send
heartbeats to the active node; override these with `removedcode` and
`haunhealthycode`. A removed Raft node needs a clean Raft data directory to rejoin.
Use `post_unseal_trace_directory` for diagnostics of slow cluster startup.

## Credential rotation and synchronization

Enterprise Rotation Manager can schedule root credential rotation for AWS, Azure,
GCP, and LDAP auth methods and secrets engines. Database plugins support
scheduled static-role rotation. Schedule strings use UTC from Enterprise
1.19.11. Shared-path rotations run only on the primary cluster's active node;
local-path rotations run on the owning cluster's active node in Enterprise
1.19.13. Reusable rotation policies configure retries with exponential backoff
for LDAP static roles and engines supporting root credential rotation.

- For an affected Enterprise performance primary, disable automated rotation on
  the affected root configuration or static role before upgrading to a patch
  that repairs namespace-local entries. Re-enable it afterward to register the
  entry in local storage. The secrets reference gives the exact repair targets.
- Check scheduled rotations after renaming a mount: migration can deregister
  rotation entries. In Enterprise 2.0, manually rotating an LDAP static role
  preserves its rotation TTL. To reset its schedule, toggle
  `disable_automated_rotation` to `true`, then `false`; this recalculates
  `next_vault_rotation`.
- Leave time between Azure static credential rotations. In Enterprise 2.0.0,
  wait a few minutes for propagation and remove orphaned credentials in Azure.
  Use a separate service principal for roles so their rotation cannot affect
  the mount's own authentication. The secrets reference includes the audit and
  cleanup procedure for roles sharing the mount's application credentials.
- AWS secrets-engine writes preserve omitted settings; send an explicit zero
  value to clear a stored value. Configured workload identity federation takes
  precedence over environment and shared-provider credentials.
- Secret Sync can use workload identity federation without storing static
  destination credentials. Forced destination deletion with `force_delete`
  defaults to `false`; secrets left at the provider require manual cleanup.
  Deleting the latest KV v2 version publishes the highest remaining active
  version when one exists. Disabling or deleting the source mount immediately
  unsyncs external secrets in Enterprise.

## Identity, authentication, and agent authorization

Azure auth roles must bind at least one group or service principal ID from
1.20.0. Supplied `resource_group_name`, `vm_name`, and `vmss_name` values in Azure
auth login requests must match the corresponding token claims.
For Kubernetes auth, set the role's `audience` to match the service account token.
Set `enable_self_enrollment=true` in Enterprise TOTP login MFA to allow enrollment
during sign-in. Certificate-auth renewal requires the session certificate from
1.21.3; directly configured non-CA certificate login compares the full certificate.

Enterprise SCIM provisions entities and groups. Entity merges require `sudo` on
`identity/entity/merge` in 1.19.17; Enterprise 2.0.4 rejects merges involving any
SCIM-managed entity. Entity batch deletion is scoped to the request namespace.
The auth reference covers SCIM filters, PATCH operations, and group recovery.

Agentic IAM is generally available in Enterprise 2.1.0; neither it nor the OAuth
resource server API requires activation. Registered agents can authorize Vault
requests with OAuth 2.0 JWTs. Set `issuer_id` when creating a resource server
profile because updates cannot change it. Vault token revoke APIs revoke an
OAuth JWT for use with Vault; other services can still accept that JWT.

## Recovery, PKI, and delivery

Enterprise snapshot recovery can restore individual secrets on a running cluster.
Supported data and copy destinations depend on the engine and release. Recovery
requests support `RECOVER`, `POST`, and `PUT`; pass the snapshot ID with
`X-Vault-Recover-Snapshot-Id`. The `recover_snapshot_id` query parameter is deprecated.
Use `-from=secret/old-path` with `vault recover` to specify a different source path.

Set a PKI issuer's `leaf_not_after_behavior` to `always_enforce_err` to reject
requests extending past issuer expiration, including CA issuance and ACME.
ACME challenge IP ranges can be restricted with `challenge_permitted_ip_ranges` and
`challenge_excluded_ip_ranges`. Transit ML-DSA and SLH-DSA signature support is
experimental. The KMIP request API is also experimental.

Vault Agent rerenders templates when PKI External CA certificates are issued or
renewed and keeps their `percent_renew_before_expiry` schedule across auto-auth
reauthentication. Vault Proxy supports TPM in `auto_auth`. Vault Client is the
generally available client-only Enterprise distribution containing Vault Agent,
Vault Proxy, and selected Vault CLI commands.

## Audit, events, and usage reporting

File audit devices reject executable permission bits on affected releases; use
a mode such as `0600`. Existing-file behavior during unseal varies by patch.
User-Agent headers are logged raw by default; enable HMAC if they should be masked.
Supplemental audit fields are HMACed by default.

Event consumers should handle missing `vault_index`: it is included when event
metadata has `modified=true`. Bounded subscriber queues default to unbuffered
delivery and can lose events when full. Enterprise Vault Proxy uses event indexes
to refresh static-secret cache entries from performance secondaries before
trying to forward reads to the primary.

Update activity export consumers to read `token_creation_time` instead of `timestamp`.
The billing and UI reference covers query-date normalization, cumulative namespace
counts, license utilization metrics, and report schema changes.

Files in this skill

  • SKILL.md10.4 KB
  • coverage.json1.2 KB
  • references/audit-events-billing-and-ui.md7.4 KB
  • references/auth-identity-and-policy.md8.2 KB
  • references/migration-and-known-issues.md7.6 KB
  • references/pki-transit-and-managed-keys.md6.2 KB
  • references/plugins-agents-and-delivery.md3.5 KB
  • references/secrets-rotation-and-sync.md6.5 KB
  • references/server-cluster-and-storage.md5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.