Skip to content

Support signing collections #41

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

Merged
merged 2 commits into from
Jul 14, 2022
Merged

Support signing collections #41

merged 2 commits into from
Jul 14, 2022

Conversation

TomAugspurger
Copy link

@TomAugspurger TomAugspurger commented Jul 14, 2022

Adds support for signing collections, similar to items, by signing its assets.

This is useful for things like geoparquet-items on collections like https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a, or zero-item collections like https://planetarycomputer.microsoft.com/api/stac/v1/collections/gridmet, which only have collection-level assets.

One issue (maybe blocker?) is that we would try to sign the thumbnail asset in ai4edatapublicassets. I've added a special case to skip that storage account: https://github.com/microsoft/planetary-computer-sdk-for-python/pull/41/files#diff-8db575884228ad7de2ce4dfdee5da40298e0dc951de875d31438feee8bc71950R134. @lossyrob are you OK with that special case?

Tom Augspurger added 2 commits July 14, 2022 13:23
Adds support for signing collections, similar to items, by signing
its assets.
@lossyrob
Copy link
Contributor

@TomAugspurger I can't think of another way around that issue - I would be worried though about other asset types that specifically shouldn't be signed. If we end up with another URL that we want to avoid signing, perhaps we can creating a settings-driven mechanism for a list of netloc that shouldn't be signed. For now though I think this works fine.

@TomAugspurger TomAugspurger merged commit f7b7cb4 into main Jul 14, 2022
@TomAugspurger TomAugspurger deleted the feature/sign-collections branch July 14, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants