Production-grade platform engineering handbook — Kubernetes, Terraform, Flux CD, GitHub Actions, AWS, and more.
67
84%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Status: Stable
Production-ready Azure workload identity for AKS — federated credentials, no service principal secrets.
| Example | Type | Description |
|---|---|---|
| workload-identity/main.tf | Terraform | Managed identity + federated credential for AKS pod |
| workload-identity/serviceaccount.yaml | Kubernetes | Annotated ServiceAccount for workload identity binding |
cd workload-identity
terraform init
terraform plan \
-var="resource_group_name=my-rg" \
-var="aks_cluster_name=my-aks" \
-var="namespace=my-app" \
-var="service_account_name=my-app-sa"
terraform apply
# Apply the annotated ServiceAccount
kubectl apply -f serviceaccount.yaml# Federated credential binds managed identity to AKS ServiceAccount
resource "azurerm_federated_identity_credential" "app" {
issuer = data.azurerm_kubernetes_cluster.aks.oidc_issuer_url
subject = "system:serviceaccount:${var.namespace}:${var.service_account_name}"
audience = ["api://AzureADTokenExchange"]
}# ServiceAccount — annotated with client ID
metadata:
annotations:
azure.workload.identity/client-id: "<managed-identity-client-id>"# Pod spec — label triggers token injection
metadata:
labels:
azure.workload.identity/use: "true"
spec:
serviceAccountName: my-app-saresource "azurerm_role_assignment" "app_storage" {
scope = azurerm_storage_account.app.id
role_definition_name = "Storage Blob Data Reader"
principal_id = azurerm_user_assigned_identity.app.principal_id
}locals {
common_tags = { environment = var.environment, team = var.team, managed-by = "terraform" }
}
resource "azurerm_resource_group" "app" {
tags = merge(local.common_tags, { service = "my-app" })
}azure.workload.identity/use: "true" labeloidc_issuer_enabled = true and workload_identity_enabled = trueenvironment, team, managed-by/platform-skills:review — production-readiness review of Azure Terraform resources.claude-plugin
.github
commands
docs
examples
agent-self-improve
argocd
awesome-docs
aws
cloudfront
functions
lambda-edge
functions
azure
compliance
conventional-commits
datadog
llm-observability
demo
documentation
dora
dynatrace
fluxcd
github-actions
composite-actions
configure-cloud
db-migrate
docker-build-push
k8s-deploy
notify-slack
pr-comment
release-tag
security-scan
setup-env
setup-terraform
terraform-plan
helm
web-service
templates
kubernetes
kyverno
mcp
observability
openshift
pr-review
ownership
runtime-security
supply-chain
terraform
references
scripts
skills
platform-skills
tests