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

New ca_cert parameter in FetchJwksUriSigningKey class #2457

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

sashaCher
Copy link
Contributor

Desired Outcome

Allow FetchJwksUriSigningKey class fetch JWKS data from endpoints are providing self-signed certificate or certificate signed by 3rd party CA.

Implemented Changes

Add new ca_cert parameter to FetchJwksUriSigningKey class

Connected Issue/Story

ONYX-15871

Definition of Done

  • Desired outcome is achieved

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: insert issue ID
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

@sashaCher sashaCher requested a review from a team January 5, 2022 20:31
@sashaCher sashaCher requested a review from a team as a code owner January 5, 2022 20:31
@sashaCher sashaCher force-pushed the authn-jwt-jwks-provider-ca-cert branch from 8b5a75b to 4c33c48 Compare January 5, 2022 20:44
tzheleznyak
tzheleznyak previously approved these changes Jan 6, 2022
Copy link
Contributor

@tzheleznyak tzheleznyak left a comment

Choose a reason for hiding this comment

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

LGTM

Expected parameter type is OpenSSL::X509::Store
The parameter will allow to invoke http requests to endpoints providing self-signed certificate or certificate signed by 3rd party CA
Copy link
Contributor

@tzheleznyak tzheleznyak left a comment

Choose a reason for hiding this comment

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

LGTM

jwks_keys
end

def jwks_keys
Copy link

Choose a reason for hiding this comment

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

Complex method Authentication::AuthnJwt::SigningKey::FetchJwksUriSigningKey#jwks_keys (25.4)

)
end

def net_http_start(host, port, use_ssl, &block)
Copy link

Choose a reason for hiding this comment

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

Authentication::AuthnJwt::SigningKey::FetchJwksUriSigningKey takes parameters ['host', 'port', 'use_ssl'] to 3 methods

@codeclimate
Copy link

codeclimate bot commented Jan 6, 2022

Code Climate has analyzed commit b7b1757 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 91.0% (0.0% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants