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 without access are able perform bulk Add/Remove Assets using API #18269

Open
Prajwal214 opened this issue Oct 15, 2024 · 0 comments
Open
Assignees
Labels
backend bug Something isn't working

Comments

@Prajwal214
Copy link
Contributor

Affected module
Does it impact the UI, backend or Ingestion Framework?
-- Backend

Describe the bug
A clear and concise description of what the bug is.
-- Users who do not have the necessary access permissions are able to perform bulk add or remove operations on assets through the API.

To Reproduce

Screenshots or steps to reproduce

curl -X PUT "http://localhost:8585/api/v1/teams/Test_Team1/assets/add" \
 -H "accept: application/json"\
 -H "authorization: Bearer Auth Token"\
 -H "content-type: application/json" \
 -d '{"assets":[{"deleted":false,"description":"","displayName":"Prajwal","fullyQualifiedName":"","href":"http://localhost:8585/api/v1/users/612b464b-99c5-4abe-b2a6-ed3987bba66b","id":"612b464b-99c5-4abe-b2a6-ed3987bba66b","inherited":false,"name":"prajwal1","type":"user"}]}' \

Expected behavior
A clear and concise description of what you expected to happen.
-- only the users with Access should be able to perform the action.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8] OM v1.5.6
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
Add any other context about the problem here.

@Prajwal214 Prajwal214 added bug Something isn't working backend labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants