Rutagon changes your deploy path so the pipeline assumes a role, for a team that still ships with a static key stored in CI. Devops consulting on this engagement is that path.
The release keeps shipping. The key is not how it authenticates to AWS.
What devops consulting changes in the pipeline
The job is the pipeline you already run, not a new platform beside it. GitHub Actions, GitLab CI, or the runner you actually have. We teach it to assume a role, we pin the trust to the repository and the branch that may deploy, and we take the static key out of the variables that job uses. AWS documents the OIDC provider a role trusts in the create OIDC provider guide. The work is making your real job match that model on a release you care about.
People comparing devops firms often get a maturity model. You get a deploy. One pipeline first, the one that reaches production or the one that holds the key with the most power. The others follow only if they are the same pattern and you want them in the same delivery. A dozen pipelines rewritten as a surprise is how a credential project takes down release night.
Rutagon builds this from Alaska. We have run deploys this way on a production SaaS platform, where the pipeline assumed a role and the running tasks assumed a different role. The split mattered. The deploy role could change infrastructure. It could not read the data the task role could read. We keep that split unless your pipeline is so small that one role is honest and still narrow.
The trust we will merge
The trust policy is the control. The audience is the AWS STS audience the provider documents. The subject is the repository and the ref. A wildcard subject is rejected. So is a provider trusted with no condition. The fragment below is the shape. Your issuer replaces the placeholder. The conditions stay.
Condition = {
StringEquals = {
"ci.example:aud" = "sts.amazonaws.com"
}
StringLike = {
"ci.example:sub" = "repo:ORG/service:ref:refs/heads/main"
}
} Environment protection belongs in the same change when the CI product has it. A job that assumes the production role should not be runnable from a fork or from an unreviewed pull request. We use the product's own gate. We do not invent a second approval bot. If the product cannot tell a protected branch from a fork, we do not give that product the production role. GitLab OIDC to AWS is the concrete version when GitLab is the runner. Terraform's own CI role is the version when the thing being deployed is the infrastructure repo. AWS cloud infrastructure is the lane.
The permissions on the role are the permissions the deploy already uses, narrowed where the key was wider than the job. A key that could * is not copied into the role as * because that is what the job "might" need. We watch one real release, add the actions it actually calls, and stop. An allowlist built from a guess is how the role becomes the key with better marketing.
What happens to the key
Removing the variable is not the same as deleting the key. We do both for the pipeline in scope, once the role deploy has succeeded. Deletion is in IAM. A variable removed while the key still exists is a leak that has not been closed. A key deleted while a second job still injects it is an outage. The inventory of injections comes first. It is usually shorter than people fear, and longer than the one variable everyone remembers.
Local deploys from a laptop are the polite objection. Someone wants the key because terraform apply from their machine is the real pipeline. Then the laptop is the pipeline, and it is in scope. They assume a role. If the team refuses to stop applying from laptops, we still will not store a key in CI "for the humans." The humans get a role session. CI gets a role. Nobody gets a static key because the habit is old.
Secrets that are not AWS keys stay. A registry token, an app secret, a signing key for a store. Those are not this engagement. We do not sweep them into a speech about zero trust and leave the AWS key in place. The AWS key is the job. Other secrets get named so you know we saw them and left them.
Rollback is a role fix, not a key restore. If the new role is missing a permission, we add the permission and rerun. Restoring the key is available only as a dated exception you approve during an active incident, and the exception includes the day the key will be deleted again. An exception with no day is the old design.
The release after we leave
You should be able to ship without us and without the key. That is the test we run before we call it done. A person on your team starts the pipeline. CloudTrail shows the role. The variable that held the key is gone. The key id is gone from IAM. The trust still names the branch.
We leave a short note of what the role can do, because the next person will be asked to widen it on a Friday. The note is the thing they widen against. A role with no description becomes * the first time a deploy fails at 6 p.m. We would rather the failure stay loud.
What we will not include is a new CI product, a new cluster, or a rewrite of the application. If the pipeline is too brittle to take a credential change, we will say that. Sometimes the honest delivery is a thinner workflow that only deploys, beside the old one, with the key removed from the old one once the thin one works. We do not rebuild your release culture to change a credential. A content platform's deploys stayed boring on purpose. Boring is the point. The role is a change in how the deploy authenticates, not a new way of life.
Frequently Asked Questions
### Do we have to change CI products? No. We use the product that already runs your deploy, if it can issue an identity token AWS will trust. If it cannot, we tell you. We do not hide a static key inside the product you hope to leave someday.
### Will every repository be converted in this engagement? The pipeline you name first is the delivery. Other pipelines using the same pattern can be included when the list is agreed up front. A surprise sweep of every repo is not the plan, because one bad trust takes down more than one release.
### Can developers keep a key for local applies? No. Local applies assume a role. CI assumes a role. A key for local use is the same long-lived credential in a different pocket. If laptops are how you deploy, those laptops are in scope.
### What do you need from us before the first change? The pipeline that deploys, the branch that should be allowed to, and a window for one real release on the role before the key is deleted. We do not delete the key on the same afternoon we first see the workflow, unless you already have that proof.
Book a technical call. 907-841-8407. contact@rutagon.com.