You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M3b: Azure identity for GitHub Actions (owner takes part) #8
A one-time, repeatable setup (make github-identity) that lets this repo's GitHub Actions deploy to Azure without any stored password: an app registration with a federated credential for this repo (OIDC), allowed to change only the rg-microservices-12-patterns resource group. make provision grants that role again after each teardown, because deleting the resource group deletes the role assignment.
Human ticket: it runs with the owner's Azure access and creates a permanent identity in their Azure tenant. The agent writes the script and the docs; the owner reviews and runs it.
Acceptance criteria
The identity can act on rg-microservices-12-patterns only (no subscription-wide role).
Only workflows from this repo's main branch (or a named environment) can use it.
No client secret is created; GitHub stores only non-secret ids (client, tenant, subscription).
Running the setup twice changes nothing the second time.
Done by the owner with make github-identity, then checked read-only: exactly one app named ms12p-github-deploy; 0 client secrets and 0 certificates; one federated credential, subject repo:MAOFILHO/Microservices-12-Patterns:ref:refs/heads/main, issuer token.actions.githubusercontent.com; service principal exists with 0 role assignments (the resource group does not exist yet; make provision grants Contributor on it only); GitHub secrets AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_SUBSCRIPTION_ID set (names only checked).
Activity
MAOFILHO commentedon Nov 16, 2026
Done by the owner with
make github-identity, then checked read-only: exactly one app named ms12p-github-deploy; 0 client secrets and 0 certificates; one federated credential, subjectrepo:MAOFILHO/Microservices-12-Patterns:ref:refs/heads/main, issuer token.actions.githubusercontent.com; service principal exists with 0 role assignments (the resource group does not exist yet;make provisiongrants Contributor on it only); GitHub secrets AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_SUBSCRIPTION_ID set (names only checked).