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

refactor ssl handling in preparation of OCSP stapling #5122

Merged
merged 2 commits into from
Feb 19, 2020
Merged

refactor ssl handling in preparation of OCSP stapling #5122

merged 2 commits into from
Feb 19, 2020

Conversation

ElvinEfendi
Copy link
Member

@ElvinEfendi ElvinEfendi commented Feb 19, 2020

What this PR does / why we need it:

  • expose DER encoded version of certificate in certificate.call
  • expose uid of certificate in certificate.call

In order to extract OCSP responder URL and generate OCSP request DER encoded version of a certificate is needed: https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ocsp.md.

UID will be used to check whether OCSP stapling should be done for the given certificate.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Which issue/s this PR fixes

How Has This Been Tested?

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 19, 2020
@codecov-io
Copy link

codecov-io commented Feb 19, 2020

Codecov Report

Merging #5122 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5122      +/-   ##
==========================================
- Coverage   58.68%   58.65%   -0.03%     
==========================================
  Files          88       88              
  Lines        6850     6850              
==========================================
- Hits         4020     4018       -2     
- Misses       2390     2391       +1     
- Partials      440      441       +1
Impacted Files Coverage Δ
internal/ingress/metric/collectors/process.go 88.54% <0%> (-2.09%) ⬇️

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 5c9a5ee...ad78425. Read the comment docs.

@ElvinEfendi ElvinEfendi changed the title [WIP] refactor ssl handling in preparation of OCSP stapling refactor ssl handling in preparation of OCSP stapling Feb 19, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 19, 2020
@ElvinEfendi
Copy link
Member Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 19, 2020
@ElvinEfendi
Copy link
Member Author

/test pull-ingress-nginx-e2e-1-17

@ElvinEfendi
Copy link
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 19, 2020
@aledbf
Copy link
Member

aledbf commented Feb 19, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 19, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, ElvinEfendi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@aledbf
Copy link
Member

aledbf commented Feb 19, 2020

/retest

1 similar comment
@aledbf
Copy link
Member

aledbf commented Feb 19, 2020

/retest

@k8s-ci-robot k8s-ci-robot merged commit 9cf4154 into kubernetes:master Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants