Table of contents
Research context
This protocol measures how often a contractor's repository permission exceeds the written role in an outsourced development lane. The unit is one contractor account on one repository. The evidence is the role definition, the access export, and the engagement record. The result describes one team and one period.
## Question and scope
Include contractor accounts with access during the window, including read, write, admin, and secret access. Exclude vendor bots that are owned by the platform team. Record the repository, the account, and the engagement. If the role mapping changed during the period, split the sample.
A grant that matches the role is in scope, while a grant that is being downgraded is reported as pending. State that rule before scoring. A pending downgrade should not be counted as a current excess permission. The reviewer should record the status beside each grant.
## Definitions and evidence standard
Define the written role as the permission set in the engagement or the team role matrix. A verbal expectation is not a role definition. Record the source and the version. The reviewer should be able to compare the grant with the same document.
Define an excess permission as a grant that includes a capability the written role does not require, such as admin, delete, or secret read. Record the capability and the reason. The study should not treat a broader read scope as excess when the role requires it. The reviewer should record the matching capability.
Practical application
## Sampling and measurement
Draw the sample from the repository access export and the secret manager list. Record the export date and the filter. Include tokens and deploy keys, not only user accounts. A sample of user accounts will miss the credential that outlives the contractor.
Measure the number of grants, the share that match the role, the share with excess write, and the share with admin or secret access. Report the counts by repository and engagement. A single percentage hides the one admin grant on the most sensitive repository. The reviewer should keep the raw counts.
## Findings and interpretation
Present the distribution before suggesting a cause. A cluster in one repository may point to a default team permission, while a cluster in one engagement may point to an onboarding shortcut. Read the grants behind the largest group before naming a reason. The reviewer should keep the individual cases behind the count.
Separate an excess read from an excess admin or secret permission. The first is a scope problem, while the second is a high-risk capability. Report both counts. The fix for one is a role review, and the fix for the other is immediate removal.
Operating controls
## Limitations
The measure cannot show whether the contractor used the excess permission or whether the role itself was well designed. It shows only the gap between the written role and the grant. A matching grant can still be too broad, and an excess grant can still be unused. Keep the evidence result separate from the access decision.
The sample is local to one team and one repository set. A different engagement mix can produce a different share. Report the definitions and counts so the review can be repeated. Do not use the result as a benchmark.
## Practical next step
Choose one repair that matches the most common gap, such as a role template applied at onboarding. Write the owner and the start date. Define the measure that will show whether it worked, using the same categories. Keep the working list separate from the official record.
Test the repair on the next set of contractor accounts before applying it to every repository. Record the test group and the result. If the repair adds a step without improving the match, simplify it. A small test is enough to show whether the template is being used.
Sources
Frequently asked questions
What should happen first?
Begin with a bounded ticket, approved access, explicit acceptance evidence, and a named reviewer.
Who approves production changes?
The client's technical owner keeps final merge and release authority.
