The API Lost Its Database
After a storage migration the campus API answers 503 on every request. Reconnect it to its database without running it as root and without losing a single course.
- Advanced
- 20 min
- Challenge
- Linux
- Permissions
- Timed
Overview
Last night's storage migration moved the campus API's database. This morning curl localhost:8000/health answers 503 and the course catalogue is empty for everyone.
Bring the API back: its health check must pass and /courses must list the real catalogue. It must keep running as its own campusapi service account — running it as root is not a fix — and the database must keep every course it had. The API's own error message is a good place to start.
What done looks like
- Make the API's health check pass
- Serve the real course catalogue from /courses
- Keep the service unprivileged and the data intact
Before you start
- Files, Permissions & Ownership first, or equivalent Linux familiarity
- Timed challenge: failed checks return no hints