Skip to content

Commit 32c1075

Browse files
committed
MK8S-139 : Extend the authentication section to PrometheusConfig and AlertManagerConfig
1 parent 8e8b22f commit 32c1075

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

salt/metalk8s/addons/prometheus-operator/config/alertmanager.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ spec:
1313
# Configure the Alertmanager Deployment
1414
deployment:
1515
replicas: 1
16+
config:
17+
enable_oidc_authentication: false
18+
oidc:
19+
issuer: "" # OIDC provider URL
20+
audience: "" # Expected audience claim in the token
21+
groupsClaim: "" # JWT claim name that carries user groups/roles
22+
authorizedGroups: [] # Groups/roles allowed to access Alertmanager
1623
notification:
1724
config:
1825
global:

salt/metalk8s/addons/prometheus-operator/config/prometheus.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ spec:
1111
retention_time: "10d"
1212
retention_size: "0" # "0" to disable size-based retention
1313
enable_admin_api: false
14+
enable_oidc_authentication: false
15+
oidc:
16+
issuer: "" # OIDC provider URL
17+
audience: "" # Expected audience claim in the token
18+
groupsClaim: "" # JWT claim name that carries user groups/roles
19+
authorizedGroups: [] # Groups/roles allowed to access Prometheus
1420
serviceMonitor:
1521
kubelet:
1622
scrapeTimeout: 10s

0 commit comments

Comments
 (0)