Commit graph

22755 commits

Author SHA1 Message Date
Vault Automation
bfb5cd6ead
Rename functions referencing "enterprise tokens" for readability/clarity (#15193) (#15289)
* rename enterprise token for readability/clarity

* more updates

* test fix

* whoops

* further updates

* fix errors

* update error message

* more rename

* typo

* whoops

* remaining fix

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2026-06-08 18:15:04 +00:00
Vault Automation
c7f782bf7e
VAULT-44550 Add test for clobbered event subscription during ACL crea… (#15200) (#15276)
* VAULT-44550 Add test for clobbered event subscription during ACL creation

* VAULT-44550 Add additional test for event subsciption ACL build

* VAULT-44550 fatalf -> NoError in ACL event subscribe test

* VAULT-44550 Better formatting for policy strings in tests

* VAULT-44550 Revert unrelated test

Co-authored-by: Jason Pilz <jasonpilz@gmail.com>
2026-06-08 10:16:14 -07:00
Vault Automation
11aed733f9
auto: bumps vault-client-typescript version (#15271) (#15288) 2026-06-08 16:59:19 +00:00
Vault Automation
c27e011d6e
Backport Make seal wrap backend's deadlock detection configurable into ce/main (#15281)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2026-06-08 16:25:05 +00:00
Vault Automation
a4a0278136
Fix flaky Transit test post EDM (#15243) (#15246)
* added waitFor

* added waitFor for another rotation

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-06-08 11:29:34 -04:00
Vault Automation
6f613e8d28
UI: Ember Data Migration: Transit Secrets Engine (#15195) (#15232)
* UI: Ember data migration: Transit secrets engine - Show & List views (#15015)

* Adding api calls

* fixing timestamps and actions

* fixing routing and moving functions around for model creation

* UI: Ember Data migration: Transit - Create & Edit  (#15085)

* adding in new create form

* updating form to handle editing

* yielding ttl, updating conditional renders

* a lot of moving around

* test fix 1

* test fix 2

* UI: Ember Data migration: Transit Secrets Engine - Key actions (#15176)

* updating store use to use api calls per actions

* forgot export, fixing some tests

* test fixes

* converting to .ts and minor tweaks

* test fixes

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2026-06-08 11:27:02 -04:00
Vault Automation
06d1577cdb
un-parellelize testcore test (#15225) (#15249)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2026-06-08 14:21:20 +00:00
Vault Automation
277f112278
SECVULN-44099: Identity Store Ownership & Namespace Enumeration (#14865) (#14943)
* SECVULN-44099 Add new helper for verifying SCIM user ownership and update error returns

* SECVULN-44099 Update stale tests

Co-authored-by: Jason Pilz <jasonpilz@gmail.com>
2026-06-08 07:15:59 -07:00
Vault Automation
2e9c402889
VAULT-44140 - Fix Radius case collision (#14493) (#14797)
* added a toggle to normalize radius usernames and reject case-variant duplicates to prevent case-collision

Co-authored-by: Himnish-Nadiminti <himnish.nadiminti@hashicorp.com>
2026-06-07 23:52:30 +05:30
Vault Automation
8af634eb24
VAULT-43873 return 431 for oversized token headers (#15164) (#15245)
* VAULT-43873 return 431 for oversized token headers

* VAULT-43873 add changelog

* Update changelog/_15164.txt



* VAULT-43873 update replication token header tests

* VAULT-43873 update raft ha token header tests

---------

Co-authored-by: Jorge Aquino <jaquino.usmc@gmail.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2026-06-05 16:10:34 -05:00
Vault Automation
4ff23c3f1c
Update CHANGELOG.md (#15224) (#15244)
* Update CHANGELOG.md

* Update CHANGELOG.md

Moved secrets/ssh: RSA key sizes are now limited to a maximum size of 8192 bits addressing CVE-2026-39829
to breaking changes

* Apply suggestions from code review



---------

Co-authored-by: Chris Foran <Christopher.Foran@ibm.com>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-06-05 14:39:51 -04:00
Vault Automation
7808c301e2
feat(enos): migrate vault_verify_replication to blackbox tests (#14963) (#15112)
* feat(enos): migrate vault_verify_replication to blackbox tests

Convert vault_verify_replication from bash scripts to blackbox SDK tests.

Changes:
- Created vault/external_tests/blackbox/verify/replication_test.go with TestReplicationAvailability
- Updated enos-scenario-smoke.hcl to use vault_run_blackbox_test module
- Removed enos/modules/vault_verify_replication module and bash script

The new test verifies:
- CE: replication mode is 'disabled'
- ENT: DR and performance replication are available

Fixes: Converts bash-based verification to Go-based blackbox tests for better maintainability

* Add detailed error messages to replication test for debugging

* Add debug logging to replication test

* Exclude TestReplicationAvailability from race detection

The TestReplicationAvailability test requires a live Vault instance with
VAULT_ADDR and VAULT_TOKEN environment variables set. This test is not
compatible with race detection runs in CI which don't have these
prerequisites configured.

Add //go:build !race tag to exclude this test from race detection runs.

* Revert "Exclude TestReplicationAvailability from race detection"

This reverts commit 5afc7c1bf243e7e833864288cdd5bd16c9ed3018.

* Fix replication test to read from root namespace

The test was failing because it tried to read sys/replication/status
from within the test's isolated namespace. Replication status is only
available at the root namespace level.

Changes:
- Use WithRootNamespace() to read replication status from root
- Add proper error handling for the namespace operation
- Add api import for WithRootNamespace return type

* Add testonly build tag and update CI workflow pattern for verify tests

* Add missing ip_version parameter to vault_run_blackbox_test calls

Co-authored-by: hashigator <280075563+hashigator@users.noreply.github.com>
2026-06-05 17:31:03 +00:00
Vault Automation
1604822577
Backport [VAULT-44702] Refactor consumption billing metric collection into ce/main (#15198)
* [VAULT-44702] Refactor consumption billing metric collection (#13681)

* refactor

* add missing new file

* fix merge error

* cleanup

* only check if official plugin if required

* fix tests

* add test helpers and move things around

* add tests

* address comments

* make kv count just int

* check if sealed and return error

* add err checks to test helpers

* use db secret engine instead of azure

---------

Co-authored-by: Jenny Deng <jenny.deng@hashicorp.com>
2026-06-05 10:22:44 -07:00
Vault Automation
1779d0b264
Backport [UI] Ember Data Migration - Transform Role and Transformation views | VAULT-45708 | VAULT-45709 into ce/main (#15234)
* no-op commit

* migrates transform role and transformation views

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* fixed failing tests and updated query selectors

---------

Co-authored-by: Mohit Ojha <mohit.ojha@hashicorp.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-06-05 22:28:33 +05:30
Vault Automation
c0d95b0acf
Inline base64 func into getACMEToken (#15156) (#15171)
Inline base64 func into getACMEToken

Co-authored-by: Luciano Arroyo <95649169+DeLuci@users.noreply.github.com>
2026-06-05 10:03:26 -05:00
Vault Automation
2f81984b27
VAULT-45615: Redirect to cleaned path instead of rejecting (#15126) (#15147)
* redirect to cleaned path

* changelog

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2026-06-05 10:49:59 +00:00
Vault Automation
7c746abafd
[UI] Ember Data Migration - Transform Templates views | VAULT-45707 (#15188) (#15196)
* VAULT-45707 - migrates transform templates views

* updated fields to snake_case

* updated selectors in test to use GENERAL selector

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-06-04 18:37:21 +00:00
Vault Automation
70d5341132
[UI] Ember Data Migration - Transform Alphabets views | VAULT-45706 (#15184) (#15187)
* VAULT-45706 - migrated transform alphabets views

* fixed failing test

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-06-04 15:22:42 +00:00
Vault Automation
866348d15f
VAULT-45673 Agentic NHI beta feature changelog (#15135) (#15185)
* VAULT-45673 feature changelog

* rename

* wording

* suggestions

* 2.0

* same for kvv2

* whoops

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2026-06-04 13:47:51 +00:00
Vault Automation
d87cb463c9
VAULT-43736: adding sdk node removal test (#14759) (#15158)
* adding sdk node removal test

* fixing conflicts

* testing enos test

* testing enos test

* testing enos test

* fixing test

* fixing test

* testing pipeline

* undo change

* addressing comments

* testing pipeline

* fixing deprecated error

Co-authored-by: Tin Vo <tintvo08@gmail.com>
2026-06-04 04:47:01 -07:00
Vault Automation
2bf948f9e0
Go Bump: 1.26.3 to 1.26.4 (#15163) (#15177)
* bumped go from 1.26.3 to 1.26.4 and added changelog

* removed new chanagelog, updated existing

Co-authored-by: kelly <69541941+kporter101@users.noreply.github.com>
2026-06-03 21:19:35 +00:00
Vault Automation
8055a105ef
VAULT-18737 Reject zero Raft performance multiplier (#15110) (#15127)
* Reject zero raft performance multiplier

* Add changelog for raft performance multiplier validation

Co-authored-by: Jorge Aquino <jaquino.usmc@gmail.com>
2026-06-03 17:23:40 +00:00
Vault Automation
15bdb3c8ee
fix(babel-preset-env): upgrade to preset-env to 7.29.5 (#15068) (#15153)
Co-authored-by: Nina Bucholtz <nina.balachandranmary@gmail.com>
2026-06-03 14:46:55 +00:00
Vault Automation
75b0c7664d
[UI] Update some identity routes to be class based (#15103) (#15104)
* Update routes to be class based

* Update controller super

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-06-03 07:43:56 -07:00
Vault Automation
c4deb564a9
SECVULN-44094: Zero combinedKey and masterKey (#14947) (#15121)
* SECVULN-44094 zero combined key and masterkey

* SECVULN-44094 update test for zeroing combinedkey

* core: document migration unseal key zeroing lifecycle

Co-authored-by: Jason Pilz <jasonpilz@gmail.com>
2026-06-03 07:30:51 -07:00
Vault Automation
bcbd254510
plugincatalog: Fix plugin signature verification with expired PGP key (#15072)
Split HashiCorp PGP key into two separate keys (2026 and 2030 versions)
and load them into separate keyrings. Resolves signature verification
failures for plugins signed with either the expired (2026) or renewed
(2030) HashiCorp PGP keys.

The keyring previously contained both the expired 2026 block and the
updated 2030 extension block for subkey 374EC75B. This duplication
caused the OpenPGP signature parser to get trapped on the first (expired)
entry it encountered, triggering false-positive `openpgp: key expired`
errors when registering official plugins.

Changes:
- Split HashiCorp PGP key into two separate keys (2026 and 2030 versions)
- Implement fallback strategy: try 2030 key first, fallback to 2026 on
  "no valid self signature" error
- Use separate KeyRing objects for explicit fallback control
- Add custom keys to BOTH keyrings to maintain HashiCorp plugin verification

Co-authored-by: JM Faircloth <jmfaircloth@hashicorp.com>
2026-06-03 10:02:47 -04:00
Ryan Cragun
6f897a0004
go: synchronize modules with enterprise main branch
Signed-off-by: Ryan Cragun <me@ryan.ec>
2026-06-02 12:30:14 -06:00
Vault Automation
a1fcf39983
VAULT-44224 - Cleans up SSH-related code and remove unused adapters and models (#15117) (#15120)
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-06-02 20:59:19 +05:30
Vault Automation
424b3f8ba9
SECVULN-39610: Implement Raft Bounded Join Goroutines (#14954) (#15106)
* SECVULN-39610 Implement raft retry limit

* SECVULN-39610 Implement pr review feedback:
- refactor context usage to not have a helper
- add test coverage for raft join limiter

* SECVULN-39610 Update max raft joins to 20, add godoc for test

* SECVULN-39610 Add changelog entry

* SECVULN-39610 Update raft retry test to exercise the cap on a single follower core

* Update changelog/_14954.txt



---------

Co-authored-by: Jason Pilz <jasonpilz@gmail.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2026-06-02 07:29:05 -07:00
Vault Automation
528626df0c
feat(enos): migrate vault_verify_undo_logs to blackbox tests (#14543) (#14913)
Migrate undo logs verification from bash scripts to Go blackbox tests using
the vault_run_blackbox_test module pattern.

Changes:
- Add TestVaultUndoLogsMetric Go test in vault/external_tests/blackbox/verify
- Add AssertMetricGaugeValue SDK helper in blackbox/session_metrics.go
- Remove deprecated vault_verify_undo_logs bash-based module
- Update vault_run_blackbox_test to support test_env_vars parameter
- Update autopilot scenario to use vault_run_blackbox_test for undo logs verification

The test verifies the vault.core.replication.write_undo_logs gauge metric
via API calls, following the blackbox testing pattern (no SSH/file access).

Only autopilot scenario is updated as it's the only scenario that currently
uses undo logs verification. Other scenarios remain unchanged.

Rebased onto main (58751c5d19e) and resolved conflicts with current codebase.

Co-authored-by: hashigator <280075563+hashigator@users.noreply.github.com>
Co-authored-by: lt-hc <280075563+lt-hc@users.noreply.github.com>
2026-06-02 09:20:04 -04:00
Vault Automation
5a7eb39077
[UI] Ember Data Migration - SSH Role Sign Key and Generate Credential Views | Vault-45234 (#15100) (#15107)
* migrated ssh views - list, detail, create and edit

* adds validation for role name and update test attributes for consistency

* updated sign key attr name in test

* migrated ssh views - list, detail, create and edit

* adds validation for role name and update test attributes for consistency

* updated sign key attr name in test

* moved flat ordering logic to form as per dynamic selection

* Humanized TTL field display value

* Apply suggestions from code review



* fixed prettier issue

* VAULT-45234 - Migrates SSH credential generation and signing components with forms and Api service

* fixed review comments

* Apply suggestions from code review



---------

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-06-02 00:45:48 +05:30
Vault Automation
65e0793e46
VAULT-45458: add allowed parameters to rar detail (#15070) (#15105)
* VAULT-45458: add allowed parameters to rar detail

* VAULT-45458: remove matchFound to use matchingDetail

* VAULT-45458: remove helper setupRARParameterTest

* VAULT-45458: add test for required namespace in policy

VAULT-45458: add test for required namespace in policy

* VAULT-45458: fix matchingDetail linting error

* VAULT-45458: update tests

Co-authored-by: Fabio Callegari <fabio.callegari@hashicorp.com>
2026-06-01 12:14:25 -07:00
Vault Automation
0b34abf902
Backport: Copy PrepareTestContainer helper for LDAP into SDK, update references into ce/main (#15028)
Co-authored-by: Robert <17119716+robmonte@users.noreply.github.com>
2026-06-01 16:12:15 +00:00
Vault Automation
06ab6f40ae
VAULT-45341: Only add required mounts if there's space in mount table (#15014) (#15079)
* only add required mounts if there's space

* correct the docker version, add comments

* fix base version

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2026-06-01 10:43:43 +00:00
Vault Automation
c39f093f1e
[UI] Ember Data Migration - SSH Views | VAULT-44224 (#15012) (#15084)
* migrated ssh views - list, detail, create and edit

* adds validation for role name and update test attributes for consistency

* updated sign key attr name in test

* migrated ssh views - list, detail, create and edit

* adds validation for role name and update test attributes for consistency

* updated sign key attr name in test

* moved flat ordering logic to form as per dynamic selection

* Humanized TTL field display value

* Apply suggestions from code review



* fixed prettier issue

---------

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-05-30 00:12:57 +05:30
Vault Automation
e36537aef3
[UI][SECVULN-44627][SECVULN-44645] Update package dependencies using pnpm update in main (#14982) (#15078)
* Upgrade fast-uri

* Run pnpm update to update dependencies

* Remove overrides and update dependencies

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2026-05-29 15:08:32 +00:00
Vault Automation
beb66717e1
Document ssh RSA key size limitation (#15054) (#15055)
* Document ssh RSA key size limitation

* Use appropriate keyword

* Move to use current PR number

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2026-05-28 13:14:07 -04:00
Vault Automation
da9b387579
use ubuntu-22.04 everywhere to access more hot runner pools
* use ubuntu-22.04 everywhere to access more hot runner pools

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-05-28 10:26:55 -06:00
Vault Automation
5582e0a015
auto: bumps vault-client-typescript version (#15001) (#15016) 2026-05-28 08:58:55 -07:00
Vault Automation
3b246d7a71
Backport actions: expressions in composite action defaults don't work 🫢 into ce/main
* actions: expressions in composite action defaults don't work 🫢 (#15023)

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-05-28 08:53:36 -07:00
Vault Automation
b00064cba2
UI: Ember Data migration: DB overview / credentials (#14912) (#15040)
* migrating db overview page

* fix toolbar alignment on remaining links

* migrating database creds + minor secrets table fix

* update totp key fetch

* removing store for aws

* fix workflow test

* removed commented code

* fix return line

* [UI] Ember Data Migration - Core Addon (#14891)

* removes store service from confirm-leave decorator

* updates secret list header tab component to use capabilities service for database type

* removes store service from edit-form component

* removes ember data fetch support from InfoTableItemArray component

* removes store from shamir components

* removes store from replication components in core addon

* adds missing service injection to shamir flow component

* fixes reduced disclosure test

* fixes issues with seal/unseal workflow

* reverts assertion change in info-table-item-array test

* fixes database test

* updates shamir flow test

* removes commented out code

* fix pathfors

* dont throw messages that dont need to be thrown :)

* updating to use allSettled

* matching whats in adapter

* fix

* updating to use enums

* [UI] Ember Data Migration - TOTP Secrets Engine Views | VAULT-44225 (#14933)

* VAULT-44225 - edm secrets totp views

* fixed review comments and updated validations to match original

* fixed review comments

* fix 2

* update to parseError

* fix

---------

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-05-28 11:10:35 -04:00
Vault Automation
60e61741f9
enos(ssh): limit RSA modulus to 8192
Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-05-28 09:02:31 -06:00
Vault Automation
cd7b17c65f
PKI: JKS param rename (#15004) (#15026)
* tidy docs

* remove jks_alias for sign intermediate endpoint

* rename jks_alias to jks_private_key_alias

* only include jks_private_key_alias param in relevant endpoints

* initialize alias to empty string, reuse schema default

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2026-05-27 21:47:12 +00:00
Vault Automation
fbbf6c6a25
VAULT-45516 & 45517/ Resolve vulns in golang.org/x/crypto@v0.51.0 & golang.org/x/net@v0.54.0 (#14995) (#15005)
* bumped crypto dep and ran go mod tidy

* bumped net and ran go mod tidy

* bumped net in api from 53 to 55 and ran go mod tidy

* added changelog

* bump deps for all go modules



---------

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: kelly <69541941+kporter101@users.noreply.github.com>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-05-27 10:21:19 -04:00
Vault Automation
3900fae977
VAULT-44721: Add an ns_agent_registry to all namespaces (#14879) (#15013)
* working to add new namespace on upgrades

* upgrade tests

* only allow setting the root agent registry in core

* add reloading the backend

* switch to kvv1 helper for api client

* hopefully fix the flake

* build is stuck

* switch test to single node

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2026-05-27 13:59:26 +00:00
Vault Automation
54f1daa659
docker: remove IPC_LOCK requirement
Do not set the IPC_LOCK capability on the vault binary. While we would prefer this, several container runtimes either don't allow setting capabilities or have policies that disallow the capability. This change will require runtime operators to disable swap to ensure data safety but seems the best middle ground until we decide whether or not to provide two images.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-05-26 13:53:42 -06:00
Vault Automation
df30dc67fe
VAULT-45232 - SSH roles List response schema updates (#14984) (#14989)
* VAULT-45232 - adds FieldSchema for SSH roles list

* fixed linting errors

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-05-26 22:23:40 +05:30
Vault Automation
1f192ff4ce
Remove obsolete @lineal-viz/lineal package from dependencies (#14906) (#14938)
Co-authored-by: Aravind VM <aravind.vm@ibm.com>
2026-05-26 07:40:29 -07:00
Vault Automation
26ea5081ea
SECVULN-41102: Use crypto compare on tokens (#14965) (#14971)
* use crypto compare on tokens

Co-authored-by: Jasper Milan <jasper.milan@ibm.com>
2026-05-26 10:12:09 -04:00
Vault Automation
3f2f491f1d
[UI] Ember Data Migration - TOTP Secrets Engine Views | VAULT-44225 (#14933) (#14983)
* VAULT-44225 - edm secrets totp views

* fixed review comments and updated validations to match original

* fixed review comments

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
2026-05-26 11:31:44 +05:30