-
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
AWS KMS auto-unseal doesn't work when s3 storage and consul ha_storage configured #7085
Comments
You should only have one storage stanza. Consul is the preferred storage backend. |
It's only one Based on the documentation (https://www.vaultproject.io/docs/configuration/#ha_storage) if storage backend does not support HA (which is the case of S3), you can use ha_storage stanza to configure a storage backend where Vault HA coordination will take place. How can I find the author that is actively supporting the S3 backend vault plugin? |
What I meant was you can only have storage or HA storage not both. |
@bartdzkan are you sure? Then what's the difference between storage and ha_storage?
|
You don't have to use HA storage, and Storage will automatically know if its HA storage. You need to pick which one you want to use. Once you do that, your vault should function properly. |
@bartdzkan you're wrong. |
Looks like this issue is related to #7101 so it can be closed. |
@bartdzkan it is definitely possible to have separate HA and data storages like S3 + MySQL(for HA coordination) there are many advantages of separating these backends, so @adriananeci is right. |
Hello @adriananeci, did you have the vault service registered as in consul when using s3 storage and consul ha_storage configured ? |
Describe the bug
When configuring S3 as a storage and consul as a ha_storage in vault config, aws kms seal option is not working properly and vault operator init command returns an error and is not able to initialise vault.
To Reproduce
Steps to reproduce the behavior:
systemctl start vault
vault operator init
Expected behavior
Vault should successfully init and automatically unseal.
Environment:
vault status
vault version
lsb_release -a
Vault server configuration file(s):
cat /opt/vault/config/default.hcl:
Additional context
Based on vault logs it seems that it tries to correctly init vault
Vault is also able to write in the provided s3 bucket since it creates the core and sys folders inside this bucket.
If I remove the S3 storage and consul ha_storage options and configure consul as a storage, vault is able to init and also performs auto-unseal without any errors.
vault status
The text was updated successfully, but these errors were encountered: