Add forward-auth security integration tests #38

Open
opened 2026-07-24 10:51:45 +00:00 by frank · 0 comments
Owner

Goal

Add automated tests verifying that the example deployment enforces its security assumptions.

Requirements

Test at least:

  • unauthenticated access
  • authorized access
  • unauthorized access
  • missing identity headers
  • forged identity headers
  • direct Ghost access bypassing Caddy
  • removal of external access

Acceptance criteria

  • Authorized users can reach Ghost Admin.
  • Unauthenticated users are rejected.
  • Unauthorized users are rejected.
  • Forged headers do not grant access.
  • Ghost cannot be reached directly.
  • Tests run against the same Docker Compose setup used in the documentation.
  • Tests can run from a clean checkout.
## Goal Add automated tests verifying that the example deployment enforces its security assumptions. ## Requirements Test at least: * unauthenticated access * authorized access * unauthorized access * missing identity headers * forged identity headers * direct Ghost access bypassing Caddy * removal of external access ## Acceptance criteria * [ ] Authorized users can reach Ghost Admin. * [ ] Unauthenticated users are rejected. * [ ] Unauthorized users are rejected. * [ ] Forged headers do not grant access. * [ ] Ghost cannot be reached directly. * [ ] Tests run against the same Docker Compose setup used in the documentation. * [ ] Tests can run from a clean checkout.
frank added this to the Forward Auth mode milestone 2026-07-24 10:53:01 +00:00
Sign in to join this conversation.
No description provided.