2888 Commits

Author SHA1 Message Date
Vault Automation
711ed1a740
Add support for AES-CBC to transit (#8367) (#8741)
* add key types and encryption for cbc

* add decryption

* start adding tests

* add tests for policy functions

* add convergent case

* add enterprise check and key creation test cases

* fix key generation and add import/export

* add tests and fixes

* add changelog

* linter

* refactor policy functions and fix IV

* add ce change

* fix function calls

* fix factories in function call

* fix IV test case

* test fixes

* add cbc keys to read

* change iv

* fix merge errors

* make fmt

* change error name and add iv error

* fix tests

Co-authored-by: Rachel Culpepper <84159930+rculpepper@users.noreply.github.com>
2025-08-20 17:39:02 +00:00
Jade
d79813a4af
Add password rotation url to ldap auth (#31363)
* add rotation URL field

* add docs

* add test

* fix: correct variable name for root rotation URL in rotateRootCredential function

* fix: ensure proper formatting in TestRotateRootWithRotationUrl function

* fix: improve error handling in TestRotateRootWithRotationUrl for invalid rotation URL

* feat: add rotation URL support to LDAP credential configuration

* test: enhance validation in TestRotateRootWithRotationUrl for rotation URL effects

* Update path_config_rotate_root_test.go

* add changelog and update test docs

* Update ldap.mdx
2025-08-14 14:36:13 -05:00
kpcraig
17e5b92d63
Log transit rotations (#31420) 2025-08-08 18:11:16 -04:00
kpcraig
1fafe2f4d5
Log DB Rotations (#31402) 2025-08-08 16:15:02 -04:00
kpcraig
36d873aae2
Log LDAP Rotations (#31401) 2025-08-08 11:56:54 -04:00
Ben Ash
e2273dbd77
auth/ldap: ensure consistent entity aliasing when set from the username (#31427)
[ent: a552ac1e80e3d334673c59a5bb825082cd56b1bf]
2025-08-05 19:14:15 +00:00
Victor Rodriguez
32e3ecbf83
Add hooks for enterprise token auth metadata feature. (#31391) 2025-08-05 12:32:48 -04:00
mickael-hc
881febbf98
update alias lookahead to respect case (#31352)
* userpass is not case sensitive
* ldap is case sensitive when it is configured that way

---------

Co-authored-by: Ben Ash <bash@hashicorp.com>
2025-07-23 16:28:05 +00:00
mickael-hc
1d60673802
update dummy string (#31342) 2025-07-21 11:52:48 -07:00
mickael-hc
9190485ef6
auth/userpass: update dummy string generation (#31318) 2025-07-18 11:14:17 -04:00
Ellie
1e7f22aeec
Add DB type consts (#31295)
* add necessary consts

* add other db plugins

* correct ES

* Fix consts in test
2025-07-17 12:08:27 -05:00
Ellie
23e04c2409
Add MetricsReporter interface so that databaseBackend's can share their connection counts with CensusManager (#31269)
* add interface and impl

* add tests

* fix comments

* Update builtin/logical/database/backend.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-14 14:52:55 -05:00
Mike Palmiotto
b2c814d24b
secrets/totp: trim space before processing request (#31246)
Co-authored-by: mickael e <mickael@hashicorp.com>
2025-07-11 19:32:34 +00:00
mickael-hc
cb5546ccfe
auth/userpass: update dummy string (#31240) 2025-07-10 14:38:10 -04:00
Scott Miller
c72f9014b7
Test cert equality when matching a non-CA certificate (#31210)
* Test cert equality when matching a non-CA certificate

* changelog
2025-07-07 10:49:27 -05:00
Rachel Culpepper
844e2b3af0
add ce changes for slh-dsa (#31145) 2025-07-02 18:23:54 +00:00
Kuba Wieczorek
0e11fbfe59
[VAULT-21456] Use interned regexp when initialising backends and validating authz headers in the AWS backend (#31022) 2025-06-20 17:33:28 +00:00
John-Michael Faircloth
bef4afdb44
Remove vault-plugin-mock (#31004) 2025-06-18 18:39:13 +00:00
Ellie
6360705f0a
Require rotation_schedule cron style strings to be defined in UTC (VAULT-35616) (#30606)
* remove local time logic, and force cron to be UTC

* add test comment

* update docs

* add changelog

* change mesasge

* add utc clarification to docs

* remove utc reference in root token docs

* remove doc from partial
2025-06-16 12:51:07 -05:00
helenfufu
146c032600
CE changes for plugin download (#30927)
* ce changes for https://github.com/hashicorp/vault-enterprise/pull/8193

* lower case enterprise only errors

---------

Co-authored-by: Ben Ash <bash@hashicorp.com>
2025-06-10 10:31:24 -04:00
Rachel Culpepper
8cf4caa7d2
Ensure valid field is returned when set to false (#30852)
* remove omitempty to ensure valid is always returned

* add changelog

* add test
2025-06-09 11:40:42 -04:00
Rachel Culpepper
83d05cefb6
Exclude wrapping key from list operation (#30728)
* exclude wrapping key from list operation

* add changelog

* make delete more general
2025-05-23 17:00:57 +00:00
Kit Haines
5dc4191164
CE-changes for ent-feature AES192-CMAC for transit. (#30721) 2025-05-22 11:47:50 -04:00
Ellie
294c304947
db: consider possibility of NextVaultRotation being unset on queue population (VAULT-35639) (#30320)
* consider possibility of NextVaultRotation being nil on queue population

* move test

* add changelog

* fix reference to nil, and improve debug log

* use helper function to write static roles to storage

* add password check in test

* fix godoc

* fix changelog and add remediation debug line

* force ticker to run, and make sure credential doesnt rotate

* add another edge case

* fix godoc

* check ttl is less in test

* check error case and if resp is nil

* make check on ttl more robust
2025-04-28 16:11:54 -05:00
Robert
bf339bc50d
Add snowflake DB API warning (#30327)
* Add API warning based on DB type

* Add deprecation notice

* Add warning to the top of the docs pages

* Update capabilities table

* Filter SQLConnectionProducer fields from unrecognized parameters warning

* Add test case
2025-04-28 13:05:55 -05:00
kpcraig
8a84d13c60
propgate config.Region in the IAM and STS clients (#30312) 2025-04-28 13:55:50 -04:00
Rachel Culpepper
c5c302bd72
add ce changes for managed key signatures (#30347) 2025-04-25 16:12:13 +00:00
Kit Haines
d07a3a8e2c
DeltaCRL openssl test (#30330)
* PR Review Feedback

* Remove openssl test, to be included in a separate testing PR.

* Openssl test for DeltaCRL + Move Test Helpers to test_helpers

* Switch to regex instead of contains due to different whitespace when running in CI.
2025-04-24 10:47:01 -04:00
Kit Haines
43a9fe5c96
Delta CRL enablement, including tests. (#30319)
* Delta CRL enablement, including tests.

* Add changelog.

* PR Review Feedback

* Remove openssl test, to be included in a separate testing PR.
2025-04-23 09:40:58 -04:00
Guy J Grigsby
08c5a52b02
disable_mlock must now be explicitly included in config (#29974)
* require explicit value for disable_mlock

* set disable_mlock back to true for all docker tests

* fix build error

* update test config files

* change explicit mlock check to apply to integrated storage only.

* formatting and typo fixes

* added test for raft

* remove erroneous test

* remove unecessary doc line

* remove unecessary var

* pr suggestions

* test compile fix

* add mlock config value to enos tests

* enos lint

* update enos tests to pass disable_mlock value

* move mlock error to runtime to check for env var

* fixed mlock config detection logic

* call out mlock on/off tradeoffs to docs

* rewording production hardening section on mlock for clarity

* update error message when missing disable_mlock value to help customers with the previous default

* fix config doc error and update production-hardening doc to align with existing recommendations.

* remove extra check for mlock config value

* fix docker recovery test

* Update changelog/29974.txt

Explicitly call out that Vault will not start without disable_mlock included in the config.

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>

* more docker test experimentation.

* passing disable_mlock into test cluster

* add VAULT_DISABLE_MLOCK envvar to docker tests and pass through the value

* add missing envvar for docker env test

* upate additional docker test disable_mlock values

* Apply suggestions from code review

Use active voice.

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2025-04-17 15:35:40 +02:00
Steven Clark
7135d56f9c
Update to Go 1.24.2 (#30272) 2025-04-16 14:10:17 -04:00
Rachel Culpepper
33b9b52556
Refactoring for returning SSH CA public key with managed keys (#30263)
* add ce changes for returning SSH public key

* remove storage change for deprecated path

* remove empty deprecated keys test
2025-04-16 11:28:12 -05:00
Rachel Culpepper
6a3aef7bf5
Fix panic when rotating transit managed keys produces an error (#30214)
* remove extra Unlock call

* add changelog
2025-04-10 14:34:12 +00:00
co63oc
c95f3cb47f
Fix (#29797)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2025-04-08 14:00:08 -04:00
alingse
83645c8408
fix: fix call Sprintf with wrong err (#30184) 2025-04-04 12:37:20 -04:00
Kit Haines
2a14b1c616
Allow Root + Intermediate Key_Usage to be set (#30034)
* outline of key usage fix

* Changelog, and test-fix

* Simplify code setting key_usage

* make fmt

* Per internal dicussion to align closer to the CAB guidelines, only allow DigitalSignature.

* Breaking Change: error if invalid key_usage to generate root or sign-intermediate.

* Change error to warning in order to not break backwards compatibility.
2025-04-03 18:48:54 +00:00
Kit Haines
2be91e783b
remove mapstructure - not needed. (#30175) 2025-04-03 17:46:09 +00:00
Kit Haines
e02312e131
Bugfix/vault 35002 (#30168)
* Remove subproblems from acme error body if it doesn't exist.  Simple test to confirm.

* make fmt.

* add changelog.
2025-04-03 13:19:20 -04:00
Rachel Culpepper
b9188ba419
Add ce changes for ssh managed keys (#30061)
* add ce changes for ssh managed keys

* fix key gen and storage logic

* update to include managed key name and uuid in storage

* change to ssh.PublicKey and add ssh.Signer functions

* fix managed key stored values
2025-04-02 12:27:31 -05:00
Ryan Cragun
95b2d86870
ldap: pin test container to latest working version (#30148)
The test container that we use for many LDAP tests recently merged a
breaking change: https://github.com/rroemhild/docker-test-openldap/issues/62

Add support for using containers via references with digests and pin to the latest
version that worked. We can unpin later if so desired.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2025-04-01 22:24:15 +00:00
cui fliter
31f8c8cab7
fix: Fix problematic error returns (#29883)
Signed-off-by: cuishuang <imcusg@gmail.com>
2025-04-01 16:08:17 -04:00
kpcraig
f7f3be283a
aws/secrets: Fix region/endpoint mismatch error when no region or endpoint is specified (#29996) 2025-03-28 14:27:38 -04:00
vinay-gopalan
d16b0beee3
Forward Performance Standby requests when configuring root credentials for AWS, LDAP and DB engines (#30039) 2025-03-27 14:32:49 -07:00
vinay-gopalan
a5d9a1552c
secrets/aws: fix a bug where environment and shared credential providers were overriding the WIF configuration (#29982) 2025-03-25 10:37:11 -07:00
Amir Aslamov
fb6c833eb5
check for case sensitivity at delete for user and group paths, modify… (#29922)
* check for case sensitivity at delete for user and group paths, modify tests to cover proper deletions

* add changelog
2025-03-14 12:14:33 -04:00
Milena Zlaticanin
84fa94c6c1
Add LIST endpoint to AWS Secrets static roles (#29842)
* Add LIST endpoint to AWS Secrets static roles

* add test + changelog

* Update website/content/api-docs/secret/aws.mdx

Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>

* Update website/content/api-docs/secret/aws.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

---------

Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2025-03-12 11:08:12 -07:00
Victor Rodriguez
735016d653
Fix bug when writing auto tidy config field tidy_cmpv2_nonce_store (#29852)
* Fix bug when writing auto tidy config field tidy_cmpv2_nonce_store.
2025-03-06 21:14:23 +00:00
Kit Haines
17c0ee93cb
Enables a warning if validations (ent-feature) set issuer configuration so that it isn't usable. (#29781) 2025-02-28 14:44:52 -05:00
Ryan Cragun
69646127df
fmt: check gosimports during pre-commit hooks (#29520)
`gosimports` is the preferred style for module imports and it is
enforced via CI. I've found that things often manage to drift so I've
taken the liberty to update our pre-commit hook to verify our imports
formatting before a change is committed.

Along with updating the formatting helper I've also run `make fmt` to
resolve any formatting drift that managed to make it into the codebase.

Signed-off-by: Ryan Cragun <me@ryan.ec>
2025-02-27 15:56:34 -07:00
vinay-gopalan
f06f2f8188
add missing create operation for aws secrets (#29737) 2025-02-27 09:20:12 -08:00