Skip to content

feat: adds cert loading and key-match validation.#2173

Merged
Hayden-IO merged 6 commits into
sigstore:mainfrom
ianhundere:feat/issues-new-leaf-from-existing-intermediate/root-certs
Oct 15, 2025
Merged

feat: adds cert loading and key-match validation.#2173
Hayden-IO merged 6 commits into
sigstore:mainfrom
ianhundere:feat/issues-new-leaf-from-existing-intermediate/root-certs

Conversation

@ianhundere

@ianhundere ianhundere commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

closes #2070

summary

adds support for reusing existing root/intermediate certs when issuing new leaf certs with the certmaker tool.
includes cli flags (--existing-root-cert, --existing-intermediate-cert), validation, and updated docs.
all kms providers supported (aws, gcp, azure, vault).

release note

  • certmaker: support issuing new leaf certs from existing root/intermediate certs.
    • adds --existing-root-cert and --existing-intermediate-cert flags.

documentation

docs updated under docs/certificate-maker.md with new examples, decision tree, and troubleshooting notes.

@ianhundere ianhundere force-pushed the feat/issues-new-leaf-from-existing-intermediate/root-certs branch from b784a1a to f2ae54e Compare October 11, 2025 18:10
@codecov

codecov Bot commented Oct 11, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.86802% with 83 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.16%. Comparing base (cf238ac) to head (de2a8aa).
⚠️ Report is 474 commits behind head on main.

Files with missing lines Patch % Lines
pkg/certmaker/certmaker.go 45.08% 52 Missing and 15 partials ⚠️
cmd/certificate_maker/certificate_maker.go 62.50% 10 Missing and 2 partials ⚠️
pkg/certmaker/cert_loader.go 90.69% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2173       +/-   ##
===========================================
- Coverage   57.93%   44.16%   -13.78%     
===========================================
  Files          50       72       +22     
  Lines        3119     5788     +2669     
===========================================
+ Hits         1807     2556      +749     
- Misses       1154     2998     +1844     
- Partials      158      234       +76     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ianhundere ianhundere force-pushed the feat/issues-new-leaf-from-existing-intermediate/root-certs branch from a5fb906 to 3831204 Compare October 11, 2025 19:46
@ianhundere ianhundere marked this pull request as ready for review October 11, 2025 19:55
@ianhundere ianhundere requested a review from a team as a code owner October 11, 2025 19:55
@ianhundere ianhundere force-pushed the feat/issues-new-leaf-from-existing-intermediate/root-certs branch 3 times, most recently from e2f6d27 to 1994b56 Compare October 11, 2025 19:59

@Hayden-IO Hayden-IO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread cmd/certificate_maker/certificate_maker.go
Comment thread pkg/certmaker/cert_loader.go
Comment thread pkg/certmaker/cert_loader.go Outdated
Comment thread pkg/certmaker/certmaker.go Outdated
@ianhundere

Copy link
Copy Markdown
Contributor Author

@haydentherapper cheers / thanks for the quick fb, ready for another 👀. thanks again / 🙇

@ianhundere ianhundere force-pushed the feat/issues-new-leaf-from-existing-intermediate/root-certs branch from 152fd4e to c6e8b4c Compare October 14, 2025 16:29
Hayden-IO
Hayden-IO previously approved these changes Oct 14, 2025

@Hayden-IO Hayden-IO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread pkg/certmaker/cert_loader.go Outdated
Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
…s tests, and docs.

Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
…/aws creds).

Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
… flags, refactored certificate loading to use cryptoutils and kept test error semantics in pkg/certmaker/cert_loader.go, and updatd interface{} to any.

Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
@ianhundere ianhundere force-pushed the feat/issues-new-leaf-from-existing-intermediate/root-certs branch from 13187c7 to de2a8aa Compare October 15, 2025 03:06
@Hayden-IO Hayden-IO merged commit 103bfb9 into sigstore:main Oct 15, 2025
13 checks passed
@ianhundere ianhundere deleted the feat/issues-new-leaf-from-existing-intermediate/root-certs branch October 15, 2025 16:08
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.

Using certmaker to issue a new leaf cert from existing intermediate/root certs?

2 participants