Identity and least privilege
Prefer temporary credentials and roles suited to each workload. Separate who can assume a role from what its session can do. Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants. For example, an application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.
An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.
A deployment pipeline assumes an AWS role, and the application later assumes a different workload role. First identify each role's caller and trust path. Then enumerate necessary actions against specific resources. The deployer may update infrastructure, while the application only reads its configuration and writes its own business records. Sharing one administrator identity collapses that intended separation.
Least privilege limits access to required work. Temporary credentials expire instead of becoming permanent embedded keys. A permission boundary or organizational restriction may constrain effective access beyond the identity policy. Design access from the request path, not from a service's entire permission list. A secret can remain well protected in storage yet be exposed by an overly powerful application role that reads unrelated secrets. Temporary credentials reduce long-lived-key handling, but do not make excessive privileges harmless during the session. Validate denied operations as well as permitted ones to demonstrate the boundary.
An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.
Do not overlook this operational distinction: Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants.