Least Privilege
Cheat sheet · https://pcornel.dk/topic.php?topic=5902
Answer
Least Privilege in Automation Security constrains the automation controller, runner, service identity and target actions to the minimum authority required for a specific workflow and environment.
Remember
- Dedicated service account ≠ least privilege.
- Read-only repository access ≠ low target privilege.
- Temporary runner ≠ temporary target permission.
- Role assignment ≠ effective permission understood.
First checks
- Role per automation job — scope
- Remove admin/Domain Admin from service accounts — reduction
- Permission review schedule — governance
Commands
show running-config
Verify in this order
job → minimal role → target
Where it usually breaks
This Topic proves minimum authority only for the mapped boundaries and tested actions; hidden inherited roles or unmodeled platform permissions remain outside the proof.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Least Privilege security proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trust / identity | Source revision, trigger, workload identity and policy/approval are explicit and immutable | Mutable code or shared admin identity reaches privileged execution without attributable trust decisions |
| Execution / isolation | Runner/controller, dependencies, credentials and target permissions are bounded to the workflow | Persistent privileged runners, broad secrets or floating dependencies widen the execution trust boundary |
| Effective outcome | Target-side authentication/authorization or secure control outcome is independently observed | Tool/job success substitutes for target authorization, effective state or workload proof |
| Closure / next action | Rotation/revocation, denied-path tests, audit evidence and residual exceptions are explicit | Old credentials remain valid, policy bypass exists, audit gaps are unknown or broad success is inferred from one signal |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5902