Skip to content

[SAML] Filter potential signing keys by algorithm#98119

Merged
tvernum merged 1 commit intoelastic:mainfrom
tvernum:fix/saml/signing-key-type-filter
Aug 4, 2023
Merged

[SAML] Filter potential signing keys by algorithm#98119
tvernum merged 1 commit intoelastic:mainfrom
tvernum:fix/saml/signing-key-type-filter

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Aug 2, 2023

When performing signature verification, skip any keys that have a non-matching algorithm.

This is needed in order to upgrade to newer versions of OpenSAML (e.g. 4.3) because of changes in how the underlying (saml) Signature object stores state between verification attempts - in newer version attempting to verify with an incompatible key will put the signature into a state that it cannot recover from and all future verification attempts will fail.

When performing signature verification, skip any keys that have a
non-matching algorithm.

This is needed in order to upgrade to newer versions of OpenSAML (e.g.
4.3) because of changes in how the underlying (saml) Signature object
stores state between verification attempts - in newer version
attempting to verify with an incompatible key will put the signature
into a state that it cannot recover from and all future verification
attempts will fail.
@tvernum tvernum added >non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) labels Aug 2, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine elasticsearchmachine added v8.10.0 Team:Security Meta label for security team labels Aug 2, 2023
Copy link
Copy Markdown
Contributor

@albertzaharovits albertzaharovits left a comment

Choose a reason for hiding this comment

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

LGTM kudos for toubleshooting!

@albertzaharovits
Copy link
Copy Markdown
Contributor

@elasticsearchmachine run elasticsearch-ci/part-1

@albertzaharovits
Copy link
Copy Markdown
Contributor

Failure https://gradle-enterprise.elastic.co/s/2km5aa2ea324i is tracked under #98053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team v8.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants