Skip to content

Update opensaml dependency#44972

Merged
jkakavas merged 8 commits intoelastic:masterfrom
jkakavas:update-shibboleth
Nov 23, 2019
Merged

Update opensaml dependency#44972
jkakavas merged 8 commits intoelastic:masterfrom
jkakavas:update-shibboleth

Conversation

@jkakavas
Copy link
Copy Markdown
Contributor

@jkakavas jkakavas commented Jul 29, 2019

Add the maven repository of the shibboleth project in a couple of
places ( x-pack:plugin and x-pack:qa subprojects ) so that we can
upgrade opensaml and related dependencies to the latest version

Resolves: #44947

Add the maven repository of the shibboleth project in a couple of
places ( x-pack:plugin and x-pack:qa subprojects ) so that we can
upgrade opensaml and related dependencies to the latest version

Relates: elastic#44947
@jkakavas jkakavas added >non-issue :Delivery/Build Build or test infrastructure :Security/Security Security issues without another label labels Jul 29, 2019
@jkakavas jkakavas requested review from mark-vieira and tvernum July 29, 2019 16:15
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-security

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

A couple comments

Copy link
Copy Markdown
Contributor

@tvernum tvernum left a comment

Choose a reason for hiding this comment

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

LGTM, excepting the test failures


subprojects {

// We define a specific reposiroty for opensaml since the shibboleth project doesn't publish to maven central and the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// We define a specific reposiroty for opensaml since the shibboleth project doesn't publish to maven central and the
// We define a specific repository for opensaml since the shibboleth project doesn't publish to maven central and the

@jkakavas
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/2

// see https://github.com/apache/santuario-java/blob/e79f1fe4192de73a975bc7246aee58ed0703343d/src/main/java/org/apache/xml/security/utils/JavaUtils.java#L205-L220
// and https://git.shibboleth.net/view/?p=java-opensaml.git;a=blob;f=opensaml-xmlsec-impl/src/main/java/org/opensaml/xmlsec/signature/impl/SignatureMarshaller.java;hb=db0eaa64210f0e32d359cd6c57bedd57902bf811#l52
// which uses it in the opensaml-xmlsec-impl
permission java.security.SecurityPermission "org.apache.xml.security.register";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change removed the doPrivileged() in xmlsec, which in turn means that every class in the whole execution thread needs the java.security.SecurityPermission "org.apache.xml.security.register"; permission for registering the xml security algorithms. :(

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@jkakavas
Copy link
Copy Markdown
Contributor Author

@elasticmachine test this please

@jkakavas jkakavas merged commit df760fe into elastic:master Nov 23, 2019
jkakavas added a commit to jkakavas/elasticsearch that referenced this pull request Nov 23, 2019
Add a mirror of the maven repository of the shibboleth project
and upgrade opensaml and related dependencies to the latest
version available version

Resolves: elastic#44947
jkakavas added a commit that referenced this pull request Nov 28, 2019
Add a mirror of the maven repository of the shibboleth project
and upgrade opensaml and related dependencies to the latest
version available version

Resolves: #44947
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >non-issue :Security/Security Security issues without another label Team:Delivery Meta label for Delivery team v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update opensaml related dependencies

6 participants