CTL-064 · human
Limit Bulk Code Access
Restrict where and how much source code can be cloned, and keep code access tied to managed identities.
TechnicalEffort MediumEffectiveness Medium
Mass cloning is easier when any device and any token can pull every repo. IP allow lists, managed user accounts, base permissions set to none, and fine-grained tokens limited to specific repos shrink what one person can take.
Limits on scope work better than limits on volume, because developers clone often. The goal is that a person can only clone what their team needs, from a managed device, with a token that expires. Review the largest repo access lists each quarter.
Put it in place
- 01Set organization base permission to "No permission" and grant repo access through teams.
- 02Enable an IP allow list or require access from managed devices for the code host.
- 03Use enterprise managed users so personal accounts cannot hold company code.
- 04Require fine-grained tokens with expiry and limit classic tokens.