At the public catalog endpoint any logged-in user can create, change or delete collections

Open
#215 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
helm, python
Domain
security

Research direction

Start with services/proxy-policy, infra/helm/stac-higher/templates/catalog-config.yaml, and tests/integration/proxy-enforcement.test.mjs; read decision records 0002 and 0015 for the existing collection-write behavior. Add an integration case showing a member's collection write is refused, with operator/admin role and group ownership enforced. If implementation is deferred, record the issue in docs/ISSUES.md; the reported behavior is marked not independently re-verified.

Written by the indexing model from the issue text.

Description

bug

Found in the 2026-11-29 whole-repo review. Reported by a reviewer from the config, two design records and an integration test; not independently re-verified.

Problem

The catalog's auth proxy config (infra/helm/stac-higher/templates/catalog-config.yaml, the private-endpoints list) requires a login for collection writes but no role, and the custom policy plugin (services/proxy-policy) only evaluates item paths. Decision records 0002 and 0015 note that an ordinary member can write collections, and tests/integration/proxy-enforcement.test.mjs pins that behaviour. It is not listed in docs/ISSUES.md.

How it goes wrong

A member of any group calls DELETE /collections/<x> directly on the proxy. This bypasses the app's audit log, its ownership rules, and the clean-up of stored files (which are left orphaned).

Suggested fix

Extend the policy plugin (or add a small middleware) to require the operator/admin role plus group ownership for collection writes. Until then, record it in docs/ISSUES.md.

Acceptance criteria

  • Integration test: a member's collection write at the proxy is refused
  • Related: #34 (per-collection read visibility at the same proxy)
Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.