Sign inSign up free

1097. Cut a CI User Down to One Prefix

medium 20 XP ~12 minHands-on lab

The IAM user courier-api-ci uploads build reports to the bucket summit-artifacts, under the prefix courier-api/. Its access key is in the pipeline, and an audit found that the key can do anything in S3: read other teams' artifacts, delete buckets, create new ones.

Task

  • courier-api-ci can upload (PutObject) and download (GetObject) objects under summit-artifacts/courier-api/.
  • It cannot read or write anything else: not the other prefixes in summit-artifacts, and not other buckets.
  • It cannot delete objects or buckets, or create buckets.
  • Keep the user and its access key (the pipeline uses it).

This machine has an AWS-style account (an emulator: nothing is billed). IAM policies are enforced. Your AWS CLI is signed in as the account's administrator.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of AWS Hands-On. Next step: Rotate the CI Key Without Breaking CI

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.