Skip to content

feat: add USER_STAC_COLLECTION_ID_REGISTRY for custom collection IDs#95

Open
hrodmn wants to merge 2 commits intomainfrom
feat/custom-collection-ids
Open

feat: add USER_STAC_COLLECTION_ID_REGISTRY for custom collection IDs#95
hrodmn wants to merge 2 commits intomainfrom
feat/custom-collection-ids

Conversation

@hrodmn
Copy link
Copy Markdown
Collaborator

@hrodmn hrodmn commented Apr 14, 2026

This is a temporary setup to enable certain MAAP users to publish to certain named STAC collections. To authorize one or more users to publish to a collection or a wildcard prefix we will add an entry to the USER_STAC_COLLECTION_ID_REGISTRYe.g. {"collection-id": ["user1", "user2"]}. I don't expect this to get used for long but it will unblock the TROPESS use-case while we sort out the architecture for the JPL-managed collection id reservation process.

Resolves #91

@hrodmn hrodmn self-assigned this Apr 14, 2026
@hrodmn hrodmn requested a review from jjfrench April 14, 2026 19:37
@hrodmn hrodmn deployed to synthtest April 14, 2026 19:37 — with GitHub Actions Active
from stac_pydantic.item import Item


class TestIsAuthorized:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly a parameterized test scenario

Copy link
Copy Markdown
Member

@jjfrench jjfrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Is this expected to be a short-term fix for the collection in discussion or are we going to maintain an authorization list?

@hrodmn
Copy link
Copy Markdown
Collaborator Author

hrodmn commented Apr 14, 2026

Is this expected to be a short-term fix for the collection in discussion or are we going to maintain an authorization list?

It is temporary. We will defer collection id management to the JPL side soon.

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.

Feature: User-Controlled Collection IDs for DPS STAC

2 participants