-
Notifications
You must be signed in to change notification settings - Fork 7
feat(stac)!: experimenting with stac auth proxy configure_app #531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Anthony Lukach <anthonylukach@gmail.com>
Co-authored-by: Anthony Lukach <anthonylukach@gmail.com>
…emove starlette cramjam
…-collections-lookup
Can we remove the `TenantContext` class in favor of simplicity? It doesn't seem to be consumed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really exciting! Great work everyone 🎉
### What? Cache collection lookups in the items filter factory ### Why? When we fetch a tenant's collection to build an items filter, we should cache that value to reduce pressure on the API ### Testing? - Relevant testing details
stac_api/runtime/src/config.py
Outdated
| return _TilesApiSettings() | ||
|
|
||
|
|
||
| TENANT_ITEM_LINK_TEMPLATES = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is no longer used?
… default for custom_host to None
|
You can view the tenant work on SIT at https://sit.openveda.cloud/api/stac/test-tenant/collections @anayeaye |
|
At the risk of complicating this feature, I want to verify: is it confirmed that a collection will never be part of multiple tenants? Based on this PR, that seems to be the decision |
Yes that is correct @alukach |
|
@botanical @alukach do you have any idea where this extra
|
refactor: eliminate need to pass in root_path into middleware (root path is available on request)
…ath is available on request)
99ab31d to
6a5556a
Compare
|
@alukach @botanical the root path changes seem to be rendering the expected titiler links in test.openveda.cloud/api/stac. Also the stac api referential links all seem to still work as expected for requests with and without tenant prefixes in the stac api url. |


Issue
#532
What?
dashboard:tenantfields.dashboard:tenantTesting?
STAC Browser: https://test.openveda.cloud/
collections: https://test.openveda.cloud/api/stac/collections
Test-Tenant Collections: https://test.openveda.cloud/api/stac/test-tenant/collections
Customized landing page: https://test.openveda.cloud/api/stac/test-tenant/ and https://test.openveda.cloud/api/stac/test-tenant both work
Test-Tenant on Items: https://test.openveda.cloud/api/stac/test-tenant/collections/barc-thomasfire/items
Test-Tenant on SIT: https://sit.openveda.cloud/api/stac/test-tenant/collections