Skip to content

(feat) Add workload identity support#636

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:workload-identity
Jun 22, 2026
Merged

(feat) Add workload identity support#636
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:workload-identity

Conversation

@gianlucam76

Copy link
Copy Markdown
Member
  • Add WorkloadIdentity field to SveltosClusterSpec with provider-specific for AWS (IRSA/EKS Pod Identity), GCP (Workload Identity Federation), and Azure (Azure Workload Identity).
  • Add lib/clusterproxy/workload_identity.go: when WorkloadIdentity is set on a SveltosCluster, GetSveltosKubernetesRestConfig obtains short-lived credentials from the cloud provider instead of reading a kubeconfig Secret. Results are cached in-process with proactive refresh 5 minutes before expiry.
  • Add EvictWorkloadIdentityCache(namespace, name string) for components to call from their SveltosCluster delete handlers.
  • No behaviour change when WorkloadIdentity is not set.

- Add `WorkloadIdentity` field to `SveltosClusterSpec` with provider-specific
for AWS (IRSA/EKS Pod Identity), GCP (Workload Identity Federation), and Azure
(Azure Workload Identity).
- Add `lib/clusterproxy/workload_identity.go`: when `WorkloadIdentity` is set
on a SveltosCluster, `GetSveltosKubernetesRestConfig` obtains short-lived
credentials from the cloud provider instead of reading a kubeconfig Secret.
Results are cached in-process with proactive refresh 5 minutes before
expiry.
- Add `EvictWorkloadIdentityCache(namespace, name string)` for components to
call from their SveltosCluster delete handlers.
- No behaviour change when `WorkloadIdentity` is not set.
@gianlucam76 gianlucam76 merged commit 79f5f1f into projectsveltos:main Jun 22, 2026
2 checks passed
@gianlucam76 gianlucam76 deleted the workload-identity branch June 22, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant