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

Vault 2176 snapshot config issue #12317

Merged
merged 3 commits into from Aug 16, 2021
Merged

Vault 2176 snapshot config issue #12317

merged 3 commits into from Aug 16, 2021

Conversation

akshya96
Copy link
Contributor

Issue : When reading raft auto-snapshot configuration from performance standby node, API request results to 307 - Temporary Redirect error. It works just find on active node.Seems like for api's under path snapshot-auto the redirect is not handled correctly.

Jira Link : https://hashicorp.atlassian.net/browse/VAULT-2176

Testing:
curl -v --header X-Vault-Token:s.pxkZWVdsWpcnU6f3LYv4Z5sO --request LIST http://127.0.0.3:8200/v1/sys/storage/raft/snapshot-auto/config

Trying 127.0.0.3...
TCP_NODELAY set
Connected to 127.0.0.3 (127.0.0.3) port 8200 (#0)
LIST /v1/sys/storage/raft/snapshot-auto/config HTTP/1.1
Host: 127.0.0.3:8200
User-Agent: curl/7.64.1
Accept: /
X-Vault-Token:s.pxkZWVdsWpcnU6f3LYv4Z5sO

< HTTP/1.1 200 OK
< Cache-Control: no-store
< Content-Type: application/json
< Date: Wed, 11 Aug 2021 19:42:46 GMT
< Content-Length: 176
<
{"request_id":"672f8256-8a19-86fd-06da-2bd0835bb998","lease_id":"","renewable":false,"lease_duration":0,"data":{"keys":["daily"]},"wrap_info":null,"warnings":null,"auth":null}

Connection #0 to host 127.0.0.3 left intact
Closing connection 0

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 12, 2021

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – vault August 12, 2021 19:32 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook August 12, 2021 19:32 Inactive
@vercel vercel bot temporarily deployed to Preview – vault August 12, 2021 21:10 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook August 12, 2021 21:10 Inactive
Copy link
Contributor

@pmmukh pmmukh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@akshya96 akshya96 merged commit 171c2ad into main Aug 16, 2021
jartek pushed a commit to jartek/vault that referenced this pull request Sep 11, 2021
* removing redirect line from handler.go

* adding changelog entry

* adding changes
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

4 participants