Aleksandr Bezobchuk
0d6a0ec589
Merge PR #10010 : Rate Limit Quotas: Allow Exempt Paths to be Configurable
2020-10-16 14:58:19 -04:00
Nick Cabatoff
66274607b7
OSS changes for enterprise automated snapshots ( #10160 )
2020-10-16 14:57:11 -04:00
Hridoy Roy
bd2dc7734c
Backport leader status telemetry [VAULT-672] ( #10147 )
...
* backport VAULT-672
* backport VAULT-672
* go mod tidy
* go mod tidy
* add back indirect import
* replace go mod and go sum with master version
* go mod vendor
* more go mod vendor
Co-authored-by: Hridoy Roy <hridoyroy@Hridoys-MBP.hitronhub.home>
Co-authored-by: Hridoy Roy <hridoyroy@Hridoys-MacBook-Pro.local>
2020-10-15 14:15:58 -07:00
Michael Golowka
1888323243
DBPW - Copy `newdbplugin` package to `dbplugin/v5` ( #10151 )
...
This is part 1 of 4 for renaming the `newdbplugin` package. This copies the existing package to the new location but keeps the current one in place so we can migrate the existing references over more easily.
2020-10-15 13:20:12 -06:00
Brian Kassouf
84dbca38a1
Revert "Migrate internalshared out ( #9727 )" ( #10141 )
...
This reverts commit ee6391b691ac12ab6ca13c3912404f1d3a842bd6.
2020-10-13 16:38:21 -07:00
Aleksandr Bezobchuk
d37be9af6e
Merge PR #10095 : Integrated Storage Cloud Auto-Join
2020-10-13 16:26:39 -04:00
Connor
8b1a3301f0
Add telemetry for LRU cache ( #10079 )
...
Vault creates an LRU cache that is used when interacting with the
physical backend. Add telemetry when the cache is hit, missed, written
to and deleted from. Use the MetricSink from ClusterMetrics
2020-10-13 10:11:54 -05:00
Jeff Mitchell
e6881c8147
Migrate internalshared out ( #9727 )
...
* Migrate internalshared out
* fix merge issue
* fix merge issue
* go mod vendor
Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com>
2020-10-12 11:56:24 -07:00
Lauren Voswinkel
55761c1d43
Migrate MySQL db to v5 database engine ( #10110 )
...
* Migrate MySQL db to v5 database engine
2020-10-09 10:32:38 -07:00
Brian Kassouf
cb37fda0a7
Expiration: Fix lease counting logic ( #10106 )
2020-10-07 17:27:45 -07:00
Ivan Lemeshev
c84be1c874
Fix panic in RekeyVerifyRestart ( #9930 ) ( #10099 )
2020-10-07 11:06:17 -07:00
Ivan Lemeshev
8a2842b467
Fix panic in handleAuditNonLogical if vault is sealed ( #9310 ) ( #10103 )
2020-10-07 08:30:36 -04:00
Aleksandr Bezobchuk
a3cfa7c447
Merge PR #10059 : Port OSS changes from #1497
2020-10-01 15:15:20 -04:00
Brian Kassouf
b0d3d9bf49
Update lease timer logic ( #10030 )
2020-09-23 11:46:22 -07:00
ncabatoff
3fb20ed529
Logging tweaks, mostly for tests ( #10028 )
...
Fix some places where raft wasn't hooking into the core logger as it should.
Revisited the code that was setting the log level to Error during cleanup: it's normal for there to be a bunch of errors then, which makes it harder to see what went wrong up to the point where the test was deemed to have failed. So now, instead of setting log level to Error, we actually stop logging altogether. This only applies if the test didn't pass in its own logger during cluster creation, but we should be moving away from that anyway.
2020-09-23 13:40:00 -04:00
Brian Kassouf
3f30fc5f4e
Port changes from enterprise lease fix ( #10020 )
2020-09-22 14:47:13 -07:00
Mark Gritter
38ae7efca3
Switch to PerfStandby() where possible. ( #9993 )
2020-09-22 14:48:30 -05:00
Michael Golowka
60e0cbbc37
[DBPW 4/X] Update DB engine to support v4 and v5 interfaces with password policies ( #9878 )
2020-09-18 15:10:54 -06:00
ncabatoff
0f77d0e282
Move the code that creates Consul containers out of teststorage. This allows importers of teststorage that don't need consul to run as a non-docker test. ( #9975 )
2020-09-17 15:44:29 -04:00
ncabatoff
2cb1e03c1b
Fix flaky TestCluster_ForwardRequest tests. ( #9973 )
...
We now wait to see that clients are aware of a new leader before we hit them, and we wait to see that the leader has setup the forwarding handler.
2020-09-16 15:31:06 -04:00
Mark Gritter
587ed7d499
Disable usage metrics on performance standby nodes. ( #9966 )
2020-09-15 17:12:28 -05:00
ncabatoff
b615da43d7
Run CI tests in docker instead of a machine. ( #8948 )
2020-09-15 10:01:26 -04:00
Mark Gritter
4633f5a8fc
Disable flaky test case. ( #9926 )
2020-09-10 17:54:31 -05:00
swayne275
22f7a0ebef
VAULT-417: check expired context in entity API ( #1445 ) ( #9925 )
2020-09-10 16:31:32 -06:00
Mark Gritter
1b2c20e07c
Merge activity log work to date on enterprise back into oss. ( #9900 )
...
* Added stub class for activity logging. (#1435 )
* Define activity fragments and starter methods for manipulating them. (#1441 )
2020-09-08 14:22:09 -05:00
Mark Gritter
3690774f7b
Fix crash when KV store has a zero-length key. ( #9881 )
...
* Fix crash when KV store has a zero-length key.
* Add PR to changelog.
2020-09-02 17:43:44 -05:00
ncabatoff
30eba1eed1
Update retryablehttp to fix a data race ( #9551 )
2020-08-31 11:10:52 -04:00
Alexander Bezobchuk
f873863263
Merge PR #9667 : Rate Limit Backoff
2020-08-16 22:09:18 -04:00
ncabatoff
4134ef2e98
Ensure that perf standbys can perform seal migrations. ( #9690 )
2020-08-10 08:35:57 -04:00
Rodrigo D. L
d0df8bfa21
adding new config flag disable_sentinel_trace ( #9696 )
2020-08-10 06:23:44 -04:00
Tom Proctor
4ca978598f
Bundle couchbase database plugin with vault ( #9664 )
2020-08-07 11:01:04 +01:00
ncabatoff
b6fd378ee8
Make manualStepDownCh a 1-buffered channel to ensure StepDown actually steps down in tests. ( #9622 )
2020-07-31 10:01:51 -04:00
ncabatoff
1154b36b56
Log sanitized config at startup and when it changes. ( #9637 )
...
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
2020-07-30 13:15:00 -04:00
Alexander Bezobchuk
1e262e5648
Merge PR #9581 : Rate Limit Quota Headers
2020-07-29 15:15:05 -04:00
Scott Miller
16ca436dd8
Increase expiration timeouts on leases to avoid races in NoopBackend ( #9600 )
...
* Increase expiration timeouts on leases to avoid races in NoopBackend
* Set timeouts depending on whether they are relevant to the test: 1s for irrelevant, back to 20ms if they are
* revert one more
2020-07-29 10:13:47 -05:00
ncabatoff
003bccd16e
Eliminate global that caused race tests to fail in ent with an internal config setting. ( #9604 )
2020-07-27 16:10:26 -04:00
ncabatoff
ee6e2344dd
Fix a race caused by assignment to core.metricSink ( #9560 )
2020-07-22 13:52:10 -04:00
ncabatoff
7484fd7c72
Handle "invalid request" failures stemming from a kvv2 upgrade. ( #9550 )
2020-07-22 10:56:00 -04:00
ncabatoff
3fbc0f35c2
Make runTransit tolerate a non-core-0 leader. ( #9548 )
2020-07-21 15:50:01 -04:00
Brian Kassouf
fd72d92434
raft: Fix some snapshot restore issues ( #9533 )
...
* raft: Remove double read lock
* Reload TLS keyring after reloading the barrier keys
2020-07-21 10:59:07 -07:00
ncabatoff
d2436a9c56
Make standbyStopCh atomic to avoid data races ( #9539 )
2020-07-21 08:34:07 -04:00
ncabatoff
d777708fde
Improve logging, and add polling to the post-stepdown leader check. ( #9530 )
2020-07-20 12:44:23 -04:00
ncabatoff
a31fd27069
Use the accessor method so state lock is used to check perf standby status. ( #9496 )
2020-07-20 10:34:16 -04:00
ncabatoff
3ddc837ce3
Make sure cluster is stopped before wiping storage. ( #9526 )
2020-07-20 09:32:38 -04:00
Vishal Nayak
14779e9f9d
Remove prefix for exception paths; add sys/internal/ui/mounts ( #9512 )
2020-07-17 10:55:38 -04:00
Mike Jarmy
93ff4c098c
Add a lock to seal migration ( #9485 )
...
* add a lock to seal migration
* switch to CompareAndSwapInt32
* switch to uber go-atomic
2020-07-16 15:14:29 -04:00
Alexander Bezobchuk
ea13485c7d
Merge PR #9502 : Resource Quotas: Remove 'burst' Param from Rate Limiter
2020-07-16 14:34:43 -04:00
Vishal Nayak
4e4cb5289a
Fetch quota by name before updating it ( #9466 )
...
* Fix quotas update
* Update doc
2020-07-15 13:25:00 -04:00
Mark Gritter
c4dbbccef3
Remove namespace from mount_point label. ( #9436 )
...
* Remove namespace from mount_point label.
* Fix the other two places where vault.token.creation is emitted.
2020-07-14 14:28:11 -05:00
Calvin Leung Huang
cf354f6438
quotas: fix data race that could occur if ApplyQuota was called durin… ( #9458 )
...
* quotas: fix data race that could occur if ApplyQuota was called during a db reset
* Abstract out the locking caller
* Remove unneeded lock
* Update
Co-authored-by: Vishal Nayak <vishalnayakv@gmail.com>
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2020-07-13 11:42:39 -07:00