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

static-roles error - The first serveral times for using the following commands work perfectly. However, starting from the forth time, the output becomes something does not expected. #7501

Closed
wongkafai opened this issue Sep 23, 2019 · 5 comments
Labels
bug Used to indicate a potential bug

Comments

@wongkafai
Copy link

wongkafai commented Sep 23, 2019

The first serveral times for using the following commands work perfectly. However, starting from the forth time, the output becomes something does not expected.

https://learn.hashicorp.com/vault/secrets-management/db-creds-rotation

[root@VAULTM01 ~]# vault secrets enable database
Success! Enabled the database secrets engine at: database/

[root@VAULTM01 ~]# vault write database/config/postgresql
plugin_name=postgresql-database-plugin
allowed_roles="*"
connection_url=postgresql://{{username}}:{{password}}@172.31.18.141:5432/postgres?sslmode=disable
username="root"
password="rootpassword"

[root@VAULTM01 ~]# vault write database/static-roles/education
db_name=postgresql
rotation_statements="ALTER USER "{{name}}" WITH PASSWORD '{{password}}';"
username="vault-edu"
rotation_period=200
Success! Data written to: database/static-roles/education

[root@VAULTM01 ~]# vault write database/static-roles/education
db_name=postgresql
rotation_statements="ALTER USER "{{name}}" WITH PASSWORD '{{password}}';"
username="vault-edu"
rotation_period=200
Error writing data to database/static-roles/education: Put https://172.31.18.141:8200/v1/database/static-roles/education: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

As there is a bug making the timeout, the password cannot be changed even ttl is 0.

@ncabatoff
Copy link
Collaborator

Hi @wongkafai,

Is there anything in your vault log that might explain the timeout?

@catsby
Copy link
Contributor

catsby commented Sep 23, 2019

Related #7467

@wongkafai
Copy link
Author

vault_audit.log
service
Syslog.txt

@wongkafai
Copy link
Author

No log for timeout

@catsby catsby added the bug Used to indicate a potential bug label Sep 26, 2019
@ncabatoff
Copy link
Collaborator

Fixed in #7518.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug
Projects
None yet
Development

No branches or pull requests

3 participants