iamops.dev Search
Argo on X RSS feed
ENEnglish

News Practitioner · 6 min

For the engineers who run CI pipelines and AWS accounts that still call a privileged access API with a stored key, and who need to know which team does which step.

Okta Privileged Access drops the static key for AWS and CI workloads

Okta Privileged Access now takes AWS IAM roles and prebuilt CI connections as workload identity. How to replace static keys, and who owns each step.

Headline card with the tag GENERALLY AVAILABLE, the hook Ditch the static key in CI, and the Okta logo.
TL;DRWorkload identity is generally available in Okta Privileged Access: a…
  • Workload identity is generally available in Okta Privileged Access: a workload proves who it is with its own platform credential and gets a short-lived token back, see how the exchange works.
  • Amazon Web Services (AWS) workloads can use their existing AWS Identity and Access Management roles, and Bitbucket Pipelines, Octopus Deploy and Terraform Cloud join GitHub Actions and GitLab continuous integration (CI) as prebuilt connections.
  • Okta's post does not name owners, so the split of work below is a suggestion for a team with a security function and a DevOps function.
  • Replace one key first, run the new path next to it, and then remove the old key.

A privileged access API key is the credential every pipeline needs and nobody wants to rotate. It sits in a CI variable or on a disk. Whoever reads it can act as the workload until someone remembers to rotate it. The industry calls this the secret zero problem, because the first secret has to be stored somewhere before anything else can be protected.

Okta’s post from 23 November describes a different path. The workload presents the identity its platform already gives it, and Okta Privileged Access issues a short-lived token in return. Workload identity is generally available now, and AWS support came with the same release.

How the exchange works#

The flow has three steps on the workload side. The workload asks its platform for a signed JWT. It presents that token to Okta Privileged Access, which checks it against a Workload Connection that an admin configured in advance. If the check passes, Okta issues a short-lived access token, or a Secure Shell (SSH) certificate for SSH use. The workload then uses that token to fetch the secret or certificate it needs.

Sequence: the CI job gets a signed token from its platform, presents it to Okta Privileged Access, which checks the Workload Connection and returns a short-lived token, and the job then uses the target.
No key in the job. The check happens in Okta, against the connection an admin set up.

Two details decide how you design this. The trust lives in the Workload Connection, so the check is only as strict as the connection you configure. And the token is short-lived, so a token copied from a log is a smaller problem than a key copied from a variable.

What changes for AWS workloads#

The new part is AWS. Workloads running in AWS can authenticate to Okta Privileged Access with their existing AWS IAM credentials, and Okta issues a scoped token in return. Okta says admins get visibility into which AWS role performed which action. That record is the main reason to pick this path over a shared key. A shared key hides the caller, and a role name does not.

Okta’s post says trust is set up in the Workload Connection, so review that connection like any other trust relationship before the first job uses it. The post does not say how role conditions are written, so check that in the product documentation.

Prebuilt CI connections#

Okta also ships prebuilt connections for CI and infrastructure-as-code tools, so you do not write a custom OpenID Connect setup for them. The list in the post is:

  • Bitbucket Pipelines (new)
  • Octopus Deploy (new)
  • Terraform Cloud (new)
  • GitHub Actions
  • GitLab CI

For GitHub Actions and GitLab CI, the change is in the connection, not in the pipeline logic. The pipeline still needs to request its platform token and call the target through Okta.

Who owns each step#

The post does not assign owners, so this split is the one I would use. DevOps drafts the trust: it names the pipeline or AWS role, the repository or branch it runs from, and the target it needs. Security activates it: it reviews that draft, creates or approves the Workload Connection, and decides which privileged targets it may reach. The target’s owner reads the access records after the first runs.

  • DevOps drafts the connection request and adds the platform token request to the pipeline or the AWS side.
  • Security reviews the draft, activates the Workload Connection and sets its conditions.
  • DevOps removes the key from the variable store once the new path has run.
  • The target’s owner checks the access records and confirms the old key is revoked.

Write those four owners into the change ticket. The last step is the one that gets skipped most often, because the old key keeps working until someone revokes it.

A first rollout#

  1. Pick one pipeline that already uses a key, and one target it reaches.
  2. Create a Workload Connection for that pipeline only. Test that a request from another repository or AWS role is refused.
  3. Run the pipeline on the new path next to the old key for a few runs, and compare the access records.
  4. Revoke the old key once the records show the new path doing the work.

Keep the rollout to one pipeline until the records are clear. The second pipeline is usually quicker, because the connection is already understood.

Open questions#

The post is the only source for this article, so every claim here is Okta’s. The roadmap items are not generally available: support for Kubernetes pods and service accounts, software development kits and sidecars for secrets, a high-concurrency token exchange endpoint, and just-in-time ephemeral credentials. Okta says its roadmap is not a commitment, so plan around what ships.

Open question for your team: who may change a Workload Connection once it is live? Okta’s post does not say, so check the admin roles in your own tenant before you go live.

For the same trust idea on another cloud, see GitHub Actions to Azure with workload identity federation. The workload identity news piece covers how GitHub’s subject claim changed, which matters for any trust you write today.

Sources#

Discuss this on X or LinkedIn

Follow on X

New posts by email

One email a week with new posts and labs. Unsubscribe anytime.

Your address is stored with Kit, which sends the emails. Details

Related research and labs

Type to search every page. Use the arrow keys to move through the results.

    Open the full search page