Users without access can fetch & perform patch on the feed
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:
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:
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.
i would like to work on this