Commit Graph

1700 Commits

Author SHA1 Message Date
Hamid Ghaf
e8ebe6b565 Revert "Automatically track subloggers in allLoggers (#22038)" (#24004)
This reverts commit 4c8cc87794.
2023-11-03 14:39:56 -07:00
hc-github-team-secure-vault-core
cbb4be0715 backport of commit 63ab253cb4 (#23928)
Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
2023-10-31 15:18:59 -05:00
hc-github-team-secure-vault-core
52879c0f0c Backport of api/seal-status: fix deadlock when namespace is set on seal-status calls into release/1.13.x (#23877)
* api/seal-status: fix deadlock when namespace is set on seal-status calls (#23861)

* api/seal-status: fix deadlock when namespace is set on seal-status calls

* changelog

* oops

* Fix seal type

---------

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-10-27 14:49:04 +00:00
davidadeleon
b7e8bf96cc Revert "Implement user lockout log (#23140)" (#23767)
This reverts commit 8f70fb907458ae0325191deba35b476e1a4bc33f.
2023-10-20 16:17:35 +00:00
hc-github-team-secure-vault-core
3f9537ede0 backport of commit 7872338ec1 (#23638)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-10-16 16:43:05 -04:00
hc-github-team-secure-vault-core
9f1f8e871d Implement user lockout log (#23140) (#23561)
* implement user lockout logger

* formatting

* make user lockout log interval configurable

* create func to get locked user count, and fix potential deadlock

* fix test

* fix test

* add changelog

Co-authored-by: davidadeleon <56207066+davidadeleon@users.noreply.github.com>
2023-10-09 12:43:48 -04:00
Hamid Ghaf
1e4f08b75e fix: Fail in goroutine after tests have completed (#23158) (#23164)
* fix panic: Fail in goroutine after TestProxy_Config_ReloadTls has completed

* fix proxy test

* feedback

* track the command output code and stdout/err
2023-09-19 16:07:47 +00:00
hc-github-team-secure-vault-core
af5c376598 backport of commit 5a83838f1d (#23019)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
2023-09-13 09:15:35 -04:00
hc-github-team-secure-vault-core
2eea7faf61 backport of commit 3130e8ba94 (#22867) 2023-09-07 20:01:16 +00:00
hc-github-team-secure-vault-core
9a9f21ff67 backport of commit 4c8cc87794 (#22246)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2023-09-01 13:16:25 -04:00
hc-github-team-secure-vault-core
9042812f82 Backport of Add config value that gives users options to skip calculating role for each lease into release/1.13.x (#22729)
* Add config value that gives users options to skip calculating role for each lease (#22651)

* Add config value that gives users options to skip calculating role for each lease

* add changelog

* change name

* add config for testing

* Update changelog/22651.txt

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>

* update tests, docs and reorder logic in conditional

* fix comment

* update comment

* fix comment again

* Update comments and change if order

* change comment again

* add other comment

* fix tests

* add documentation

* edit docs

* Update http/util.go

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* Update vault/core.go

* Update vault/core.go

* update var name

* udpate docs

* Update vault/request_handling.go

Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* 1 more docs change

---------

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>

* remove wrong part of cherry-pick

---------

Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
2023-09-01 08:07:21 -05:00
hc-github-team-secure-vault-core
716aa13113 backport of commit 727c73cbd1 (#22685)
Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
2023-08-31 13:34:58 +00:00
Bianca Moreira
39752b870a Add high privilege namespace (#21215) (#21647) 2023-07-07 16:03:41 +02:00
hc-github-team-secure-vault-core
a212330c7b backport of commit f12c128559 (#21347)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-06-19 11:40:05 -04:00
Anton Averchenkov
9b308bebe4 Backport of agent: Fix bug with 'cache' stanza validation into release/1.13.x 2023-06-14 21:41:03 +00:00
Mike Palmiotto
fa4153dc1f backports for ActivityLog and Reporting 1.13.x (#21140)
* backport of commit 9f7f8d5bfa

* backport of commit e3c59773e9

* backport of commit b4fab6ac2a

* backport of commit 54904e4cd6

* backport of commit 4b6ec4079d

* backport of commit 05ba6bbddd

* backport of commit 002a59a370

* backport of commit 77f83d9fe8

* backport of commit 730d0e2821

* backport of commit 35e2c1665f

* backport of commit 810d504e4f

* backport of commit 5b23dd506f

* backport of commit 018ea84997

* backport of commit 541f18eeb7

* backport of commit b4e2751a09

* backport of commit dc5dd71c72

* backport of commit 5002489d27

---------

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-06-14 17:07:26 -04:00
hc-github-team-secure-vault-core
1720d3172d backport of commit 0115b5e43a (#20963)
Co-authored-by: Mike Baum <mike.baum@hashicorp.com>
2023-06-02 14:17:30 -04:00
hc-github-team-secure-vault-core
9f18485744 backport of commit 360a406a2f (#20927)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-06-01 14:34:06 +00:00
hc-github-team-secure-vault-core
e07a17afe8 backport of commit 1336abddfe (#20796)
Co-authored-by: Larroyo <95649169+DeLuci@users.noreply.github.com>
2023-05-25 21:05:29 +00:00
hc-github-team-secure-vault-core
99f55c11be backport of commit 00855a9e7a (#20622)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-05-17 12:27:03 -04:00
hc-github-team-secure-vault-core
a6c5b15390 backport of commit c93f4aa6d0 (#20543)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-05-08 09:55:42 -07:00
hc-github-team-secure-vault-core
17e127d22b backport of commit fb9324c3c9 (#20514)
Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com>
2023-05-04 08:37:30 -07:00
hc-github-team-secure-vault-core
657c287221 backport of commit 9ae8f48f9b (#20420)
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-04-28 15:50:58 +00:00
hc-github-team-secure-vault-core
cbf312bbb0 backport of commit ca702745e8 (#20175)
Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-04-21 19:46:24 +00:00
hc-github-team-secure-vault-core
6a6444e607 backport of commit b0289d4472 (#20288)
Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2023-04-21 09:48:22 +00:00
hc-github-team-secure-vault-core
758cf7531d backport of commit 98786d96c7 (#20250)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2023-04-19 13:59:40 +00:00
miagilepner
5d13255607 Revert "backport of commit b4fab6ac2a (#20117)" (#20142)
This reverts commit 57086ad4cd.
2023-04-13 14:38:31 +00:00
hc-github-team-secure-vault-core
57086ad4cd backport of commit b4fab6ac2a (#20117)
Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2023-04-12 12:40:17 -04:00
Kuba Wieczorek
8fb3860e7d Update TestDebugCommand_NoConnection to work when run in an environment with working Vault (#19942) 2023-04-03 16:32:23 +00:00
Marc Boudreau
b500045c29 Backport all GHA Migration Changes to release/1.13.x Branch (#19767)
* backport all gha migration changes to release/1.13.x

* remove the .circleci directory

* remove references to circleci configuration from pre-commit hook

* remove reference to .circleci in Makefile

* port change to how gofumpt is executed in Makefile

* add gotestsum to tools/tools.go

* remove postgresql/scram package from generate-test-package-lists.sh since it didn't exist in release 1.13 or earlier

* blank out environment variables to allow test to properly function

* use go:embed to load files into test

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-03-30 11:00:02 -04:00
hc-github-team-secure-vault-core
dd63028d00 backport of commit 9f8d831d94 (#19492)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-03-09 10:41:40 -05:00
hc-github-team-secure-vault-core
b3dc15fe74 backport of commit ba013912b1 (#19396)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-02-28 15:12:36 +00:00
hc-github-team-secure-vault-core
a5edc66098 backport of commit d35be2d0de (#19375)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-02-27 13:52:36 -05:00
hc-github-team-secure-vault-core
c496011eed backport of commit d08bf5616d (#19347)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-24 14:11:43 -05:00
hc-github-team-secure-vault-core
6a73f37ba4 backport of commit 20b347e3cd (#19315)
Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2023-02-23 19:29:52 +01:00
hc-github-team-secure-vault-core
d21564e539 backport of commit 7d52daf715 (#19308)
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
2023-02-23 17:13:14 +00:00
hc-github-team-secure-vault-core
871dd067e3 backport of commit fe7eedafc3 (#19286)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-22 14:32:18 +00:00
hc-github-team-secure-vault-core
8cad3a3426 backport of commit 1b33b99253 (#19275)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-21 15:15:16 -05:00
hc-github-team-secure-vault-core
88e9f55199 backport of commit 9c4e65986f (#19273)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-21 19:24:22 +00:00
hc-github-team-secure-vault-core
8ffa334946 backport of commit 4ea5c581ad (#19268)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-21 14:18:22 +00:00
hc-github-team-secure-vault-core
e53ac2633b backport of commit 100ec9a700 (#19203)
Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-02-20 20:03:17 +00:00
hc-github-team-secure-vault-core
02bc25417a Trap errors related to vault pki list-intermediate issuer reading (#19165) (#19177)
* Rename files to match test suite and existing pattern

* Factor out issuer loading into a dedicated function

 - Add a little more checks/validation when loading the a PKI issuer
 - Factor out the issuer loading into a dedicated function
 - Leverage existing health check code to parse issuer certificates

* Read parent issuer once instead of reloading it for every child

 - Read in our parent issuer once instead of running it for every child
   we want to compare against
 - Provides clearer error message that we have failed reading from which
   path to the end user

* PR Feedback

 - Rename a variable for clarity
 - Use readIssuer in the validation of the parent issuer within
   pkiIssuer
 - Add some missing return 1 statements in error handlers that had been
   missed

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2023-02-14 09:51:12 -05:00
hc-github-team-secure-vault-core
3e4710d7ad backport of commit d08de3e78e (#19178)
Co-authored-by: Kit Haines <khaines@mit.edu>
2023-02-14 14:23:50 +00:00
Christopher Swenson
6e233e567b events: Add websockets and command (#19057)
Also updates the event receieved to include a timestamp.
Websockets support both JSON and protobuf binary formats.

This can be used by either `wscat` or the new
`vault events subscribe`:

e.g.,
```sh
$ wscat -H "X-Vault-Token: $(vault print token)" --connect ws://127.0.0.1:8200/v1/sys/events/subscribe/abc?json=true
{"event":{"id":"5c5c8c83-bf43-7da5-fe88-fc3cac814b2e", "note":"testing"}, "eventType":"abc", "timestamp":"2023-02-07T18:40:50.598408Z"}
...
```

and

```sh
$ vault events subscribe abc
{"event":{"id":"5c5c8c83-bf43-7da5-fe88-fc3cac814b2e", "note":"testing"}, "eventType":"abc", "timestamp":"2023-02-07T18:40:50.598408Z"}
...
```

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-02-09 13:18:58 -08:00
mickael-hc
2eb11c0109 update diagnose command to no longer use docker (#19102)
docker dependency should no longer be included in the binary
2023-02-09 11:59:46 -05:00
Steven Clark
e32b4dccf1 Stop using title capitalization for PKI help (#19104)
- Match the existing vault kv capitalization scheme for Synopsis help of each sub-command.
 - A few small tweaks as well to the messages text in a few cases
2023-02-09 16:40:26 +00:00
miagilepner
13caa0842e VAULT-8436 remove <-time.After statements in for loops (#18818)
* replace time.After with ticker in loops

* add semgrep rule

* update to use timers

* remove stop
2023-02-06 17:49:01 +01:00
Nick Cabatoff
192baa88db Make API not depend on SDK (#18962) 2023-02-06 09:41:56 -05:00
Scott Miller
bf58843b0a Revert #18683 (#18942)
* Revert "Don't execute the seal recovery tests on ENT. (#18841)"

This reverts commit 990d3bacc2.

* Revert "Add the ability to unseal using recovery keys via an explicit seal option. (#18683)"

This reverts commit 2ffe49aab0.
2023-02-01 13:34:53 -06:00
Violet Hynes
68dbb925b7 VAULT-13056 fix leasecache usage, add test coverage (#18922)
* VAULT-13056 fix leasecache usage, add test coverage

* VAULT-13056 remove deprecated ioutil functions

* VAULT-13056 some test clean-up

* VAULT-13056 re-add environment variable thing

* VAULT-13056 add comment for clarity
2023-02-01 11:40:20 -05:00