Sign inSign up free

1096. Close a Public Bucket Without Breaking the App

medium 20 XP ~12 minHands-on lab

A security scanner flagged the bucket reviews-exports-harvest: its objects can be downloaded by anyone, without credentials. The reviews service reads the same exports through the IAM role reviews-reader, and it must keep working.

Task

  • Nobody without AWS credentials can read objects from reviews-exports-harvest.
  • The bucket refuses public bucket policies and public ACLs from now on, even if someone adds one later.
  • The role reviews-reader can still download objects from the bucket.
  • Keep the bucket and its objects.

This machine has an AWS-style account (an emulator: nothing is billed). Your AWS CLI is already 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: The Website That Downloads Itself

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.