Brief
Apply least privilege to a service account and explicitly test allowed and denied actions.
Imani shows Mara the supplier account's permissions. Voss insists it 'only delivered files.' Yet the list opens one door to the evidence archive and another to publication. Prepare a simple comparison for the team before the fictional meeting, without changing a real system or displaying keys. The urgency belongs to the story; this exercise has no timer.
Your mission
- Name the single permission the supplier needs in this copy.
- Name the two excessive permissions and their risks.
- Give three authorization tests after reduction, with expected outcomes.
- Explain why the rights list alone cannot identify who changed the evidence.
How to check your work
- write intake is necessary.
- write evidence_archive and publish report exceed the task.
- Delivery allowed; archive change and publication denied.
- A permission shows capability, not an observed action or the person behind an identity.
Course example
# This is a local permission simulation; it changes no cloud account.
supplier_before = {
("write", "intake"),
("write", "evidence_archive"),
("publish", "report"),
}
supplier_needed = {("write", "intake")}
supplier_after = supplier_needed.copy()
investigator = {("read", "evidence_archive"), ("read", "report")}
def can(permission_set, action, resource):
return (action, resource) in permission_set
print(sorted(supplier_before - supplier_needed))
print(can(supplier_before, "write", "evidence_archive"))
print(can(supplier_after, "write", "evidence_archive"))
print(can(supplier_after, "write", "intake"))
print(can(investigator, "read", "evidence_archive"))