Preview a change · Only the deployer can apply it.
The same automated identity should not need to publish software, change infrastructure and read an application’s sensitive settings. In my Azure infrastructure project, I separated those jobs and defined how each application receives the secret values it needs to run.
What I needed
The portfolio website and Access Control Demo share cloud services, but their release tasks have different access needs. A process that previews a change should not also need permission to apply it. Routine releases should not require permission to alter identities or rewrite the secret store.
My contribution
I defined separate publisher, planner, deployer and runtime identities for each application. I configured short-lived GitHub-to-Azure authentication, the role assignments and the approved secret references. Foundation setup and permission changes remain separate operator work.
Give each job a defined role
**The publisher** writes the packaged application to its image repository. The planner reads infrastructure and previews changes. The deployer updates Container Apps using a custom role without registry, Key Vault or permission writes. The runtime identity can read its application image and approved secrets.
Keep secret values out of release configuration
GitHub authenticates to Azure uses short-lived identity tokens rather stored Azure passwords. For runtime settings, the release configuration carries approved secret names. Azure resolves the corresponding values from Key Vault using the apps runtime identity.
Match the boundary to the control
The deployment role is scoped to the shared Azure resource group. Workflow checks restrict a routine release to the selected application and reject unrelated changes. The role definition and the release checks provide different parts of that control.
The result
The repository makes the access design explicit: which identity performs each job, which permissions its role defines, and how runtime settings reach the application. This supports the shared release process while keeping routine deployment separate from foundation and permission changes.