Skip to content

Fix bug of missing some OIDC config #669

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

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

zengyan-amazon
Copy link
Member

Issue #, if available: #569

Description of changes: Fix the bug where OIDC connection config was not used. Now users can configure the root CA and whether to verify hostnames when connecting to OIDC server

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

if (this.config.openid?.root_ca) {
wreckHttpsOption.ca = [fs.readFileSync(this.config.openid.root_ca)];
}
if (this.config.openid?.verify_hostnames === false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to handle if this.config.openid?.verify_hostnames is undefined?

Copy link
Member Author

Choose a reason for hiding this comment

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

not necessary, because this.config.openid will definitely be an object because this is OpenID auth, and verify_hostnames has default value of true

@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #669 (996cc33) into main (e760893) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #669   +/-   ##
=======================================
  Coverage   74.59%   74.59%           
=======================================
  Files          85       85           
  Lines        1842     1842           
  Branches      237      237           
=======================================
  Hits         1374     1374           
  Misses        413      413           
  Partials       55       55           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e760893...996cc33. Read the comment docs.

@zengyan-amazon zengyan-amazon merged commit 53c9823 into opensearch-project:main Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants