Skip to content
Timed challenge

The Receipts Went Nowhere

Since Friday's config push every Kestrel order fails with 'Permission denied', yet the receipts directory is owned by the right account and the disk has room.
  • Intermediate
  • 20 min
  • Challenge
  • Kestrel
  • Configuration
  • Linux
  • Timed

Overview

Friday's configuration push restarted Kestrel's orders API. Since then every new order fails with 503 could not write the receipt: Permission denied. Browsing works. Simran has already checked the obvious: /var/lib/kestrel/receipts belongs to kestrel, and the disk has plenty of room.

Get orders accepted again, with each receipt written where Kestrel keeps them. The API must keep running as its own kestrel account, and its configuration must stay private. Running it as root or opening up permissions is not a fix.

What done looks like

  • Find why a correctly-owned directory still produced Permission denied
  • Get orders and their receipts written where Kestrel keeps them
  • Keep the service unprivileged and its configuration private

Before you start

  • Drill: Kestrel On Call, or equivalent Linux, nginx and PostgreSQL familiarity
  • Timed challenge: failed checks return no hints

Learn the skills first