Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ services:
"^/collections/([^/]+)/items$":[["POST","stac:write"]],
"^/collections/([^/]+)/items/([^/]+)$":[["PUT","stac:write"],["PATCH","stac:write"],["DELETE","stac:write"]],
"^/collections/([^/]+)/bulk_items$":[["POST","stac:write"]]}
# # Row-level authorization (chapter 7): hide `private-<owner>-*` records from
# # everyone but the JWT whose `owner` claim matches.
# - ITEMS_FILTER_CLS=workshop_filters:TenantFilter
# - ITEMS_FILTER_KWARGS={"field":"collection"}
# - COLLECTIONS_FILTER_CLS=workshop_filters:TenantFilter
# - COLLECTIONS_FILTER_KWARGS={"field":"id"}
# Row-level authorization (chapter 7): hide `private-<owner>-*` records from
# everyone but the JWT whose `owner` claim matches.
- ITEMS_FILTER_CLS=workshop_filters:TenantFilter
- ITEMS_FILTER_KWARGS={"field":"collection"}
- COLLECTIONS_FILTER_CLS=workshop_filters:TenantFilter
- COLLECTIONS_FILTER_KWARGS={"field":"id"}
volumes:
# `PYTHONPATH=/app/src` in the proxy image, so this is importable as-is.
- ./docs/workshop_filters.py:/app/src/workshop_filters.py:ro
Expand Down