1923 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
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
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
Rachel Culpepper
844e2b3af0
add ce changes for slh-dsa (#31145) 2025-07-02 18:23:54 +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
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
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
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
vinay-gopalan
f06f2f8188
add missing create operation for aws secrets (#29737) 2025-02-27 09:20:12 -08:00
vinay-gopalan
e8c07ec68e
Small fixes on UX of Automated Root Rotation parameters (#29685) 2025-02-25 09:14:38 -08:00
John-Michael Faircloth
e2f09cb2ab
database: fix reload to not fail early (#29519)
* database: fix reload to not fail early

* return logical.ErrorRresponse; add tests

* do not return noop warnings; add logs

* changelog

* use name for log; remove event doc
2025-02-20 14:53:58 +00:00
Milena Zlaticanin
6e0c771e57
Add support for cross account management of static roles in AWS Secrets (#29645)
* aws-secrets/add-cross-acc-mgmt-static-roles

* refactor

* add function pointer for tests

* delete commented out code

* update

* update comment

* update func name

* add flag

* remove docs
2025-02-14 14:13:00 -07:00
vinay-gopalan
6a9de17ac4
move logs into if block (#29634) 2025-02-13 22:56:22 +00:00
Steven Clark
ce8094fb6c
Add underlining support for the PKI Enterprise SCEP work (#29604) 2025-02-13 15:54:18 +00:00
vinay-gopalan
9e38a88883
Add automated root rotation support to DB Secrets (#29557) 2025-02-11 12:09:26 -08:00
davidadeleon
6741773b0f
update vault auth submodules to api/v1.16.0 (#29548)
* update vault auth submodules to api/v1.16.0

* update go.mod

* make proto

---------

Co-authored-by: davidadeleon <ddeleon@hashicorp.com>
2025-02-11 07:28:45 -08:00
vinay-gopalan
9b70487623
Automated rotate root support for AWS Auth and Secrets (#29497) 2025-02-10 18:36:44 -05:00
John-Michael Faircloth
8d0443fd48
db: honor static role TTL across restarts when skip import rotation i… (#29537)
* db: honor static role TTL across restarts when skip import rotation is enabled

* changelog
2025-02-10 15:28:19 -06:00
Kit Haines
49ecdad1ad
Sign empty to cert on manual-chain update. (#29473)
* Sign empty to cert on manual-chain update.

* Add role defaults.

* Add changelog.

* More useful error message.

* Suggestions from PR Review.

* Fixes to update as well as write; test that still fails; revert code.

* Unit Test fix.

* Add go doc to TestManualChainValidation
2025-02-10 15:24:52 -05:00
Kit Haines
371ffc4bd4
Move all pki-verification calls from sdk-Verify() to pki-specific (#29342)
* Move all pki-verification calls from sdk-Verify() to pki-specific
VerifyCertifcate(...); update sdk-Verify to allow multiple chains,
but validate that at least one of those chains is valid.

* Updates to Validate on Parse PEMBlock, so that a single cert or a single key parses (test fixes).

* Add changelog.

* Make test certificate expire in a while, not at linux epoch.

* Remove duplicate code.

* Fix header file + go mod tidy.

* Updates based on review.
2025-01-29 11:05:55 -05:00
vinay-gopalan
838a38443f
Update Rotation Manager OSS Stubs and SDK methods (#29401) 2025-01-28 14:24:44 -06:00
Steven Clark
9456671f04
Prepare code base for Go 1.24 update. (#29412)
* Fix "t.Fatal from a non-test goroutine" errors in cache_test.go

 - t.Fatal(f) should not be called within a Go routine based on it's documentation and only from the main test's thread.
 - In 1.24 this seems to cause build failures

* Address all "non-constant format string errors" from go vet

 - Within 1.24 these now cause test builds to fail

…" from go vet
2025-01-27 14:34:07 -05:00
devon-mar
a401afe824
Add serial_number_source option to PKI role (#29369)
* Add `serial_number_source` option to PKI role

* Add changelog for #29369

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2025-01-27 08:51:26 -05:00
John-Michael Faircloth
28b2746545
db: return success response on static role create/update (#29407) 2025-01-24 11:02:38 -08:00
Mike Palmiotto
9d80c4548f
proto: bump protoc-gen-go to 1.36.3 (#29359) 2025-01-22 13:58:43 -05:00