Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

CI/CD Pipeline Access Review for a Growing SaaS Company

A growing SaaS team has multiple repositories, contractors and automation identities in its build-and-release workflow. Removing an engineer from a repository is not enough if that engineer retains a personal access token or approval bypass.

Why repository membership understates deployment power

A growing SaaS team has multiple repositories, contractors and automation identities in its build-and-release workflow. Developer access reviews often stop at repository membership, while actual deployment authority may also be inherited through pipeline tokens, cloud roles and artifact registries. A practical assessment follows how a change becomes executable production code.

Removing an engineer from a repository is not enough if that engineer retains a personal access token or approval bypass. Conversely, blanket removal of automation credentials can strand production releases. Test each route to changing an artefact or promoting a deployment and preserve evidence of legitimate delivery as well as rejected operations.

Release owners, runner trust and production privileges

List source repositories, branch rules, build runners, package registries, deployment environments and secrets stores. Use representative contributor, reviewer, release-manager and contractor identities. Include automated service accounts and orphaned deploy keys, because those credentials can retain authority long after an employee or vendor access review is signed.

Engineering owns the release process, platform security owns identity and secrets boundaries, product operations validates safe deployment, and the access reviewer independently checks effective permissions. Reviewers should not approve their own excessive access.

Walk one change from commit to production

Begin with repository membership and agree precisely what the equipment, data or account fixture represents. Compare the identity provider’s active employees and contractors against effective rights across protected repositories. An assessor needs to see the expected result before judging it: leavers and temporary vendors are absent; role membership reflects current business need. The final review must also cover release-signoff matrix and its proof, not merely a completed change ticket. Choose the safest test route consistent with this scope: list source repositories, branch rules, build runners, package registries, deployment environments and secrets stores.

A removed contractor still has a token

Effective rights versus visible membership. A contractor leaves a SaaS team and is removed from the main repository group. A personal access token, deployment key or cloud role may still allow release actions. Review access as a path from source edit through build and artifact promotion, not a single directory export. Use a fictional offboarded identity to challenge each path safely. If a pipeline service role remains privileged, determine which person or event can invoke it rather than accepting its machine-account label as sufficient control.

Pull-request trust. A forked contribution should not automatically receive production credentials simply because its build status is green. Test what the runner can read when it processes untrusted source. Protect signing keys and cloud deployment rights behind a reviewed promotion step. Evaluate persistent runner workspaces for artefact leakage using a synthetic marked file. A hidden secret in a log or retained cache may create an attack path even if branch protection stops direct merges. Record how the pipeline isolates those situations.

The integrity of the deployed artefact. Release assurance connects an approved source revision to a build digest, signed artifact and actual production deployment. Rebuilding from source during promotion can break that connection. Rehearse an emergency patch with time-bounded approvals, then show that normal rules were restored after deployment. The independent reviewer should be able to match a deployed digest to the approved change without needing unrestricted access to the whole production environment. Any mismatch deserves investigation before it is explained away as release-process convenience.

Check 1: Repository membership

Exercise. Compare the identity provider’s active employees and contractors against effective rights across protected repositories. Group sync can lag behind employee departure. Review effective repository rights and live access tokens rather than the HR roster alone.

Outcome to establish. Leavers and temporary vendors are absent; role membership reflects current business need.

Review evidence. Retain group export, contractor end-date and owner approval.

Check 2: Branch bypass

Exercise. Attempt a controlled change to a protected branch with an ordinary developer and a designated release identity. A branch protection setting may be bypassed by another owner role. Test whether protection applies to administrators as intended.

Outcome to establish. Required review and status checks cannot be silently overridden by unapproved contributors.

Review evidence. Collect branch-policy output, rejected push and approved pull-request trace.

Treat branch bypass as a separate authorisation boundary. Inspect whether build logs, job artifacts or pull-request contexts expose signing keys or production credentials. An observed failure under branch bypass should be distinguished from a configuration that was never tested.

Check 3: Secrets exposure

Exercise. Inspect whether build logs, job artifacts or pull-request contexts expose signing keys or production credentials. Untrusted pull requests must not inherit production credentials from privileged jobs. Check actual fork and job context behavior.

Outcome to establish. Untrusted contributors cannot read sensitive deployment material or trigger secrets-bearing jobs.

Review evidence. Keep sanitized job logs, vault access decisions and pipeline settings.

The secrets exposure result is best interpreted alongside repository membership. Leavers and temporary vendors are absent; role membership reflects current business need. If the fixture omits a crucial technical dependency, record the missing component as an unverified condition. When reporting secrets exposure, include the observed state and the counterpart that witnessed it, rather than only the intended policy.

Check 4: Runner trust

Exercise. Verify the identity, isolation and lifecycle of shared or hosted build agents used for release work. Persistent runners may retain build outputs between tenants or repositories. Verify cleanup with an intentionally marked synthetic file.

Outcome to establish. A lower-trust job cannot read another pipeline’s workspace or persistent credentials.

Review evidence. Record runner configuration, cleanup proof and cross-job test.

Check 5: Artifact promotion

Exercise. Track a signed build identifier from source revision to registry and the environment where it runs. A signed artefact still needs to be tied to an approved source revision and environment. Trace the complete release identity.

Outcome to establish. Production deploys an approved artefact rather than rebuilding unreviewed source during promotion.

Review evidence. Preserve digest, approval record and production release reference.

Check 6: Temporary exception

Exercise. Rehearse an urgent patch that requires accelerated approval without disabling all checks indefinitely. An emergency hotfix should produce an auditable exception rather than a permanent disabled approval rule. Reconfirm normal protections after release.

Outcome to establish. Emergency authority is narrowly scoped, logged and removed after the incident or release.

Review evidence. Keep exception request, expiry evidence and post-release review.

Check 7: Offboarding automation

Exercise. Remove a fictitious vendor’s account, deploy key and pipeline token while leaving legitimate schedules operational. Deploy keys and machine tokens can outlive a supplier contract. Test a former vendor against every stage, not just repository login.

Outcome to establish. No independent access route survives solely because the main user account was disabled.

Review evidence. Collect revocation events, runner job result and denied deployment attempt.

Check 8: Release-signoff matrix

Exercise. Ask each relevant owner to verify one approved build and one rejected change path against the same version. A signoff should record which release path was reviewed and which variations remain outside scope. New runners require revalidation.

Outcome to establish. A reviewer can reconstruct how production authority was granted and enforced at each stage.

Review evidence. Save evidence index, signatures, unresolved issues and re-test trigger.

Follow a commit to production through every credential boundary

A pipeline access review should begin with an example release and trace its authorities from the contributor to the protected branch, build runner, artifact registry and production deployment role. Repository membership alone does not describe who can ship code. A contractor removed from the source repository may still own a personal token that starts a workflow or an application credential that promotes artifacts. Conversely, a build service may need read-only registry access to keep releases running after a human user leaves.

For the controlled exercise, approve one ordinary change and one simulated unauthorised promotion attempt. Preserve the commit identity, review approvals, branch-protection state, runner provenance, artifact digest and cloud role assumed at deployment. The unwanted path should be denied by the actual promotion or identity control, not merely because the reviewer elected not to press a button. Repeat with an emergency fix: any bypass should name the incident or change, the authoriser, the expiry and the independent after-action review.

Pay particular attention to self-hosted runners and secrets present on build agents. A repository-level access decision is immaterial if an untrusted pull request can reach a privileged runner or if a build log exposes a token that remains valid after the job. After offboarding a test contributor, attempt a bounded invocation using previously issued credentials and check for denial. Product engineering accepts the normal release result; platform security accepts the privilege boundaries; the release manager records whether the emergency process can be operated without silently disabling the checks.

Judge the promotion-path results

Consider the relationship between branch bypass and artifact promotion in this workflow. Attempt a controlled change to a protected branch with an ordinary developer and a designated release identity. The permitted outcome is: required review and status checks cannot be silently overridden by unapproved contributors. The next boundary is different: track a signed build identifier from source revision to registry and the environment where it runs. Production deploys an approved artefact rather than rebuilding unreviewed source during promotion. Use the original case evidence and then compare it to preserve digest, approval record and production release reference.

Treat emergency bypasses as expiring exceptions

If secrets exposure does not meet its expectation, begin with the concrete event: inspect whether build logs, job artifacts or pull-request contexts expose signing keys or production credentials. The result should have demonstrated that untrusted contributors cannot read sensitive deployment material or trigger secrets-bearing jobs. Record the evidence source in this case: keep sanitized job logs, vault access decisions and pipeline settings. An exception involving offboarding automation has different implications: no independent access route survives solely because the main user account was disabled.

Validate permissions beyond the repository

A second assessor can select repository membership, runner trust and release-signoff matrix to reconstruct the technical argument. Retain group export, contractor end-date and owner approval. The middle checkpoint requires: record runner configuration, cleanup proof and cross-job test. Finally, the closure record should reflect a reviewer can reconstruct how production authority was granted and enforced at each stage.

Release handover and contributor departure

The operational handover for release-signoff matrix should incorporate both the observed decision and the business priority that motivated the exercise. Save evidence index, signatures, unresolved issues and re-test trigger. Engineering owns the release process, platform security owns identity and secrets boundaries, product operations validates safe deployment, and the access reviewer independently checks effective permissions. Reviewers should not approve their own excessive access. The owner should schedule a reassessment when the affected supplier, service, dataset, identity path or operating conditions materially change.

Sources and further reading

How Next Defence can help

Next Defence can help SaaS engineering teams trace deployment authority beyond repository membership, including tokens, runners, environment approvals and cloud roles. A review should show that an active release owner can deploy a synthetic change while a departed contractor cannot reuse a residual credential. Explore Application Security & DevSecOps for a scoped release-path assessment.

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].