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

Fail earlier if user is not allowed to log in #338

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

adombeck
Copy link
Contributor

@adombeck adombeck commented Jan 24, 2025

This is based on #334, please review and merge that one first

We want the user to perform the OIDC authentication for auditing and logging purposes, but we don't need them to choose a local password before we tell them that they are not allowed to log in.

UDENG-5868

@adombeck adombeck requested a review from a team as a code owner January 24, 2025 16:56
@adombeck adombeck marked this pull request as draft January 24, 2025 16:57
@3v1n0
Copy link
Collaborator

3v1n0 commented Jan 24, 2025

IIRC we didn't want to inform at all whether an user was available or not (so not sure we should log), but this still happens after the first stage (device auth), right?

@adombeck adombeck marked this pull request as ready for review January 24, 2025 22:49
@adombeck
Copy link
Contributor Author

this still happens after the first stage (device auth), right?

Yes, it's after the device authentication

@adombeck adombeck marked this pull request as draft January 24, 2025 22:49
@adombeck
Copy link
Contributor Author

Converting to draft again because some tests need to be updated

@adombeck adombeck force-pushed the UDENG-5868-fail-earlier-if-user-is-not-allowed branch 2 times, most recently from e11e0a3 to bdb22e4 Compare January 27, 2025 21:50
@adombeck adombeck marked this pull request as ready for review January 28, 2025 00:03
@adombeck adombeck requested review from 3v1n0 and didrocks January 28, 2025 00:03
@adombeck adombeck force-pushed the UDENG-5868-fail-earlier-if-user-is-not-allowed branch from bdb22e4 to f4d931b Compare January 28, 2025 14:49
@adombeck
Copy link
Contributor Author

Rebased on main and resolved conflicts

Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change, one praise and one question :)

internal/broker/broker_test.go Show resolved Hide resolved
internal/broker/config.go Show resolved Hide resolved
internal/broker/broker.go Outdated Show resolved Hide resolved
We want the user to perform the OIDC authentication for auditing and
logging purposes, but we don't need them to choose a local password
before we tell them that they are not allowed to log in.
@adombeck adombeck force-pushed the UDENG-5868-fail-earlier-if-user-is-not-allowed branch from f4d931b to 8a8e564 Compare January 28, 2025 14:59
@adombeck adombeck requested a review from didrocks January 28, 2025 15:00
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here we go! Well done :)

@adombeck adombeck merged commit 97b311c into main Jan 28, 2025
3 of 4 checks passed
@adombeck adombeck deleted the UDENG-5868-fail-earlier-if-user-is-not-allowed branch January 28, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants