archive: records Omeka marks public are readable by anyone on the internet through /api, while the site pages are behind sign-in #1968

Closed
opened 2026-09-28 16:49:28 +00:00 by ben · 1 comment
Owner

What

On a deployed Community archive (Omeka S), every record Omeka marks public is readable by anyone on the internet through https://archive.<apex>/api/..., with no community sign-in.

The site pages for the same records are gated: /s/archive/item/7 answers the sign-in redirect. So a steward who sees the sign-in wall on the site reasonably reads "public" as "visible to members". It means "visible to the world".

Evidence (whakatohea-demo, 2026-09-28, from outside the mesh, no credentials)

Request Answer
GET /api/items?per_page=50 200, 12 records with full metadata (every record not marked private)
GET /api/users refused by Omeka ("Permission denied")
GET /s/archive/item/7 302 to the community sign-in
GET /files/asset/<hash>.png 302 to the community sign-in

The 12 records are example content seeded that day; no real holding was exposed.

Why

/api/* is one of the archive route's exempt paths (client-protocol paths pass the front door without the gate, identity header stripped, #1167). Omeka's own API then serves public resources to anonymous callers, as upstream designs it.

Data collections (Grist) has the same exempt path but is not affected: anonymous callers get [] / 403, and only a Bearer API key reads anything.

Decision needed (Ben)

This is a question of who the front door trusts, so it is not an agent's call. Options:

  1. Gate the archive's /api unless the request carries an Omeka key (key_identity + key_credential). Anonymous API reads stop; keyed clients and the health check keep working.
  2. Gate the archive's /api entirely and move the health check to the loopback port.
  3. Keep it open and say so in the product: the panel and the archive's own copy tell stewards that a public record is public to the internet.

Until ruled, the hazard for a real community is a steward publishing a record "to members" that the world can read.

## What On a deployed Community archive (Omeka S), every record Omeka marks **public** is readable by anyone on the internet through `https://archive.<apex>/api/...`, with no community sign-in. The site pages for the same records are gated: `/s/archive/item/7` answers the sign-in redirect. So a steward who sees the sign-in wall on the site reasonably reads "public" as "visible to members". It means "visible to the world". ## Evidence (whakatohea-demo, 2026-09-28, from outside the mesh, no credentials) | Request | Answer | |---|---| | `GET /api/items?per_page=50` | 200, 12 records with full metadata (every record not marked private) | | `GET /api/users` | refused by Omeka ("Permission denied") | | `GET /s/archive/item/7` | 302 to the community sign-in | | `GET /files/asset/<hash>.png` | 302 to the community sign-in | The 12 records are example content seeded that day; no real holding was exposed. ## Why `/api/*` is one of the archive route's exempt paths (client-protocol paths pass the front door without the gate, identity header stripped, #1167). Omeka's own API then serves public resources to anonymous callers, as upstream designs it. Data collections (Grist) has the same exempt path but is not affected: anonymous callers get `[]` / 403, and only a Bearer API key reads anything. ## Decision needed (Ben) This is a question of who the front door trusts, so it is not an agent's call. Options: 1. **Gate the archive's `/api` unless the request carries an Omeka key** (`key_identity` + `key_credential`). Anonymous API reads stop; keyed clients and the health check keep working. 2. **Gate the archive's `/api` entirely** and move the health check to the loopback port. 3. **Keep it open** and say so in the product: the panel and the archive's own copy tell stewards that a public record is public to the internet. Until ruled, the hazard for a real community is a steward publishing a record "to members" that the world can read.
Author
Owner

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.
ben 2026-10-21 21:53:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1968
No description provided.