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

Auth: create session and validate signatures perform the same checks #2664

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

reinkrul
Copy link
Member

@reinkrul reinkrul commented Dec 8, 2023

Signature verification performed more elaborate checks (employee details non-empty strings) than on session creation, which allows EmployeeID sessions to fail on input that was deemed valid earlier. That causes confusion, so should be the same.

Also, validation failure reason isn't logged or returned. Ideally it's returned to the client, but then we have to alter (extend) the OpenAPI spec. So for now, only log it.

Or should we still return it?

@woutslakhorst
Copy link
Member

Enough for know, on creation it'll give an error. Backport to v5 and create a bugfix release.

Copy link
Member

@woutslakhorst woutslakhorst left a comment

Choose a reason for hiding this comment

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

Test failed?

@reinkrul reinkrul merged commit ac82d9b into master Dec 11, 2023
9 checks passed
@reinkrul reinkrul deleted the auth-selfsigned-validation branch December 11, 2023 10:46
reinkrul added a commit that referenced this pull request Dec 12, 2023
…(backport v5.4) (#2673)

* Auth: create session and validate signatures perform the same checks (#2664)

* release notes v5.4.5

* upgrade to golang 1.21, fix tests

* circle-go-version
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.

2 participants