-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Adding API for generating SAML SP metadata #64517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments and suggestions
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlSPMetadataRequest.java
Outdated
Show resolved
Hide resolved
.../security/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlMetadataCommand.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSPMetadataAction.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
...re/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlSpMetadataRequest.java
Outdated
Show resolved
Hide resolved
...y/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlEntityDescriptorBuilder.java
Outdated
Show resolved
Hide resolved
...y/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlEntityDescriptorBuilder.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlSpMetadataRequest.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment on the builder was too vague, I should have mentioned that we can use the SamlSpMetadataBuilder
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @BigPandaToo , just a few final comments, thanks for the iterations!
...ecurity/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlSpMetadataBuilder.java
Outdated
Show resolved
Hide resolved
...ecurity/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlSpMetadataBuilder.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/rest/action/saml/RestSamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
.../security/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlMetadataCommand.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/org/elasticsearch/xpack/core/security/action/saml/SamlSpMetadataAction.java
Show resolved
Hide resolved
@elasticmachine update branch |
@elasticmachine update branch |
expected head sha didn’t match current head ref. |
Just submitted the change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, feel free to merge after addressing those! Thanks @BigPandaToo
...rc/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlSpMetadataAction.java
Outdated
Show resolved
Hide resolved
...ecurity/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlSpMetadataBuilder.java
Outdated
Show resolved
Hide resolved
...ecurity/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlSpMetadataBuilder.java
Outdated
Show resolved
Hide resolved
* Adding API for generating SAML SP metadata Resolve elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 * Adding API for generating SAML SP metadata Resolves elastic#49018 Co-authored-by: Elastic Machine <[email protected]>
* Adding API for generating SAML SP metadata Resolve #49018 * Adding API for generating SAML SP metadata Resolves #49018 * Adding API for generating SAML SP metadata Resolves #49018 * Adding API for generating SAML SP metadata Resolves #49018 * Adding API for generating SAML SP metadata Resolves #49018 * Adding API for generating SAML SP metadata Resolves #49018 * Adding API for generating SAML SP metadata Resolves #49018 Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
…aml/metadata/{realm} Related to elastic#49018
…aml/metadata/{realm} Related to elastic#49018
…aml/metadata/{realm} Related to elastic#49018
…aml/metadata/{realm} Related to elastic#49018
…aml/metadata/{realm} Related to elastic#49018
Pinging @elastic/es-security (Team:Security) |
…aml/metadata/{realm} Related to elastic#49018
…adata/{realm} (#65065) * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * [DOCS] Adds API to navigation tree * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 Co-authored-by: lcawl <[email protected]>
…aml/metadata/{realm} (elastic#65065) * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves elastic#53161 * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * [DOCS] Adds API to navigation tree * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 Co-authored-by: lcawl <[email protected]>
…adata/{realm} (#65065) (#65158) * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} (#65065) * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * [DOCS] Adds API to navigation tree * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 Co-authored-by: lcawl <[email protected]> * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 Co-authored-by: lcawl [email protected] #65065 #backport * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 Co-authored-by: lcawl [email protected] #65065 #backport * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 Co-authored-by: lcawl [email protected] #65065 #backport Co-authored-by: lcawl <[email protected]>
…aml/metadata/{realm} Related to elastic#49018
* This change adds a warning header when a license is about to expire Resolves #60562 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding a warning header when a license is about to expire Resolves #60562 * Addressing the PR feedback * Switching back to adding the header during featureCheck to allow warnings when authentication is disabled as well. Adding filterHeader implementation to SecurityRestFilter exception handling to remove all the warnings if authentication fails. * Changing the wording for "expired" message to be consistent with the log messages; changing "today" calculation; adding a test case for failing authN to make sure we remove the warning header * Small changes in the way we verify header in tests * Nit changes Co-authored-by: Elastic Machine <[email protected]>
) * This change adds a warning header when a license is about to expire Resolves elastic#60562 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves elastic#53161 * Adding doc for the new API introduced by elastic#64517 - /_security/saml/metadata/{realm} Related to elastic#49018 * Adding a warning header when a license is about to expire Resolves elastic#60562 * Addressing the PR feedback * Switching back to adding the header during featureCheck to allow warnings when authentication is disabled as well. Adding filterHeader implementation to SecurityRestFilter exception handling to remove all the warnings if authentication fails. * Changing the wording for "expired" message to be consistent with the log messages; changing "today" calculation; adding a test case for failing authN to make sure we remove the warning header * Small changes in the way we verify header in tests * Nit changes Co-authored-by: Elastic Machine <[email protected]>
) * Adding a warning header when a license is about to expire (#64948) * This change adds a warning header when a license is about to expire Resolves #60562 * This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs Resolves #53161 * Adding doc for the new API introduced by #64517 - /_security/saml/metadata/{realm} Related to #49018 * Adding a warning header when a license is about to expire Resolves #60562 * Addressing the PR feedback * Switching back to adding the header during featureCheck to allow warnings when authentication is disabled as well. Adding filterHeader implementation to SecurityRestFilter exception handling to remove all the warnings if authentication fails. * Changing the wording for "expired" message to be consistent with the log messages; changing "today" calculation; adding a test case for failing authN to make sure we remove the warning header * Small changes in the way we verify header in tests * Nit changes Co-authored-by: Elastic Machine <[email protected]> * Resolving backporting issue: adding copyMapWithRemovedEntry() util function Fixing unused imports Co-authored-by: Elastic Machine <[email protected]>
Adding API for generating SAML SP metadata
Resolves #49018