동일한 OIDC 패턴, 다른 IAM 이름
GCP — Workload Identity Federation
- Workload Identity Pool을 만들어.
- GitHub용 OIDC 제공자를 추가하는데, 발급자는
https://token.actions.githubusercontent.com로 설정해. - 서비스 계정을 생성하고 배포 권한을 부여해.
- 네 저장소와 매칭되는 속성 조건으로 서비스 계정을 풀에 바인딩해.
- CI에서는
google-github-actions/auth액션을 사용해.
Azure — 서비스 주체의 페더레이션 자격 증명
- 앱 등록이나 서비스 주체를 생성해.
- 페더레이션 자격 증명에서 서브젝트를
repo:my-org/my-repo:ref:refs/heads/main로 해서 GitHub Actions 항목을 추가해. - 서비스 주체에 역할 할당을 부여해(Contributor, AcrPush 등).
- CI에서는
client-id,tenant-id,subscription-id와 함께azure/login을 사용해.
배포 대상
- GCP: Cloud Run, GKE, App Engine, Cloud Functions, Cloud Storage.
- Azure: App Service, AKS, Container Apps, Functions, Static Web Apps.