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
ncabatoff
c822a4bffb
Modifying base can break tests that share the same coreConfig passed to NewTestCluster. ( #9451 )
2020-07-10 13:11:18 -04:00
Josh Black
38fc012817
Backport the pieces of the replication API changes ( #9425 )
2020-07-09 15:11:37 -07:00
Alexander Bezobchuk
f7c1907683
Merge PR #9437 : tests: Port #1315 from enterprise
2020-07-09 17:16:31 -04:00
Brian Kassouf
f8df68b673
seal: Fix issue migrating from Auto->Shamir and improve tests ( #9430 )
...
* Fix issue migrating from Auto->Shamir and improve tests
* Undo newline
* fix panic in test
* Fix test panic
2020-07-09 12:28:17 -07:00
Alexander Bezobchuk
dfb28a8fcc
Merge PR #9390 : http: revert resource quota changes
2020-07-07 00:05:28 -04:00
Calvin Leung Huang
67444d85b8
test/migration: ensure that leader client is used for storage read check ( #9403 )
2020-07-06 16:22:07 -07:00
Scott Miller
dfbc60cc49
Add mount type to request earlier, so it is populated on audit entries even if the request fails authorization ( #9389 )
2020-07-06 11:17:41 -05:00
Alexander Bezobchuk
f1534a0ed0
Add nil check for quota manager ( #9379 )
...
* Add nil check for quota manager
* Add missing nil checks
2020-07-01 18:14:33 -07:00
Alexander Bezobchuk
fb9cd9db2a
Merge PR #9372 : Fix Unauthenticated list
2020-07-01 16:02:14 -04:00
Mark Gritter
707fdea702
Don't return quota error on revoke. ( #9374 )
...
Changed log messages to be clearer about quota operations.
This should fix enterprise unit test failures.
2020-07-01 14:41:42 -05:00
Calvin Leung Huang
37c0e51142
logical/system: re-introduce ns-awareness in pathInternalUIMountsRead ( #9373 )
2020-07-01 12:37:11 -07:00
Scott Miller
a6f62359a9
Don't setup plugin reload on perf standbys ( #9352 )
2020-06-30 17:32:06 -05:00
Mike Jarmy
4b2cdfee72
re-enable seal migration ( #9351 )
...
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2020-06-30 18:21:18 -04:00