Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing read unlock calls in transit backend code #12651

Closed
wants to merge 232 commits into from

Conversation

divyapola5
Copy link
Contributor

This PR is a followup for #12418 and in summary includes the following changes:
1 - Add missing read unlock calls for cacheSizeChanged variable
2 - Invoke initCache in pathCacheConfigRead routine if needed

jescalan and others added 30 commits June 4, 2021 19:54
* oss part of control groups upgrade

* changelog and docs

* formatting

* formatting
…pan. (#11760)

* wip

* wip

* Finish implementing advice handling and word wrapping

* Properly word wrap messages and warnings

* Remove debugging

* Remove debugging

* Remove unnecessary test

* unit test bug

* go vendor
* Update secret backend partial to components

* Added jsdoc to components
* replace last two partials

* cleanup

* modify test to cover new component

* only on ca role run new function

* help with inconsistent failure on enterprise test

* small changes to help with flaky test locally

* add js docs
* moved client content from cloud to vault

* Empty commit trigger

Co-authored-by: Michele <mdeggies@gmail.com>
* Fix the third dumb thing in this file

* ...
* chore: updates alert banner data

* Update website/data/alert-banner.js
… to try to grab the readlock when we're servicing a request (#11793)
Updated content to notify the users that the Special and Control characters will be escaped as per the JSON specification.
…11755)

Fixed the issue with the URL link for the Password Policy Syntax.
* Update serializer for license and example response

* Wrap mirage license/status in data
* Upgrade packagespec to 0.2.6

* Remove darwin/arm64 from building
* Udate to Go 1.16.5

* Add CL

* Update packages-oss.yml

* Update go_test.yml
- This defeats CircleCI's "no output timeout"
* Add username_template to influxdb

* go fmt

* goimport for influxdb.go
…er. (#11122)

* Acquire a per-lock lease to make renew and revoke atomic wrt each other.
This means we don't have to hold pendingLock during I/O.

* Attempted fix for deadlock in token revocation.

* Comment fix.

* Fix error checking in loadEntry.

* Add benchmark

* Add a few additional locking locations

* Improve benchmark slightly

* Update vault/expiration.go

Co-authored-by: swayne275 <swayne275@gmail.com>

* Update vault/expiration.go

Co-authored-by: swayne275 <swayne275@gmail.com>

* Add a lease lock into tidy

Co-authored-by: Scott Miller <smiller@hashicorp.com>
Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com>
Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
Co-authored-by: swayne275 <swayne275@gmail.com>
* fix m.coreStateLock deadlock for API handler code

* improve lock comment
* initial refactoring of unseal step in run

* remove waitgroup

* remove waitgroup

* backup work

* backup

* backup

* completely modularize run and move into diagnose

* add diagnose errors for incorrect number of unseal keys

* comment tests back in

* backup

* first subspan

* finished subspanning but running into error with timeouts

* remove runtime checks

* merge main branch

* meeting updates

* remove telemetry block

* roy comment

* subspans for seal finalization and wrapping diagnose latency checks

* backup while I fix something else

* fix storage latency test errors

* runtime checks

* diagnose with timeout on seal
ncabatoff and others added 21 commits August 19, 2021 16:16
* [VAULT-3226] Use os.rename on windows os

* [VAULT-3226] Add changelog
* plugin/snowflake: update gosnowflake to v1.6.1 (#12378)

* plugin/snowflake: update gosnowflake to v1.6.1

* changelog

* go mod tidy

* go mod tidy
* Handle api explorer routing error

- For some reason when routing is done during async process, router transtionTo throws the TransitionAbortedError
- As a fix treat this particular error as success since it doesn't interfere in the routing
- Reference: emberjs/ember-test-helpers#332

* Added changelog
#12361)

* creds/aws: import pkcs7 verification package

* Add DSA support

* changelog

* Add DSA to correct verify function

* Remove unneeded tests

* Fix backend test

* Update builtin/credential/aws/pkcs7/README.md

Co-authored-by: Calvin Leung Huang <1883212+calvn@users.noreply.github.com>

* Update builtin/credential/aws/path_login.go

Co-authored-by: Calvin Leung Huang <1883212+calvn@users.noreply.github.com>

Co-authored-by: Calvin Leung Huang <1883212+calvn@users.noreply.github.com>

Co-authored-by: Calvin Leung Huang <1883212+calvn@users.noreply.github.com>
* pass default value for defaultSpan on pricing metrics dates component

* Add changelog

* Add test for no config policy
…lue (#12409) (#12416)

* fix tab issue

* add test coverage

* changelog

* update documentation

* remove meep:

* documentation
* packagespec upgrade -version 0.2.8

* make packages
…xpiration warning dialog (#11984) (#12488)

* Show day of month instead of day of year in expiration warning dialog

* Adding changelog

Co-authored-by: Robert Balent <robert@balent.ca>
* Override loading behavior which breaks query params passed to API calls

* Only show loading state if transition is not queryparams only

* Add changelog

* Skip loader if testing
…12539)

Byte slices returned from Bolt are only valid during a transaction, so
this makes a copy.

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
* Enforce Minimum cache size for transit backend

* enfore minimum cache size and log a warning during backend construction

* Update documentation for transit backend cache configuration

* Added changelog

* Addressed review feedback and added unit test

* Modify code in pathCacheConfigWrite to make use of the updated cache size

* Updated code to refresh cache size on transit backend without restart

* Update code to acquire read and write locks appropriately
@divyapola5 divyapola5 requested a review from a team September 27, 2021 21:14
@divyapola5 divyapola5 changed the base branch from main to master September 27, 2021 21:14
@divyapola5 divyapola5 closed this Sep 27, 2021
@divyapola5 divyapola5 deleted the transitCacheConfig branch September 27, 2021 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet