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

bug: account for etcd leader changes error #5003

Conversation

ricardomaraschini
Copy link
Contributor

@ricardomaraschini ricardomaraschini commented Nov 13, 2024

What this PR does / why we need it:

if we fail to read the secret from etcd we should return an internal server error and not an unauthorized error. this pr also adds a missing log.

Which issue(s) this PR fixes:

shortcut story

Does this PR require a test?

NONE

Does this PR require a release note?

Fixed logged out when joining the second controller node on an Embedded Cluster installation.

Does this PR require documentation?

NONE

@ricardomaraschini ricardomaraschini added type::bug Something isn't working bug::normal labels Nov 13, 2024
@ricardomaraschini ricardomaraschini force-pushed the ricardomaraschini/sc-97671/admin-console-makes-you-log-in-again-after branch 3 times, most recently from 4061607 to d706447 Compare November 13, 2024 15:14
@ricardomaraschini ricardomaraschini marked this pull request as ready for review November 13, 2024 15:17
sgalsaleh
sgalsaleh previously approved these changes Nov 13, 2024
sgalsaleh
sgalsaleh previously approved these changes Nov 15, 2024
if we fail to read the secret from etcd we should return an internal
server error and not an unauthorized error.
@ricardomaraschini ricardomaraschini force-pushed the ricardomaraschini/sc-97671/admin-console-makes-you-log-in-again-after branch from 54ef8ef to c9e8915 Compare November 18, 2024 08:53
we now return a 500 error when we aren't able to load the secret to
validate if the password has changed since the session was created.
@ricardomaraschini ricardomaraschini merged commit 707d5bc into main Nov 20, 2024
122 checks passed
@ricardomaraschini ricardomaraschini deleted the ricardomaraschini/sc-97671/admin-console-makes-you-log-in-again-after branch November 20, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants