Skip to content

API Endpoints

The ForwardAuth endpoint. Traefik sends every registry request here for authentication.

Traefik forwards the original request’s headers. trupu reads the Authorization header.

Supported schemes:

  • Bearer <oidc-token> — used by GitHub Actions directly
  • Basic base64(username:token) — used by docker login (the password is the OIDC token)

200 OK — authenticated

{
"status": "authenticated",
"publisher": "my-org/my-app:publish.yml"
}

Response headers set:

  • X-Trupu-Repository
  • X-Trupu-Workflow
  • X-Trupu-Ref

401 Unauthorized — no credentials

{ "error": "missing authorization header" }

Response headers set:

  • Www-Authenticate: Basic realm="trupu"

403 Forbidden — invalid token or untrusted publisher

{ "error": "publisher \"my-org/my-app:other.yml\" is not trusted" }

Health check endpoint.

200 OK

{ "status": "ok" }