Skip to content

enforce resource ownership and scope DB reads by cluster/pool#1056

Open
boddumanohar wants to merge 1 commit into
mainfrom
v2-api-enforce-resource-ownership
Open

enforce resource ownership and scope DB reads by cluster/pool#1056
boddumanohar wants to merge 1 commit into
mainfrom
v2-api-enforce-resource-ownership

Conversation

@boddumanohar
Copy link
Copy Markdown
Member

At the moment, a caller with a valid token can supply a pool ID from a different cluster and get results.

The changes here fixes this by adding checks in the FastAPI dependencies to make the following ownership present in the URLs is always followed.

Cluster -->  StoragePool --> Volume
                         -->  Snapshot

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.

1 participant