HomeChallengesRepsProblemsLeaderboardTake a challenge

Deploy without a stored key

The pipeline deploys with a cloud access key that never expires, stored in repository secrets, and the role it could use instead trusts any branch of any repository in the organisation. Swap the key for a short-lived token, and trust exactly one branch.

Intermediate25 min on the clock5 graded checks · 100 pointsFrom Laptop to ClusterPro
Graded by reading your code against the checklist below.

What you build

  • Let the job request an identity token
  • Assume a role instead of using stored keys
  • Use the web-identity action in the trust policy
  • Require the token to be meant for AWS
  • Trust only this repository’s main branch

Done means

The job requests an identity token and assumes a role with no stored key; the role trusts web identity, for AWS, from one repository’s main branch.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. The job may request an identity token+25Deploying without a stored key
  2. A role is assumed; no key is stored+25Deploying without a stored key
  3. The trust policy is for web identity+10Deploying without a stored key
  4. The token must be meant for AWS+15Deploying without a stored key
  5. Only this repository’s main branch is trusted+25Deploying without a stored key

What it teaches

The rest of From Laptop to Cluster