Skip to content

Set testdata / example CA expiry to 20 years from issue date - #4112

Merged
SuperQ merged 1 commit into
prometheus:mainfrom
dswarbrick:extend-certs
Dec 21, 2025
Merged

SuperQ merged 1 commit into
prometheus:mainfrom
dswarbrick:extend-certs

Conversation

@dswarbrick

Copy link
Copy Markdown
Contributor

Also add human-readable x509 text format (as requested by @SuperQ in related PR prometheus/prometheus#14696)

Fixes: #3962

@dswarbrick

Copy link
Copy Markdown
Contributor Author

Incidentally, the expiry dates of the certs (both CA and server/client) seem to be a bit wild and inconsistent. The original CA had a lifetime of only 5 years, whilst the node{1,2}.pem certs had a 100 year lifetime (!). Usually the CA lifetime would be longer than host/node certs (although 100 years is a bit excessive).

It might be worth regenerating all the test / example certs with more sane lifetimes - and possibly consider bumping the key length to 4096 bits.

@dswarbrick
dswarbrick requested a review from SuperQ August 14, 2025 20:26
@TheMeier

Copy link
Copy Markdown
Contributor

@dswarbrick Thank you for the contribution could you rebase that?

Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
@SuperQ
SuperQ merged commit 129dc75 into prometheus:main Dec 21, 2025
@dswarbrick
dswarbrick deleted the extend-certs branch December 21, 2025 13:57
@SoloJacobs SoloJacobs mentioned this pull request Jan 29, 2026
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Jul 31, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Jul 31, 2026
OCPBUGS-100352: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 3, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 3, 2026
…45-to-release-4.20

[release-4.20] OCPBUGS-100353: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 4, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 4, 2026
…45-to-release-4.19

[release-4.19] OCPBUGS-100354: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 6, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 6, 2026
…45-to-release-4.18

[release-4.18] OCPBUGS-100355: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 7, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 7, 2026
…45-to-release-4.17

[release-4.17] OCPBUGS-100356: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 10, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 10, 2026
…45-to-release-4.16

[release-4.16] OCPBUGS-100357: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 11, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 11, 2026
…45-to-release-4.15

[release-4.15] OCPBUGS-100359: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 13, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Aug 13, 2026
…45-to-release-4.14

[release-4.14] OCPBUGS-100361: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Sep 2, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Sep 2, 2026
…45-to-release-4.13

[release-4.13] OCPBUGS-100363: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
openshift-merge-bot Bot pushed a commit to openshift/prometheus-alertmanager that referenced this pull request Sep 8, 2026
Also add human-readable x509 text format.

Signed-off-by: Daniel Swarbrick <[email protected]>
openshift-merge-bot Bot added a commit to openshift/prometheus-alertmanager that referenced this pull request Sep 8, 2026
…45-to-release-4.12

[release-4.12] OCPBUGS-100365: Set testdata CA expiry to 20 years from issue date (prometheus#4112)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test certificates expiring in <2y

3 participants