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

Improve messages for assertions in API Key Service #109229

Merged

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented May 31, 2024

The API Key Service has a lot of assertions, but many of them did not have useful messages. If they were tripped it was very difficult to determine exactly what conditions failed.

This commit makes sure each assertion has a reasonable message.

The API Key Service has a lot of assertions, but many of them did not
have useful messages. If they were tripped it was very difficult to
determine exactly what conditions failed.

This commit makes sure each assertion has a reasonable message.
@tvernum tvernum added >non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) labels May 31, 2024
@tvernum tvernum requested a review from n1v0lg May 31, 2024 00:47
@elasticsearchmachine elasticsearchmachine added v8.15.0 Team:Security Meta label for security team labels May 31, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

Copy link
Contributor

@n1v0lg n1v0lg left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Tim! Two optional comments.

@tvernum
Copy link
Contributor Author

tvernum commented Jun 4, 2024

@elasticmachine update branch

@tvernum tvernum added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 4, 2024
@tvernum
Copy link
Contributor Author

tvernum commented Jun 4, 2024

@elasticmachine update branch

@tvernum
Copy link
Contributor Author

tvernum commented Jun 13, 2024

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 0fd9505 into elastic:main Jun 13, 2024
20 checks passed
@tvernum tvernum deleted the api-key-service-better-assert branch June 13, 2024 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants