Skip to content

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

Description

@sxd

Is there an existing issue already for this bug?

  • I have searched for an existing issue, and could not find anything. I believe this is a new bug.

I have read the troubleshooting guide

  • I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

  • I have read the troubleshooting guide and I think this is a new bug.

Contact Details

No response

Version

1.25 (latest patch)

What version of Kubernetes are you using?

1.32

What is your Kubernetes environment?

Self-managed: kind (evaluation)

How did you install the operator?

YAML manifest

What happened?

Currently in the https://github.com/cloudnative-pg/cloudnative-pg/blob/main/pkg/certs/certs.go#L437 we use elliptic.P256() to generate a key, we should change that function and use elliptic.P384() for the keys to be closter to FIPS 140-3

Cluster resource

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    enhancement 🪄
    on Jan 14, 2025
  2. added this to the 1.25.1 milestone on Jan 14, 2025
  3. added a commit that references this issue on Jan 19, 2025
    20b0c79
  4. assigned and unassigned on Feb 12, 2025
  5. modified the milestones: 1.25.1, 1.26.0 on Feb 16, 2025
  6. modified the milestones: 1.26.0, Next on Mar 11, 2025
  7. github-actions commented on Jun 7, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  8. github-actions commented on Jul 7, 2025

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 14 days since being marked as stale.

  9. added a commit that references this issue on Jul 17, 2025
    796b63e
  10. reopened this on Oct 27, 2025
  11. dosubot commented on Jan 26, 2026

    @dosubot

    Hi, @sxd. I'm Dosu, and I'm helping the cloudnative-pg team manage their backlog and am marking this issue as stale.

    Issue Summary:

    • You reported that the key generation in certs.go should use elliptic.P384() instead of elliptic.P256() to meet FIPS 140-3 standards.
    • Your report was based on testing with version 1.25 on Kubernetes 1.32.
    • The issue has had no activity or comments from maintainers or other users for over 60 days.
    • It was automatically closed by GitHub actions due to inactivity.
    • The issue remains unresolved.

    Next Steps:

    • Please let me know if this issue is still relevant with the latest version of cloudnative-pg by commenting here.
    • If I do not hear back within 7 days, the issue will remain closed but can be reopened if needed.

    Thank you for your understanding and contribution!

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

Metadata

Metadata

Assignees

Labels

Staleenhancement 🪄no-stale

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions