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

Fail early when rp.client_secret is missing in OIDC realm #42256

Merged
merged 11 commits into from
May 22, 2019

Conversation

jkakavas
Copy link
Member

client_secret is a required secure setting. Make sure we fail with
a SettingsException and a clear, actionable message when building
the realm, if the setting is missing.

jkakavas added 2 commits May 20, 2019 22:35
client_secret is a required secure setting. Make sure we fail with
a SettingsException and a clear, actionable message when bulding
the realm, if the setting is missing.
@jkakavas jkakavas added >non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) v8.0.0 v7.2.0 labels May 20, 2019
@jkakavas jkakavas requested a review from tvernum May 20, 2019 19:43
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

Copy link
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

@jkakavas
Copy link
Member Author

@elasticmachine run elasticsearch-ci/1 elasticsearch-ci/bwc elasticsearch-ci/default-distro

@jkakavas
Copy link
Member Author

@elasticmachine run elasticsearch-ci/bwc

@jkakavas
Copy link
Member Author

@elasticmachine run elasticsearch-ci/default-distro

@ikakavas-tester1
Copy link

15:36:23 > Could not find downloads.rpm:elasticsearch:7.0.2-x86_64.

@jkakavas
Copy link
Member Author

@elasticmachine run elasticsearch-ci/packaging-sample

@@ -52,8 +53,11 @@ protected Settings nodeSettings(int nodeOrdinal) {
final Path jwkSet = createTempFile("jwkset", "json");
OpenIdConnectTestCase.writeJwkSetToFile(jwkSet);

MockSecureSettings mockSecureSettings =
Copy link
Member Author

Choose a reason for hiding this comment

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

This fails because the truststore password is missing, but I can't figure out why. I'll check again my morning, but @tvernum if you have any ideas - I'm all ears

@jkakavas jkakavas merged commit 8918dd1 into elastic:master May 22, 2019
jkakavas added a commit that referenced this pull request May 22, 2019
rp.client_secret is a required secure setting. Make sure we fail with
a SettingsException and a clear, actionable message when building
the realm, if the setting is missing.
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
)

rp.client_secret is a required secure setting. Make sure we fail with
a SettingsException and a clear, actionable message when building
the realm, if the setting is missing.
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) v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants