OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Users without access can fetch & perform patch on the feed

Open Prajwal214 opened this issue 2 years ago • 1 comments

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.

-- The user does not have View/Edit access to the feeds/threads, and there is no organization policy added to grant such access. However, the user is still able to fetch feeds/threads using the API endpoint /api/v1/feed which should not be possible under the current restrictions. User is also able to patch the threads/feeds using PATCH API call

To Reproduce

Screenshots or steps to reproduce

Before the Patch: image

Patch call -

curl -X PATCH "http://localhost:8585/api/v1/feed/<threadID>” \
-H "accept: application/json" \
-H "authorization: Bearer authtoken” \
-H "content-type: application/json-patch+json" \
-d '[{"op": "remove", "path": "/message"}, {"op": "add", "path": "/message", "value": "new"}]'

After the Patch: image

Expected behavior A clear and concise description of what you expected to happen. --- The user should be restricted from accessing/patching the feed using API.

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] OM v1.5.6

Additional context Add any other context about the problem here.

Prajwal214 avatar Oct 07 '24 22:10 Prajwal214

i would like to work on this

jatinmasaram avatar Apr 04 '26 10:04 jatinmasaram