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

Caching Connections #17

Closed
jacobpinney-ds opened this issue Jun 13, 2024 · 5 comments · Fixed by #19
Closed

Caching Connections #17

jacobpinney-ds opened this issue Jun 13, 2024 · 5 comments · Fixed by #19
Labels
bug Something isn't working

Comments

@jacobpinney-ds
Copy link

jacobpinney-ds commented Jun 13, 2024

Error:
When invalidating/re-connecting to an old connection, new credentials will not be fetched. This results in a failed login attempt.

FATAL: password authentication failed for user "[redacted]"

Steps to reproduce:

  • Use Vault Plugin in DBeaver and open a connection
  • Wait until the credential expire for said connection
  • Get a new vault token
  • Invalidate the connection and try to re-connect
  • Error appears

Workaround:

  • Restart DBeaver

Machine Details:

  • Windows 10
  • DBeaver v24.1.0
  • Vault Plugin v1.0.0.202301041433
@froque
Copy link
Member

froque commented Jun 14, 2024

Could not reproduce it. Can you try again or share extra information ?

@jacobpinney-ds
Copy link
Author

Another piece of information that may play into this issue is the Token file. Usually when the credentials expire, so has the token file. So, there is a 3rd step of updating the token file with a new value.

I have also noticed that DBeaver 24.1.0 is caching some items around connections. For example, I usually have to MFA for SSH but when I am connection and "Test tunnel configuration", it doesn't prompt me additionally. Is it possible DBeaver 24.1.0 introduced logic to cache items that cause this issue with the Vault Plugin?

@jacobpinney-ds
Copy link
Author

Each time the password authentication fails, the user given remains the same. It's like it doesn't know that the user/pass failed and it tries with the same credentials. It all seems like some sort of cache issue, especially since restarting dbeaver clears the issue.

@froque
Copy link
Member

froque commented Jun 16, 2024

Thanks for the report. I was able to reproduce it. The caching was intentional (#12). #19 should fix the problem.

@jacobpinney-ds
Copy link
Author

I am no longer experiencing this error - thanks for fixing it so quick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants