Restrict image or STAC Item URL #529
philvarner
started this conversation in
General
Replies: 1 comment
-
Production stack should implement auth, but this is IMO out of the scope of titiler.
This can totally be achieved with a custom |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see one issue with production TiTiler deployments is that they are entirely open to the world, and anyone can use them to tile any arbitrary image or STAC Item URL. The only way to restrict this (somewhat) is with a CORS header (to prevent embedding in a browser without using CORS plugin to turn off those protections). The configuration for S3 Buckets grants permissions on non-public S3 buckets, but doesn't restrict tiling of data in public ones AFAIK.
The behavior I would like to propose here is a configuration like:
That restricts the cog and stac tiling to only working with
url
parameter values that started with any of those. This would at least restrict the data that could be tiled, for example, my titiler instance would be configured to only tile STAC items from my STAC API.Beta Was this translation helpful? Give feedback.
All reactions