CI/CD credential design starts with a question: which job is allowed to change which environment, and what evidence permits that authority? A pipeline can pass its tests while still giving an untrusted build more access than it needs. For teams evaluating delivery automation in Canada, this guide offers a review method rather than a claim about a local project or a prescribed compliance standard.
Separate the build from deployment authority
A build usually needs source code, dependencies and somewhere to write an artifact. A production deployment needs a different permission set. Combining both in one broadly privileged job makes a build failure or compromised dependency harder to contain.
Create a simple inventory before changing credentials. For each job, record its trigger, runner, input trust, destination, required actions and environment. Include preview deployments, scheduled workflows and manual jobs. The important distinction is whether the job can receive untrusted code or configuration, not whether its name contains “production.”
An illustrative inventory might contain a pull-request build that reads source and uploads a test artifact, an approved release job that reads an immutable artifact and changes a staging service, and a separate production promotion job. This is a proposed example, not a report of XIVTech client work. Each boundary needs its own review; copying the same role to every job would defeat the separation.
Use short-lived identity where the platform supports it
OpenID Connect can let a workflow exchange its identity for short-lived cloud credentials. GitHub's OpenID Connect documentation describes this approach. It can reduce reliance on stored long-lived cloud credentials, but it does not decide which repository, branch, environment or workflow should be trusted.
Review identity conditions and cloud authorization separately. The identity policy decides who may request a session; the role policy decides what that session may do. A short-lived session with excessive permissions can still make a damaging change. Provider support, token claims and available condition keys vary, so verify the actual platform documentation instead of assuming a portable policy snippet will be safe everywhere.
Where a long-lived secret remains necessary, identify its owner, storage location, permitted consumers and replacement procedure. Avoid copying it into build output, a repository, logs or an artifact. Redaction is a useful secondary control; it does not justify logging sensitive values.
Place approval at a meaningful boundary
An approval should authorize a known change, not an unspecified later rebuild. Record the candidate artifact identity, destination environment and configuration version presented to the reviewer. If those inputs change after approval, establish whether a new review is required.
Keep artifact integrity and human authorization distinct. A digest can help establish which bytes were reviewed; it cannot establish that a business owner approved the release. Conversely, an approval cannot prove that a subsequent job deployed the same artifact.
Check alternative paths too. A manual workflow, a reusable workflow or a runner with ambient cloud credentials may bypass an otherwise careful promotion path. The review should cover effective access, not just the most visible workflow file.
Test rejection as well as success
In an approved non-production environment, test a permitted request and deliberately disallowed contexts. Examples include an unexpected repository, an unapproved environment, the wrong release reference and a job that should only build. Confirm that the denied request fails before receiving deployment authority.
Record the expected result, observed result, policy version and test context without recording tokens. Also test an expired or unavailable credential exchange. Decide whether the job should stop, retry within a bounded policy, or require investigation. Do not make a broad fallback credential available simply to keep the pipeline green.
Acceptance evidence should include the permitted action, denied actions and the owner who reviewed them. Passing a happy-path deployment alone leaves the most important trust assumptions untested.
Hand over the policy, not just a working pipeline
The handoff should identify who changes identity conditions, who reviews cloud permissions, who owns the runner and who handles an unexpected access event. Include a safe way to remove authority and a procedure for reviewing future workflow changes.
Keep a short decision record: why the boundary exists, what remains outside it, and which assumptions need revisiting if the repository, runner or deployment platform changes. This turns an implementation into something the receiving team can maintain.
To discuss the wider implementation scope, explore DevOps services and delivery responsibilities for Canadian teams. Availability, access and acceptance must be agreed for an actual engagement; this guide does not promise a particular security or performance outcome.
