Cross-provider policy evaluation
Start with a request, not a role name
A permission decision concerns a principal, action, resource and context. A principal may be a person, group-derived identity, workload or assumed session. A permission allows an operation; a role groups permissions or, in AWS, represents an assumable identity with policies. A policy or assignment associates permissions and restrictions with identities or resources. Conditions can constrain access by attributes, time or other supported request context.
Consider the bookstore API. Its runtime identity reads a private catalog; its release job writes build artifacts; its audit team reads logs. The runtime should not delete artifacts. Begin with required operations and scope instead of granting administrator access and trying to remove privileges later. A successful network connection does not prove that the API operation is authorized.
AWS: separate trust and authorization
For a simplified single-account identity-policy scenario, an authenticated role session requests an action on a resource. Applicable identity grants are evaluated along with resource policies and restrictions. An applicable explicit deny wins; a missing required grant produces an implicit denial. Permissions boundaries limit identity-policy grants, while Organizations SCPs limit permissions for applicable principals; neither is an independent permission grant. Resource control policies may also constrain resources. Session policies can further constrain a session.
Role assumption: trusted principal + permitted assumption -> sessionAPI request: session + action/resource/context -> applicable policies -> explicit deny? deny -> sufficient grant under relevant rules? allow or denyThis is a conceptual trace, not a full AWS algorithm. Resource-policy grants to different principal types have exceptions to implicit boundary and session restrictions; cross-account access and service-specific policies such as KMS require their own evaluation. Do not mechanically intersect every policy or assume an explicit allow anywhere is enough. Consult the current AWS enforcement logic for the exact principal and resource.
Azure: assignments, scope and deny
Azure RBAC assignments associate a security principal, a role definition and a scope. Scopes descend from management group through subscription, resource group and resource. Assignments at parent scopes can apply to descendants. Multiple applicable grants are generally additive. A role definition's NotActions or NotDataActions exclude operations from that role's grant; they are not universal explicit denies against other assignments. Applicable deny assignments can block access even with a grant. Conditions can constrain supported assignments.
Entra authentication -> Azure resource request -> applicable assignments at resource and ancestors -> relevant deny assignments and conditions -> outcomeDistinguish control-plane management operations from data-plane access. A role permitting inspection of storage account settings does not necessarily grant reading stored blobs. Check the service's data authorization method; avoid solving a missing data permission by assigning broad subscription ownership.
Google Cloud: inherited bindings and guardrails
Google Cloud IAM allow policies bind roles to principals; grants attached to ancestors can apply to descendants. A binding can include a condition where supported. Deny policies are distinct guardrails for supported permissions and may be inherited. Applicable deny rules take precedence over allow policies. Other controls, including applicable principal access boundaries and service-specific requirements, may constrain access.
Authenticated principal -> requested permission and resource -> applicable policy hierarchy and guardrails -> eligible allow? -> outcomeFor example, granting a project-level storage role may reach more buckets than intended; prefer a bucket-level binding when supported and sufficient. Removing a local binding does not remove a grant inherited from a parent. Check effective policy rather than only the target resource. The diagram does not enumerate all Google Cloud policy types or condition semantics.
Offline evaluator: one deliberately restricted model
The following Python example accepts precomputed Boolean facts about a fictional single request. It checks an already verified identity, an applicable deny, scope, an applicable grant and one satisfied condition. It does not parse real policies, verify tokens, perform inheritance or call a provider. Assume all flags are reliable and no other restrictions apply. Never use this model as a production authorization engine or as a substitute for provider policy troubleshooting.
def decide(authenticated, in_scope, allow, deny, condition): # Teaching model: these are precomputed facts, not raw cloud policies. if not authenticated: return "deny: identity" if deny: return "deny: explicit" if not in_scope or not allow or not condition: return "deny: missing grant" return "allow"
print(decide(True, True, True, False, True))print(decide(True, True, True, True, True))print(decide(True, False, True, False, True))Expected output:
allowdeny: explicitdeny: missing grantThe first request satisfies every required fact. The second has a grant but also a deny; it fails. The third has no grant covering the requested scope. In the actual platforms, determining each fact requires provider-specific logic; the Boolean model only illustrates a final reasoning step.
Troubleshoot denied requests without broadening access
First confirm which identity and session were used, which operation was attempted, the exact resource and the relevant service or API. Check authentication and expiry separately from authorization. Trace the relevant assignments, policies, hierarchy, conditions and any applicable denies. Confirm whether control-plane or data-plane permissions are required. Use authorized, redacted diagnostic evidence; do not copy credentials into support requests.
Propose the smallest documented change that supports the approved task and review its effects on other resources. Test both a permitted operation and an operation that must remain denied in an authorized sandbox. Account for policy propagation delays. Provider policy simulators and troubleshooters have limits and may not evaluate every condition or service control. Record the observed results separately from predictions; no live tests are performed here.
Practice and next step
Build an access matrix for the bookstore runtime, release job and auditor. Identify a positive and negative case for each, and explain which provider-specific role and scope information must be verified before an actual implementation. Compare inherited grants and explicit denies without claiming they are implemented identically. Next: encryption, key management, secrets and certificates. Reference: Cross-provider policy evaluation and the official provider evidence register.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cross-provider policy evaluation — knowledge check
Choose the best answer for each offline scenario.
What happens in the toy evaluator if an applicable explicit deny and a grant are both present?
What is an AWS permissions boundary?
What does Azure RBAC role assignment combine?
Why might a Google Cloud principal still have access after a bucket-level grant is removed?
What is the best first step for diagnosing an access denial?