Skip to content
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

Users can mount blobs without having read access to the from repository #1286

Closed
lubosmj opened this issue May 19, 2023 · 0 comments · Fixed by #1340
Closed

Users can mount blobs without having read access to the from repository #1286

lubosmj opened this issue May 19, 2023 · 0 comments · Fixed by #1340
Assignees

Comments

@lubosmj
Copy link
Member

lubosmj commented May 19, 2023

We verify just the access to the created to repository (

if _contains_accessible_actions(decoded_token, scope):
) and still allow performing blob mount without verifying read permissions to the from repository (
return (request.query_params.keys()) == {"from", "mount"}
).

The fix will need to be backported.

@lubosmj lubosmj added this to the 2.16 milestone May 26, 2023
@pulpbot pulpbot moved this to Free to take in RH Pulp Kanban board Jun 1, 2023
@lubosmj lubosmj self-assigned this Jul 20, 2023
@pulpbot pulpbot moved this from Free to take to In Progress in RH Pulp Kanban board Jul 20, 2023
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 20, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286
@pulpbot pulpbot moved this from In Progress to Needs review in RH Pulp Kanban board Jul 20, 2023
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 21, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 21, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 21, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 21, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286
lubosmj added a commit that referenced this issue Jul 24, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes #1286
patchback bot pushed a commit that referenced this issue Jul 24, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes #1286

(cherry picked from commit 6658b7e)
@pulpbot pulpbot moved this from Needs review to Done in RH Pulp Kanban board Jul 24, 2023
lubosmj added a commit to lubosmj/pulp_container that referenced this issue Jul 24, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes pulp#1286

(cherry picked from commit 6658b7e)
ipanova pushed a commit that referenced this issue Jul 24, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes #1286

(cherry picked from commit 6658b7e)
ipanova pushed a commit that referenced this issue Jul 24, 2023
Before this commit, the registry checked one scope, ignoring other
scopes that could relate to blob mounting operations. Due to that,
users without sufficient permissions could mount blobs from other
users unauthorized.

closes #1286

(cherry picked from commit 6658b7e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants