-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
insights-content
-
Content 7, Content 8, Content 9
-
3
Related to https://issues.redhat.com/browse/HMS-4876
We should write a middleware to check arbitrary data being returned from our app to handle two cases,
- where we are returning an object:
- { "org_id": "12354"}
- we are returning a list of objects:
- { "data": [
{"org_id": "12345" }]
- { "data": [
- look through our openapi spec/response structs and see if there are any other formats we're missing
If the org_id exists on the data, lets double check for repositories, templates, snapshots, that these org_ids match the request org_id from the incoming identity header, and throw a 500 if not (I say a 500, as this should be due to a bug in the code, it shouldn't ever get this far)
We need to still allow red hat (-1) and community (-2?) org ids
- is related to
-
HMS-4876 [Content]: Check for Org Specific Information Not Tied to Systems Being Analyzed
-
- Closed
-