Skip to content

fix(certs): switch key generation from P256 to P384 - #9630

Open
gaurangkudale wants to merge 6 commits into
cloudnative-pg:mainfrom
gaurangkudale:bug/switch-to-p384
Open

gaurangkudale wants to merge 6 commits into
cloudnative-pg:mainfrom
gaurangkudale:bug/switch-to-p384

Conversation

@gaurangkudale

Copy link
Copy Markdown
Contributor

Fix #6597

@gaurangkudale
gaurangkudale requested review from a team and Copilot January 6, 2026 02:01
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 6, 2026
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.28 labels Jan 6, 2026
@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot Bot added bug 🐛 Something isn't working ok to merge 👌 This PR can be merged labels Jan 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the elliptic curve used for certificate key generation from P-256 to P-384 to address issue #6597. The change strengthens the cryptographic security of both leaf certificates and certificate authority (CA) certificates.

  • Updates ECDSA key generation from elliptic.P256() to elliptic.P384() in both key generation functions
  • Affects both leaf certificate key generation and root CA key generation

Comment thread pkg/certs/certs.go Resolved
Comment thread pkg/certs/certs.go Resolved
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 6, 2026
@gaurangkudale
gaurangkudale requested a review from Copilot January 6, 2026 02:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread pkg/certs/certs_test.go Resolved
Comment thread pkg/certs/certs_test.go Resolved
@gaurangkudale
gaurangkudale force-pushed the bug/switch-to-p384 branch 2 times, most recently from aa06cf3 to 92c8877 Compare January 13, 2026 06:30
@gaurangkudale
gaurangkudale force-pushed the bug/switch-to-p384 branch 2 times, most recently from 4799701 to 725e17a Compare January 20, 2026 00:32
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 28, 2026
Gaurang Kudale and others added 4 commits March 2, 2026 14:19
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 2, 2026
@gaurangkudale
gaurangkudale requested a review from a team as a code owner November 2, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases bug 🐛 Something isn't working ok to merge 👌 This PR can be merged release-1.28 release-1.30 size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Switching to P384() when generating the keys

4 participants