Commit Graph

625 Commits

Author SHA1 Message Date
hc-github-team-secure-vault-core 05cd21f13b
backport of commit 8a174b05b045662423ce76be62687faab7e2514d (#22207)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-08-04 11:45:55 -04:00
hc-github-team-secure-vault-core ff3a9fb652
backport of commit 068da27a2d7447ef896b0638e3526c56b586301a (#22051)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-07-25 17:40:49 +00:00
hc-github-team-secure-vault-core 08c0489053
backport of commit 4ec5e22adebe64944c35a6b6460bfee5efae5d51 (#21899)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-07-17 19:11:48 +00:00
hc-github-team-secure-vault-core ebc05a5221
backport of commit 366693c78dec71212ab344e8d315637722b60d25 (#21887)
Co-authored-by: Laurent <hello@viper61.fr>
2023-07-17 13:50:04 +00:00
Steven Clark e167798ea5
Add back paths to TestProperAuthing (#21855)
- Since the backport's for the OpenAPI list haven't occurred yet,
   we need both the existing path and the new path for when they do
   get backported.
2023-07-14 13:02:15 +00:00
hc-github-team-secure-vault-core 43feaf1379
Update TestProperAuthing test for backports (#21852)
Co-authored-by: Steve Clark <steven.clark@hashicorp.com>
2023-07-14 11:51:10 +00:00
hc-github-team-secure-vault-core 6738b00b59
backport of commit 8d74143872101df6f845fe86e69faea276e9e0f4 (#21810)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-07-13 13:24:09 +00:00
hc-github-team-secure-vault-core 5f6c3f4155
backport of commit b0fb3b14206c63c01041fe3f561b147a3d41de74 (#21720)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-07-10 17:07:30 +00:00
hc-github-team-secure-vault-core 5772e81ae8
backport of commit e29842e49e807b574dccb8e87bc20947a6d21438 (#21712)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-07-10 13:55:55 +00:00
hc-github-team-secure-vault-core c215c2de27
backport of commit bce4b7a3e5a742326c5d7560bb00696db4fe8cc5 (#21699)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-07-07 20:52:57 +00:00
hc-github-team-secure-vault-core 7a0badc115
backport of commit 072f0dd7c85be8d4e4390cf417900efce5e38d56 (#21656)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-07-07 15:45:01 +00:00
hc-github-team-secure-vault-core df1fb2c868
backport of commit 5ce57dbd00b4d81602b07a82430365f770bf0870 (#21589)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-07-05 18:46:58 +00:00
hc-github-team-secure-vault-core 649715eeb4
backport of commit e3b3c7a8de6f7c3c240ecf798470bbb24c2aaf60 (#21468)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-27 13:14:38 +00:00
hc-github-team-secure-vault-core 45b8674d03
backport of commit df304012f3b3f4d7860b3bb3b58f844291495793 (#21457)
Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
2023-06-26 14:42:40 -04:00
hc-github-team-secure-vault-core b0b2e07f86
backport of commit 15aee2e0babebaeb7ef3c49fc6221a2bc08cd8fa (#21398)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-21 17:06:16 -04:00
hc-github-team-secure-vault-core 36365ed7f4
backport of commit 3a46ecc389e9096ccea6c6f847b68ada7f8068d7 (#21362)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-06-21 14:01:13 +00:00
hc-github-team-secure-vault-core 13fdb8f9bf
backport of commit 042dd57811c900c9f6e2c85b5460d50560f79105 (#21295)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-15 21:47:54 +00:00
hc-github-team-secure-vault-core ec9fed4555
backport of commit 8cc7be234ac34ff0f703ab092a7314ba9e65b277 (#21293)
Co-authored-by: Matt Schultz <975680+schultz-is@users.noreply.github.com>
2023-06-15 21:15:01 +00:00
hc-github-team-secure-vault-core 25364ebb61
backport of commit 052719b9a824da4ee368c3d982070ab290846970 (#21226)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-14 18:08:57 +00:00
hc-github-team-secure-vault-core 833fe4580b
backport of commit b346b52b62db8ddf2eeaace506f211ea02166b93 (#21224)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-14 16:31:07 +00:00
hc-github-team-secure-vault-core 1be0ebae8a
backport of commit 3b14cd2061b49c8c698205eef87ceb3d0e69983b (#21181)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-13 20:13:41 +00:00
hc-github-team-secure-vault-core e8ce4a4787
Backport of Signal ACME challenge engine if existing challenges were loaded on startup into release/1.14.x (#21142)
* backport of commit c855ba6a903787fa3102f5dac8bf8a8eacac213b

* Remove changelog

 - Removing changelog as it ACME is not part of a release

---------

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-12 18:42:54 +00:00
hc-github-team-secure-vault-core c8bda1de51
backport of commit 9f87bcfb3b67cbad9ee967ac574484938447f448 (#21085)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-08 17:35:07 +00:00
hc-github-team-secure-vault-core 97b763fb91
backport of commit df975cf04e06e0c18c4b23308b7c82fb5664b6a0 (#21013)
Co-authored-by: Kit Haines <khaines@mit.edu>
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-08 16:27:42 +00:00
hc-github-team-secure-vault-core cb44d87787
backport of commit 61d35391a74bd8e7fcf0d1b37417c258859a4ddb (#21012)
Co-authored-by: Kit Haines <khaines@mit.edu>
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-08 11:48:10 -04:00
hc-github-team-secure-vault-core e87682eb66
backport of commit 8e576cf226d090d280ccfdd341107fc5a5a41c9a (#21076)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-08 14:13:24 +00:00
hc-github-team-secure-vault-core 6a24e938df
backport of commit 08c1efa4d4fa516c40a8b5ede0e8e19f298d7755 (#21074)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-08 13:25:07 +00:00
hc-github-team-secure-vault-core 8f255a061d
backport of commit ddaf5038f253546b15eae684a8114c04e552b731 (#21068)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-08 04:00:10 +00:00
hc-github-team-secure-vault-core 63789ceb9f
backport of commit 0bd356f6cd9bd82c108535439a7f83796c89030e (#21065)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-08 01:35:28 +00:00
hc-github-team-secure-vault-core d8979b449c
backport of commit f079b7b0a4de28f1230a270fc35ea5a787ad96d2 (#21060)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-06-07 21:32:58 +00:00
hc-github-team-secure-vault-core 1f8c665eb3
backport of commit 3dbdee528a0ae581858c77512c46f4a1fda87283 (#21054)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-07 20:34:22 +00:00
hc-github-team-secure-vault-core 7ffedab7ce
backport of commit e63dc30507cbd65cd7bcd59c317edd663e035af7 (#20946)
Co-authored-by: Kit Haines <khaines@mit.edu>
2023-06-01 18:42:16 -04:00
hc-github-team-secure-vault-core 722f523a1c
backport of commit 8dde8ae29e2edc663f6c02a87d8a6c1376cc2b52 (#20936)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-01 19:57:41 +00:00
hc-github-team-secure-vault-core e3e947b386
backport of commit 4b60ffd5ef87e5f6535dcf578ed6c36b24b75174 (#20892)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-31 14:19:49 +00:00
hc-github-team-secure-vault-core da127db836
backport of commit 000d754c40b5daaae21e97dd548d3c308c7c6475 (#20870)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-05-30 19:34:01 +00:00
hc-github-team-secure-vault-core a1d3c88f56
backport of commit 12d851de3755aaeba6531c87db5c488a5782b9cb (#20853)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-05-30 19:01:44 +00:00
hc-github-team-secure-vault-core 765427257e
backport of commit 7cf3ba33b5bf46954bdc872f9a3b72352fcd7a64 (#20852)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-05-30 18:15:53 +00:00
hc-github-team-secure-vault-core 0f66ddb8f8
backport of commit 34571d4d230537126ba4fa879fc161beada742ae (#20850)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-05-30 17:42:15 +00:00
Alexander Scheel 34804c6817
Increase retry limit on dnstest/server.go (#20810)
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-26 14:33:21 +00:00
Alexander Scheel 30488bc374
sdk/helper/nonce -> go-secure-stdlib/nonceutil (#20737)
Depends on https://github.com/hashicorp/go-secure-stdlib/pull/73

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-25 20:57:08 +00:00
Anton Averchenkov 5b510ffeca
openapi: Fix response schema for pki list roles (#20782) 2023-05-25 13:34:34 -04:00
Steven Clark d2f74c3901
Address various issues related to ACME EAB (#20755)
* Fix various EAB related issues

 - List API wasn't plumbed through properly so it did not work as expected
 - Use random 32 bytes instead of an EC key for EAB key values
 - Update OpenAPI definitions

* Clean up unused EAB keys within tidy

* Move Vault EAB creation path to pki/acme/new-eab

* Update eab vault responses to match up with docs
2023-05-24 21:17:33 +00:00
Alexander Scheel f156a57325
Validate no_store=false on role configuration (#20757)
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-24 21:13:28 +00:00
Steven Clark f29fabe7c1
Enforce valid ACME accounts in challenge APIS (#20744)
- Make sure we have an ACME account in a valid state and
   enforce EAB policies on that account for the challenge
   and revocation by account ACME apis.
2023-05-24 17:28:56 +00:00
Alexander Scheel c67546511d
Move activityType to a constant, set precedence (#20738)
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-24 12:29:47 -04:00
Alexander Scheel 83d32240c7
Add nonce service to sdk/helpers, use in PKI (#20688)
* Build a better nonce service

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add internal nonce service for testing

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add benchmarks for nonce service

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add statistics around how long tidy took

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Replace ACME nonces with shared nonce service

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add an initialize method to nonce services

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Use the new initialize helper on nonce service in PKI

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add additional tests for nonces

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Format sdk/helper/nonce

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Use default 90s nonce expiry in PKI

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Remove parallel test case as covered by benchmark

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add additional commentary to encrypted nonce implementation

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add nonce to test_packages

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-23 19:44:05 +00:00
Márk Sági-Kazár 258b2ef740
Upgrade go-jose library to v3 (#20559)
* upgrade go-jose library to v3

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>

* chore: fix unnecessary import alias

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>

* upgrade go-jose library to v2 in vault

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>

---------

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-05-23 12:25:58 +00:00
Alexander Scheel 1f21afba21
Fix race in PKI's runUnifiedTransfer (#20701)
* Fix race in PKI's runUnifiedTransfer

During this race, we'll sometimes start (or fail to start) an additional
unified transfer if the updated last run timestamp was written at the
same time as another thread was reading it.

Instead, delay this check until we're holding the CAS guard; this will
occasionally result in more messages saying that an existing process is
already running, but otherwise shouldn't impact the functionality at
all.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-22 18:31:19 +00:00
Mike Palmiotto a40341d176
Add client_type field to EntityRecord protobuf (#20626)
* Add client_type field to EntityRecord protobuf

* changelog

* Add ACME clientType verification
2023-05-19 20:30:12 +00:00
Alexander Scheel e552c06173
Properly validate int ca lifetime error, add warning on leaf cert with basic constraints (#20654)
* Ensure proper error message from CA validity period

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add warning to issuance of leaf cert with basic constraints

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-19 19:52:16 +00:00