GeezerVison is showing github.com — Enforce the tenant ClusterIssuer boundary with an admission policy · Issue #2470 · devantler-tech/platform
Enforce the tenant ClusterIssuer boundary with an admission policy #2470
Description
🤖 Generated by the Daily AI Assistant
Problem. cert-manager-tenant-edit (PR #2453) scopes tenants to namespaced Issuers, but RBAC cannot stop a tenant Certificate from referencing a cluster-scoped ClusterIssuer via spec.issuerRef.kind: ClusterIssuer — the reference is resolved by cert-manager's controller, not the tenant's identity. The stated boundary ("ClusterIssuer remains platform territory") is currently convention, not enforcement. Raised by review on #2453.
Proposed direction. Runtime-enforce per the fix-vs-except ladder: a Kyverno validating ClusterPolicy on Certificate (and CertificateRequest) objects in tenant namespaces rejecting spec.issuerRef.kind != Issuer — Kyverno is already the platform's admission layer, so prefer it over adding cert-manager approver-policy as a new controller. Start in Audit, graduate to Enforce.
Rough size. Small-medium: one ClusterPolicy + tenant-namespace selector convention + validation.
Activity
coderabbitai commented on Jul 4, 2026
🔗 Related PRs
#2316 - fix(kubescape): make ClusterSecurityException posture exceptions take effect [closed]
#2343 - fix(openbao): grant external-secrets role write/read on apps/actual-budget path [closed]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Metadata
Metadata
No fields configured for Security.
StatusShow more project fields
Development
No branches or pull requestsIssue actions