같은 OIDC 패턴, 다른 IAM 이름
GCP — Workload Identity Federation
- Workload Identity Pool 생성.
- GitHub 용 OIDC provider 추가: issuer
https://token.actions.githubusercontent.com. - Service Account 생성; deploy 권한 부여.
- 아빠 repo 매칭하는 attribute 조건으로 SA 를 pool 에 바인딩.
- CI 에서:
google-github-actions/authaction.
Azure — Service Principal 의 Federated credential
- App Registration / Service Principal 생성.
- Federated credentials 에서 subject
repo:my-org/my-repo:ref:refs/heads/main로 GitHub Actions 항목 추가. - SP 에 role assignment 부여 (Contributor, AcrPush 등).
- CI 에서:
client-id,tenant-id,subscription-id와 함께azure/login.
Deploy 타겟
- GCP: Cloud Run, GKE, App Engine, Cloud Functions, Cloud Storage.
- Azure: App Service, AKS, Container Apps, Functions, Static Web Apps.