aws-privateca-issuer icon indicating copy to clipboard operation
aws-privateca-issuer copied to clipboard

[Feature Request]: Implement a kubernetes MutatingWebhook to add credential helper sidecar

Open ev1lm0nk3y opened this issue 6 months ago • 1 comments
trafficstars

Describe why this change is needed

In order to manage this plugin across many different workloads requires a lot of boilerplate. If a workload has an annotation or label signifying that AWS credentials for a specific role are needed, then the appropriate sidecars, envvars and volumes should be inserted.

Describe solutions and alternatives considered (optional)

A kubernetes MutatingWebhookConfiguration will check each Pod for a matching label key, e.g.aws.privateca.cert-manager.io/role-arn, and patch the resource before committing. There should be default values for trust-arn, profile-arn and trust-certificate that can be overridden by labels too.

Alternatives:

Something akin to the AWS IRSA mechanism that can sit on each node as a metadata service shim. I think there would be some issues regarding container access to the generated credentials though. A cluster-wide volume mount (ceph, beegfs, etc) could manage the credentials as a volume mount much like the serviceAccountToken, maybe.

Is there anything else you would like to add?

No response

ev1lm0nk3y avatar May 04 '25 14:05 ev1lm0nk3y

Hi @ev1lm0nk3y, thank you for submitting this feature request. We will review the request and get back to you.

ARichman555 avatar May 05 '25 13:05 ARichman555