-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cannot unseal vault when S3 storage backend configured #7101
Comments
Hi @adriananeci, I tried to reproduce your issue but wasn't able to. Cheers, |
Hi @michelvocks , These are all the logs with log-level=trace set on vault config
And this is the systemd vault service config:
|
I can see from the logs that the initiation worked but then suddenly Vault is unable to find the file I noticed that the Vault data is stored below a subpath Could you also double-check your Vault config again? Is the provided configuration still valid and identical? |
@michelvocks
|
@adriananeci Looks like your service is setup incorrectly.
Should be default.hcl or whatever your config file is. |
@bartdzkan you're wrong.
|
Thanks. I was now able to reproduce your issue. The problem is the subpath of your S3 bucket. I think the best way to solve that issue is to support an additional configuration parameter called |
I can confirm that with a simple bucket without any path configured it is working as intended. |
We can use this ticket for tracking. I started already working on this. |
Describe the bug
When configuring S3 as a backend storage, vault cannot be unsealed.
To Reproduce
Steps to reproduce the behaviour:
vault operator init
vault operator unseal <Unseal Key 1>
Expected behavior
Be able to unseal vault after init.
Environment:
vault status
):vault version
):Vault server configuration file(s):
Additional context
Vault is able to write into configured S3 bucket since it is adding core and sys directories into it.
/opt/vault$ aws s3 ls ****/test/vault/ --recursive
The text was updated successfully, but these errors were encountered: