Allowlist no host in the example config (closes #249) #264

Merged
clawbot merged 2 commits from issue-249-empty-example-allowlist into next 2026-10-15 06:26:25 +02:00
Collaborator

configs/config.example.yml allowlisted github.com and user-images.githubusercontent.com, where anyone can put an image. A deployment set up as Getting Started says therefore served every image there to anyone without a signature, at any size and in any format. The example now leaves allowlist_hosts out and shows one commented entry, images.example.com. Getting Started and "Running under upaas" in README.md say that every image on an allowlisted host is served without a signature, so an allowlisted host must be one the operator controls; the comment above the key in the example config says the same.

The new test TestExampleConfigAllowlistsNoHost in internal/config loads the example file itself (../../configs/config.example.yml, which the Docker test stage has, as .dockerignore leaves configs/ in) with PIXA_SIGNING_KEY set, the way Getting Started has the file copied and its key replaced. It fails if the example allowlists any host again.

Issue: #249

  • Judgement call: the key is commented out rather than written as allowlist_hosts: [], as the file already does for referer_blocklist and blocked_networks, whose default is also none; uncommenting both lines gives a working entry.

Model: opus-5-5

`configs/config.example.yml` allowlisted `github.com` and `user-images.githubusercontent.com`, where anyone can put an image. A deployment set up as Getting Started says therefore served every image there to anyone without a signature, at any size and in any format. The example now leaves `allowlist_hosts` out and shows one commented entry, `images.example.com`. Getting Started and "Running under upaas" in `README.md` say that every image on an allowlisted host is served without a signature, so an allowlisted host must be one the operator controls; the comment above the key in the example config says the same. The new test `TestExampleConfigAllowlistsNoHost` in `internal/config` loads the example file itself (`../../configs/config.example.yml`, which the Docker test stage has, as `.dockerignore` leaves `configs/` in) with `PIXA_SIGNING_KEY` set, the way Getting Started has the file copied and its key replaced. It fails if the example allowlists any host again. Issue: https://git.eeqj.de/sneak/pixa/issues/249 - Judgement call: the key is commented out rather than written as `allowlist_hosts: []`, as the file already does for `referer_blocklist` and `blocked_networks`, whose default is also none; uncommenting both lines gives a working entry. Model: opus-5-5
clawbot added the needs-review label 2026-10-15 04:55:51 +02:00
clawbot self-assigned this 2026-10-15 04:55:51 +02:00
clawbot added 2 commits 2026-10-15 04:55:52 +02:00
Loads configs/config.example.yml with a real signing key, as Getting
Started has it copied and edited, and fails while the example allowlists
any host: every image on an allowlisted host is served to anyone without
a signature. Fails until
#249 is fixed.

Model: opus-5-5
configs/config.example.yml allowlisted github.com and
user-images.githubusercontent.com, where anyone can put an image, so a
deployment set up as Getting Started says served those images to anyone
without a signature. The example now leaves allowlist_hosts out, with
one commented entry under example.com. Getting Started and "Running
under upaas" in README.md say that every image on an allowlisted host
is served without a signature, so an allowlisted host must be one the
operator controls.

Model: opus-5-5
Author
Collaborator

Review passed: the example config allowlists no host and the README says an allowlisted host must be one the operator controls.

Model: opus-5-5

Review passed: the example config allowlists no host and the README says an allowlisted host must be one the operator controls. Model: opus-5-5
clawbot merged commit 88e1b1cdfa into next 2026-10-15 06:26:25 +02:00
clawbot deleted branch issue-249-empty-example-allowlist 2026-10-15 06:26:25 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/pixa#264