Skip to content

[kube-prometheus-stack] Set a default commonName for prometheus cert-… - #7234

Merged
jkroepke merged 1 commit into
prometheus-community:mainfrom
maarous:main
Sep 4, 2026
Merged

[kube-prometheus-stack] Set a default commonName for prometheus cert-…#7234
jkroepke merged 1 commit into
prometheus-community:mainfrom
maarous:main

Conversation

@maarous

@maarous maarous commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Set a default commonName in the Prometheus Operator cert-manager Certificate, equal to the Prometheus Operator service name.

Motivation

Some PKI certificate issuers require the commonName field to be set explicitly. Without it, the certificate request fails during signing.

For example, when using a Vault-backed issuer, the certificate request fails with the following error:

Warning Failed 44s cert-manager-certificates-issuing The certificate request has failed to complete and will be retried: Vault failed to sign certificate: failed to sign certificate by vault: Error making API request.
Code: 400. Errors:

  • the common_name field is required, or must be provided in a CSR with "use_csr_common_name" set to true, unless "require_cn" is set to false

Setting the commonName to the Prometheus Operator service name ensures the certificate request satisfies these issuers and completes successfully.

…manager certificate

Signed-off-by: Mohamed Amine AROUS <mohamed.amine.arous93@gmail.com>

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jkroepke
jkroepke enabled auto-merge (squash) September 4, 2026 14:50
@jkroepke
jkroepke merged commit cfc23a4 into prometheus-community:main Sep 4, 2026
13 checks passed
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.

2 participants