Skip to content

PG Certificates - configurable values for threshold \ certificateDuration #1691

Closed

Description

@edgarkz

Hello,
Currently those are hardcoded values for certificate renewal threshold and also certificate duration.
Can you please make those value adjustable via helm chart?

expiringCheckThreshold:
https://github.com/cloudnative-pg/cloudnative-pg/blob/main/pkg/certs/certs.go#L49
certs.go
expiringCheckThreshold = 7 * 24 * time.Hour

certificateDuration:
https://github.com/cloudnative-pg/cloudnative-pg/blob/main/pkg/certs/certs.go#L40
certs.go
certificateDuration = 90 * 24 * time.Hour

Issuer: OU=postgresql, CN=archive Validity Not Before: Jan 25 12:40:34 2023 GMT Not After : Apr 25 12:40:34 2023 GMT Subject: OU=postgresql, CN=archive

Activity

  1. gbartolini commented on Mar 14, 2023

    @gbartolini
    Contributor

    Any volunteers in the community to try and tackle this and submit a pull request?

  2. added
    help wanted 🆘
    on Mar 17, 2023
  3. Otterpohl commented on Mar 19, 2023

    @Otterpohl
    Contributor

    I will take a look at this over the next couple of weeks!

  4. added a commit that references this issue on Mar 14, 2024
    7963ee6
  5. added 2 commits that reference this issue on Mar 14, 2024
    f2784a3
    52c2cb9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted 🆘

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions