Welcome to the expert level of the Building CloudHaven challenge adventure!
The Challenge
After the Modular Metropolis refactoring, CloudHaven flourished. But with growth came risk. One night, a rogue change slipped through unnoticed and nearly brought down the North Market’s trading vaults. The Council was furious — how could this happen without anyone noticing?
The Guild Master summoned you urgently. “We need guardians,” she said, “automated sentinels that watch over our infrastructure day and night. They must catch dangerous changes before they reach the city, detect when reality drifts from our blueprints, and sound the alarm when threats appear.”
A previous engineer began building these Guardian Protocols using GitHub Actions, but was reassigned before completing them. The workflows exist, but they’re incomplete and broken. Your mission: bring the Guardian Protocols online and protect CloudHaven from chaos.
What You’ll Learn
-
GitHub Actions workflows for infrastructure automation
-
Infrastructure drift detection with
tofu plan -
Security scanning with Trivy
-
Running integration tests with service containers
-
The TF-via-PR action for plan/apply workflows
Objective
By the end of this level, your workflows should:
-
Detect infrastructure drift
-
Run
tofu planto check for changes -
Create a PR when drift is found
-
-
Validate pull requests
-
Run
tofu planand comment results on the PR -
Run tests against the mock GCP API
-
Scan for security vulnerabilities and comment results on the PR
-
Fail on critical or high severity vulnerabilities
-
-
Apply infrastructure automatically
- Apply changes when a PR is merged to main
All three workflows must have succeeded at least once.
Toolbox
Your Codespace comes pre-configured with the following tools to help you solve the challenge:
-
tofu: The OpenTofu CLI for infrastructure provisioning -
gcp-api-mock: A mock GCP API running locally to simulate cloud resources without real cloud costs -
GitHub Actions: The workflows you’ll be fixing are in
.github/workflows/
Note: The mock API only supports Cloud Storage and Cloud SQL, and only the functions needed for this challenge have been properly tested.
Deadline
Wednesday, 4 February 2026 at 23:59 CET
You can still complete the challenge after this date, but points will only be awarded for submissions before the deadline.
Level:
Expert
Get Started
Discussion
Share your solutions and questions in this thread.
Good luck, and we can’t wait to see your solutions!



