k8wiz
Flux CD
Medium
Security

After an upgrade to Flux 2.10, OCIRepositories with provider: aws and a spec.serviceAccountName stop getting credentials. What is missing?

Select your answer:

Show answer and explanation

Answer: RBAC that lets source-controller create serviceaccounts/token

Explanation

Object identity asks the TokenRequest API for a token for the named ServiceAccount, which needs create on serviceaccounts/token. Flux 2.10 removed that verb from its default RBAC, so you bind a ClusterRole granting it before upgrading. The ObjectLevelWorkloadIdentity gate is retired in 2.10 because the feature is always on.

Read more about Flux CD