Skip to content

Conversation

@tvernum
Copy link
Contributor

@tvernum tvernum commented Feb 29, 2020

This change adds a SamlServiceProviderResolver that can build a
SamlServiceProvider object for a given entity-id, based on the
document model stored in SamlServiceProviderDocument.

This resolver includes a cache that is aware of document versioning
(seqNo, primaryTerm) and avoids JSON parsing and object construction
if the document has not changed since last use.

This change adds a `SamlServiceProviderResolver` that can build a
`SamlServiceProvider` object for a given entity-id, based on the
document model stored in `SamlServiceProviderDocument`.

This resolver includes a cache that is aware of document versioning
(seqNo, primaryTerm) and avoids JSON parsing and object construction
if the document has not changed since last use.
@tvernum tvernum added the :Security/Security Security issues without another label label Feb 29, 2020
@tvernum tvernum requested a review from jkakavas February 29, 2020 23:05
@elasticmachine
Copy link
Collaborator

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

# Conflicts:
#	x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/saml/authn/SamlAuthnRequestValidator.java
#	x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/saml/idp/CloudIdp.java
#	x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/saml/idp/SamlIdentityProvider.java
#	x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/saml/sp/CloudServiceProvider.java
#	x-pack/plugin/identity-provider/src/main/java/org/elasticsearch/xpack/idp/saml/sp/SamlServiceProvider.java
#	x-pack/plugin/identity-provider/src/test/java/org/elasticsearch/xpack/idp/saml/authn/SamlAuthnRequestValidatorTests.java
Copy link
Contributor

@jkakavas jkakavas left a comment

Choose a reason for hiding this comment

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

LGTM with the proposed change for validateSignature method signature

@jkakavas jkakavas self-requested a review March 4, 2020 10:48
@tvernum tvernum merged commit 2f28537 into elastic:feature-internal-idp Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Security/Security Security issues without another label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants