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

feat: support splitting certs and private key #1006

Merged
merged 2 commits into from Nov 21, 2022

Conversation

aramase
Copy link
Member

@aramase aramase commented Oct 27, 2022

Signed-off-by: Anish Ramasekar anish.ramasekar@gmail.com

Reason for Change:

  • Supports writing cert and key in separate files in addition to the default behavior of single file (maintains backward compatibility)

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

fixes #933

Does this change contain code from or inspired by another project?

  • Yes
  • No

If "Yes," did you notify that project's maintainers and provide attribution?

Special Notes for Reviewers:

@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2022

Codecov Report

Merging #1006 (d653e7b) into master (543dc72) will increase coverage by 0.17%.
The diff coverage is 31.81%.

@@            Coverage Diff             @@
##           master    #1006      +/-   ##
==========================================
+ Coverage   58.91%   59.08%   +0.17%     
==========================================
  Files          10       10              
  Lines        1066     1095      +29     
==========================================
+ Hits          628      647      +19     
- Misses        403      413      +10     
  Partials       35       35              

@aramase aramase force-pushed the aramase/issue-933 branch 5 times, most recently from 8adeaac to 9a846a9 Compare November 2, 2022 21:18
@aramase aramase marked this pull request as ready for review November 2, 2022 22:08
@aramase aramase requested a review from nilekhc as a code owner November 2, 2022 22:08
Copy link
Member Author

@aramase aramase left a comment

Choose a reason for hiding this comment

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

Ready for initial review, i'll add docs in a separate commit!

@@ -46,6 +45,10 @@ var (

metricsBackend = flag.String("metrics-backend", "Prometheus", "Backend used for metrics")
prometheusPort = flag.Int("prometheus-port", 8898, "Prometheus port for metrics backend")

constructPEMChain = flag.Bool("construct-pem-chain", true, "explicitly reconstruct the pem chain in the order: SERVER, INTERMEDIATE, ROOT")
writeCertAndKeyInSeparateFiles = flag.Bool("write-cert-and-key-in-separate-files", false,
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not a big fan of the long flag name but it's descriptive. I'm open to suggestions on this one.

.pipelines/templates/e2e-test.yaml Show resolved Hide resolved
pkg/provider/provider.go Outdated Show resolved Hide resolved
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
@aramase aramase merged commit 4d061d3 into Azure:master Nov 21, 2022
@aramase aramase deleted the aramase/issue-933 branch November 21, 2022 18:55
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.

Support mounting certificate and private key in separate files
3 participants