The Last Day of a Contract: The Order for Revoking Repository, Deploy Key, and Log Access

When one vendor works on several projects, ending a contract is not about suspending an account. It is about cutting every path that person has to the ending project's resources. The revocation order, from separating shared credentials to verifying right after the cutoff.

John Baek
John Baek
Founder, CollabOps
2 min read

Friday, 6 p.m.: a vendor's contract for project A ends. The same vendor will still be running project B on Monday. Suspend the account outright and B's overnight jobs may stop. Just remove the name from A's member list and the vendor may still reach A through a shared key or a team permission. What you are ending is not one person. It is every path that person has to A's resources.

Contract offboarding revokes paths, not accounts. Direct invitations, inherited team roles, deploy keys, and scheduled jobs each have to be cut before access to the ending project actually disappears.

Find the shared credentials before the end date

If A's and B's automation use a single integration account, finding that out at the moment the contract expires is too late. Define the access B needs, issue B its own credential, and run one normal B job with the new credential ahead of time. Then you can retire the old shared credential when A ends without interrupting B's deploys.

Repository deploy keys in particular can outlive the person who created them. GitHub deploy keys belong to the repository, and a key can stay active even after its creator is removed from the repository. In CollabOps too, adding a team to a project or repository means its members inherit that role (team permissions docs), so check the direct invitation list and the team path together.

What order should revocation follow on the last day?

Before the cutoff, find and separate the paths. At the cutoff, revoke what is specific to A. Right after, confirm that B and the audit view each still work. By phase (the project setup is illustrative):

WhenWhat to doHow to confirm it is done
Before the endInventory A's direct permissions, team-inherited permissions, deploy keys, and scheduled jobs. Split off any shared credential B uses.A normal B job completes with the new credential.
At the cutoffRevoke A-only permissions and keys. Check residual access from existing sessions and tokens, and any jobs queued in A.Even from an existing login, A's repository and deploy logs cannot be newly opened, and no queued job starts under the revoked permission.
Right afterSeparately confirm B's normal work and the internal auditor's read access to A.B's next deploy succeeds, and the auditor can reconstruct last month's approvals and runs in A.

What if A and B keep sharing source code?

If A and B keep sharing source code, be explicit about one thing. Common source that the vendor legitimately reads through B stays visible. If the revocation is supposed to cover A-only source, then where that code lives (which repository, which path) has to match the contract scope in the first place. Visibility when two projects share one repository is covered in should each team see the other's deploy logs.

Finally, past deploy records keep the approver and executor as they were at the time. Who may read those records after the contract ends is decided by the current policy. When the handover goes well, the operations team can show three things at once: "A can no longer be newly accessed, B runs normally, and A's past deploys can still be explained."

  • #permissions
  • #security
  • #offboarding
  • #audit
  • #devops