In the Ebook, least privilege is positioned as a core control for defending against “shift-left” attacks on developers and DevOps platforms.
Applied to Enterprise DevOps, least privilege means:
- Developers and engineers get only the access they need, for the shortest time necessary
- High-privilege access is just-in-time and auditable, not permanent
- Access is tied to the enterprise identity store, not scattered personal accounts
1. Limit admin rights on devices and tools
The Ebook notes that developers often want full administrator rights, but this creates a large attack surface. When a developer machine with broad admin access is compromised, attackers can move quickly across tools, pipelines, and environments.
Recommended approach:
- Restrict local admin rights on primary devices
- Use just-in-time elevation for specific tasks that truly require admin access
- Apply the same principle to DevOps tools, release pipelines, secret stores, and databases
2. Centralize identity and use federation
The Ebook emphasizes connecting DevOps tools to the organization’s identity store and using identity federation for SaaS platforms. This helps avoid duplicate identities and reduces the risk of credential exposure.
In practice, this means:
- Using SSO for SaaS-based DevOps tools (e.g., GitHub enterprise setups)
- Ensuring that access to code repositories and pipelines is governed by enterprise identity policies
3. Secure access to code repositories
The Ebook outlines three common ways developers connect to SaaS environments and repos:
- HTTPS with enterprise identity
- SSH keys (ideally signed by an SSH certificate authority)
- Personal access tokens (PATs)
It strongly recommends avoiding PATs for source code access where possible, because they are easy to leak and hard to control once distributed.
Instead, it suggests:
- Using HTTPS with SSO or SSH keys managed via an SSH certificate authority
- Defining clear rules for which devices (local, cloud, container) are allowed to clone repositories
4. Control which devices can access what
The Ebook uses OneDrive as an analogy: unmanaged devices are blocked from syncing corporate folders. The same idea should apply to DevOps:
- Block cloning of sensitive repos from unmanaged or non-compliant devices
- Allow access only from managed laptops, approved cloud VMs, or sanctioned containers
Overall, the Ebook encourages enterprises to rethink DevOps access as a tightly governed, identity-driven model, where least privilege and just-in-time access are standard for developers, operators, and administrators alike.