Until now anyone admitted through Dex saw every namespace and every log, read with the module's service account. auth.visibility: ViewerRBAC (the default) asks the API server as the viewer, with the token the DexAuthenticator forwards: list pods in all namespaces means the whole cluster; otherwise the namespaces where they can list pods. Logs also need get pods/log, node cards list nodes, cluster-wide alerts are for cluster-wide viewers. Traffic to a hidden namespace keeps its counts with the peer shown as hidden. One minute cache per token hash, SSARs in parallel (8), a cluster-wide viewer costs two. Verified against the live cluster with two real tokens: a service account with view in one namespace got that namespace only (0 nodes, 403 on another namespace's YAML and logs, 403 on node usage); the module's own account, cluster-wide, got all 56 namespaces and 6 nodes; no token, 401. auth.visibility: Everything keeps the old behaviour. The DexAuthenticator now forwards the token when either actions or ViewerRBAC need it (templates/_helpers.tpl). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
# Values as Deckhouse would pass them for a typical cluster: user-authn on,
|
|
# CertManager https, cilium-hubble installed. Used by `make render`.
|
|
global:
|
|
clusterIsBootstrapped: true
|
|
enabledModules: ["user-authn", "cert-manager", "vertical-pod-autoscaler", "operator-prometheus", "cilium-hubble"]
|
|
discovery:
|
|
clusterDomain: cluster.local
|
|
clusterControlPlaneIsHighlyAvailable: false
|
|
d8SpecificNodeCountByRole: {}
|
|
highAvailability: false
|
|
modules:
|
|
publicDomainTemplate: "%s.example.com"
|
|
ingressClass: nginx
|
|
https:
|
|
mode: CertManager
|
|
certManager:
|
|
clusterIssuerName: letsencrypt
|
|
placement: {}
|
|
modulesImages:
|
|
registry:
|
|
base: registry.example.com/modules
|
|
digests:
|
|
clusterMap:
|
|
clusterMap: "sha256:0000000000000000000000000000000000000000000000000000000000000000"
|
|
clusterMap:
|
|
traffic:
|
|
mode: Continuous
|
|
retentionMinutes: 60
|
|
onDemandIdleMinutes: 10
|
|
collectInfraTraffic: false
|
|
actions:
|
|
enabled: true
|
|
logs:
|
|
tailLines: 500
|
|
systemNamespacePrefixes: ["d8-", "kube-"]
|
|
auth:
|
|
visibility: ViewerRBAC
|
|
allowedUserGroups: ["admins"]
|
|
externalAuthentication:
|
|
authURL: https://cluster-map-dex-authenticator.d8-cluster-map.svc.cluster.local/dex-authenticator/auth
|
|
authSignInURL: https://$host/dex-authenticator/sign_in
|
|
internal:
|
|
deployDexAuthenticator: true
|
|
hubbleCA: "-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----\n"
|
|
registry: {}
|