All lessons in Cloud Engineering: Deploy, Operate, and Recover

Workload Identity and Least Privilege

Separate authentication from authorization and verify allowed and denied workload operations.

35 minutes · Free with an account · preview

What you will learn

  • Separate an application's identity from the permissions granted to that identity.
  • Choose a role and resource scope for one bounded workload operation.
  • Diagnose an access failure without granting unrelated administrative authority.

Northstar's document-status service must read a published status file. A teammate gives its deployment account broad permissions and the test succeeds. That result proves the request can succeed under those permissions. It does not establish that the running application has an appropriate identity or that it can do only the intended work.

Your decision is which actor needs which operation on which resource. The service should read status objects; the release process should update the service; a human operator should investigate failures. Keeping those responsibilities separate makes a permission change reviewable and a compromised component easier to contain.

This lesson uses Azure terminology for a concrete implementation. The identities and resources in the worked case are fictional. The local workbook models permission decisions; it does not contact Azure or reproduce the complete Azure authorization engine.

Choose another lesson