Closed denmaddog closed 1 year ago
Just to clarify, the manual creation of the snapshot with the vault operator command is with the same credentials, correct?
Yes, using root token for authentication with both vault cli and UI.
Thank you! I'll have our engineering teams take a look. :)
np, thank you! :)
I am having the same issue. I had Vault 1.8.8 and the download snapshot from UI was working fine. Then I upgraded to 1.11.3 and that functionality broke. In version 1.11.3 I tried both being logged as my usr and as root user. Same behaviour. I can take the snapshot using the cli but from UI it hangs and eventually I get permission denied message in the browser.
Same with v1.12.1.
Describe the bug When I login to Vault UI and go to Status/Raft storage --> Snapshots --> Download It hangs for some time and then it shows message in browser: {"errors":["permission denied"]}
URL is: https://vault-cluster.example.com:8200/ui/vault/storage/raft
To Reproduce Steps to reproduce the behavior:
Expected behavior It should offer snapshot to download.
Environment:
vault status
): vault status Key ValueSeal Type shamir Initialized true Sealed false Total Shares 5 Threshold 3 Version 1.12.0 Build Date 2022-10-10T18:14:33Z Storage Type raft Cluster Name vault-cluster-xxxxxx Cluster ID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HA Enabled true HA Cluster https://vault-node1.example.com:8201 HA Mode active Active Since 2022-10-19T16:55:47.797228758Z Raft Committed Index 2003050 Raft Applied Index 2003050
vault version
): Vault v1.12.0 (558abfa75702b5dab4c98e86b802fb9aef43b0eb), built 2022-10-10T18:14:33Zvault operator raft autopilot state Healthy: true Failure Tolerance: 2 Leader: node1 Voters: node1 node2 node3 node4 node5 Servers: node1 Name: node1 Address: vault-node1.example.com:8201 Status: leader Node Status: alive Healthy: true Last Contact: 0s Last Term: 48 Last Index: 2003100 Version: 1.12.0 Node Type: voter node2 Name: node2 Address: vault-node2.example.com:8201 Status: voter Node Status: alive Healthy: true Last Contact: 139.461806ms Last Term: 48 Last Index: 2003100 Version: 1.12.0 Node Type: voter node3 Name: node3 Address: vault-node3.example.com:8201 Status: voter Node Status: alive Healthy: true Last Contact: 434.560895ms Last Term: 48 Last Index: 2003100 Version: 1.12.0 Node Type: voter node4 Name: node4 Address: vault-node4.example.com:8201 Status: voter Node Status: alive Healthy: true Last Contact: 1.706376111s Last Term: 48 Last Index: 2003100 Version: 1.12.0 Node Type: voter node5 Name: node5 Address: vault-node5.example.com:8201 Status: voter Node Status: alive Healthy: true Last Contact: 156.711955ms Last Term: 48 Last Index: 2003100 Version: 1.12.0 Node Type: voter
Additional context Manual creation of snapshot works: vault operator raft snapshot save 19102022.snapshot
ls -lah total 9.2M drwxr-xr-x 2 root root 4.0K Oct 19 17:01 . drwx------ 8 root root 4.0K Oct 19 17:01 .. -rw------- 1 root root 9.2M Oct 19 17:01 19102022.snapshot