# Building a Kubernetes Operator for Workload Identity Federation Across AWS and GCP

DevFeed: [Building a Kubernetes Operator for Workload Identity Federation Across AWS and GCP](<https://devfeed.tech/articles/building-a-kubernetes-operator-for-workload-identity-federation-across-aws-and-gcp-123545.md>)

Original publisher: [Read original article](<https://hackernoon.com/building-a-kubernetes-operator-for-workload-identity-federation-across-aws-and-gcp?source=rss>)

Author: Shankar

Published: 2026-11-09T05:00:03Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [identity and access management](<https://devfeed.tech/topics/identity-and-access-management.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [Auth0](<https://devfeed.tech/topics/auth0.md>), [Keycloak](<https://devfeed.tech/topics/keycloak.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [auth0](<https://devfeed.tech/tags/auth0.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-iam](<https://devfeed.tech/tags/aws-iam.md>), [azure](<https://devfeed.tech/tags/azure.md>), [building](<https://devfeed.tech/tags/building.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [gcp](<https://devfeed.tech/tags/gcp.md>), [gcp-workload-identity](<https://devfeed.tech/tags/gcp-workload-identity.md>), [hackernoon-top-story](<https://devfeed.tech/tags/hackernoon-top-story.md>), [identity](<https://devfeed.tech/tags/identity.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-operator](<https://devfeed.tech/tags/kubernetes-operator.md>), [kubernetes-operators](<https://devfeed.tech/tags/kubernetes-operators.md>), [myceliam](<https://devfeed.tech/tags/myceliam.md>), [namespaces](<https://devfeed.tech/tags/namespaces.md>), [oauth2-client-credentials](<https://devfeed.tech/tags/oauth2-client-credentials.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [operator](<https://devfeed.tech/tags/operator.md>), [providers](<https://devfeed.tech/tags/providers.md>), [resources](<https://devfeed.tech/tags/resources.md>), [workload-identity](<https://devfeed.tech/tags/workload-identity.md>), [workload-identity-federation](<https://devfeed.tech/tags/workload-identity-federation.md>)

## AI overview

Myceliam is a Kubernetes operator that watches namespaces and ServiceAccounts, then creates and continually reconciles federated trust in supported identity providers (SPIFFE, Keycloak, Auth0) and AWS or GCP. Labels and access-profile CRDs specify identity and target roles or service accounts; an optional namespace allowlist limits provisioning. The operator manages trust, not permissions, and workloads obtain short-lived credentials directly from the IdP and cloud. Keycloak uses per-namespace realms and predictable client IDs; Auth0 uses a shared tenant with per-application grants and injected claims; SPIFFE needs no IdP resources. AWS trust conditions must account for whether tokens carry `azp`, while GCP maps identity to `google.subject` and binds that subject to a service account. Finalizers clean up resources, and periodic reconciliation corrects external drift. Limits include no pruning of stale AWS trust statements, no expiry-based rotation of generated signed-JWT keys, single-instance operation, and a requirement that SPIRE already be installed.

## Source excerpt

myceliam turns Kubernetes Namespaces and ServiceAccounts into the source of truth for identity, create counterpart resources in IDPs and cloud providers.