Skip to content

M3b: Azure identity for GitHub Actions (owner takes part) #8

Closed

Description

@MAOFILHO

What to build

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.
  • Removal steps are documented.
  • The owner has approved and run it.

Blocked by

None (can start immediately).

Activity

  1. MAOFILHO commented on Nov 16, 2026

    @MAOFILHO
    OwnerAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions