-
|
I am puzzled as to how POSTs to the collections endpoint of the API are being blocked. I was testing things out using the docker compose in the repo and I cant figure out how the transactions endpoints are being blocked by stac-auth-proxy when you go directly to the API, bypassing the proxy. The API is just using the bog-standard stac-fastapi-pgstac image and I don't see any configuration in the compose file that appears to prevent this I also commented out all the services except the DB and the API, so I know that it doesn't have anything to do with them. How does this work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hmm, that would surprise me. My guess is that the Transactions Extension is not enabled. I see that earlier this year, stac-fastapi-pgstac disabled the transactions extension by default (stac-utils/stac-fastapi-pgstac#236). I've just now committed a change (73b8156) to enable the transactions extension within our Docker Compose file. Perhaps that would change things for you? As a sanity check, you should see Additionally, if you navigate to the API docs (
|
Beta Was this translation helpful? Give feedback.
-
|
I see the issue. When I launch the API in a container, I have this env var set: ENV ENABLE_TRANSACTIONS_EXTENSIONS=TRUE To be clear, stac-auth-proxy was doing what I wanted it to do. I just thought it was somehow locking down the API as well and I couldn't figure out how. |
Beta Was this translation helpful? Give feedback.

Hmm, that would surprise me. My guess is that the Transactions Extension is not enabled. I see that earlier this year, stac-fastapi-pgstac disabled the transactions extension by default (stac-utils/stac-fastapi-pgstac#236). I've just now committed a change (73b8156) to enable the transactions extension within our Docker Compose file. Perhaps that would change things for you?
As a sanity check, you should see
https://api.stacspec.org/v1.0.0/ogcapi-features/extensions/transactionin thec…