From c0f9a1c5f087532f98140fc8d6553af6c4213277 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Sun, 30 Aug 2026 07:18:06 +0900 Subject: [PATCH] fix: uncomment stac-auth-proxy filters This was an on-the-fly fix we did during our workshop --- docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 558beee..d62b9de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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--*` 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--*` 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