Summary
Namespace-scoped issuers in AWS Private CA Connector for Kubernetes may fall back to the controller's AWS identity when they omit credentials or specify only a role. An authenticated user who can create these issuers could use that fallback to request certificates, including subordinate CA certificates, from certificate authorities and templates available to the controller identity or roles it can assume.
Affected context
The issue affects aws-privateca-issuer deployments before 1.12.0 when namespace-scoped issuers can be created and rely on the controller's AWS identity because they omit credentials or provide only a role. The risk depends on the permissions of the controller identity and any IAM roles it can assume, as well as the certificate authorities and templates reachable through those permissions.
Exploit preconditions
- Attack surface: Creation of namespace-scoped issuers through the Kubernetes API
- Required access: An authenticated user with permission to create namespace-scoped issuers
- Trigger point: The controller processes an issuer that omits credentials or specifies only a role and handles a certificate request
- Why exploitation is possible: The issuer may use the controller's AWS identity rather than credentials belonging to the issuer's namespace, allowing requests within the permissions of that identity or its assumable roles
Why this happens
The credential-selection behavior does not reliably keep a namespace-scoped issuer's authority separate from the controller's AWS identity. When issuer credentials are absent or only a role is specified, falling back to the controller identity can make the controller act as a more privileged intermediary on behalf of an issuer creator. This is a confused-deputy pattern (CWE-441) and can also represent incorrect authorization (CWE-863).
Potential impact
- An attacker with the required issuer-creation permission could obtain certificates from certificate authorities accessible to the controller identity or its assumable roles.
- Issued certificates could include subordinate CA certificates, potentially enabling broader certificate issuance.
- Misuse of certificate templates could undermine trust in services that rely on the affected certificate authorities.
- The scope of impact could extend across namespaces or environments that share the controller's AWS permissions.
General mitigation guidance
Defensive patterns should ensure that each namespace-scoped issuer uses an explicitly authorized identity rather than implicitly inheriting the controller's credentials.
- Use credentials scoped to the issuer's intended authority and trust boundary.
- Fail closed when issuer credentials are missing or incomplete instead of falling back to a broader identity.
- Apply least privilege to the controller identity and any roles it can assume.
- Restrict which users can create issuers and which certificate authorities and templates those issuers may access.
- Review existing issuer configurations and ensure they do not unintentionally depend on the controller identity.
How teams detect issues like this
- Review credential-resolution code and configuration for implicit fallback to a controller or process identity when issuer credentials are missing or incomplete.
- Use static analysis and code review to flag namespace-scoped operations that inherit broader service credentials without an explicit authorization check.
- Audit issuer creation permissions and compare issuer-level access with the AWS permissions available to the controller and its assumable roles.
- Monitor AWS certificate issuance records for unexpected principals, namespaces, certificate templates, or subordinate CA requests.
- Enforce policy checks that require explicit credentials and restrict issuer creation to approved users and configurations.

