MR check: api-gateway !7636: feat(authz): enforce Web Plexa permissions in the gateway (batch 1 + 2) → autest
- MR api-gateway!7636, from
cherrypick-autest/hardening-gateway-permissionsintoautest, by Rizqi, updated 2026-11-03, checked at commit5d535294. - Verdict: Safe. Of 50 certified dashboards: Broken 0, Affected 0, Needs review 0, Safe 50.
- Post the comment? Not needed (Safe). Post only if the team wants a comment on every MR.
- Changed: 0 migration(s), 0 model file(s), 14 code file(s) naming report data, 84 other file(s).
Drafted comment (not posted)
The comment a developer would see, between the two lines. Nothing is posted by the tool; whether comments are ever posted, and by whom, is not decided.
Report impact check: Safe. No certified Superset dashboard is affected by this MR (50 checked).
Read and cleared: 14 files that name report data (they don't change what gets stored).
Checked at 5d535294 against the 50 published and certified Superset dashboards (map built 2026-11-16) by the Report Impact Checker AI Tool (read-only). Questions: Lucas (BI).
Details for Lucas
Reviewed: Safe
src/authz/rules/absent-on-branch.json: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/documents.rules.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/finance.rules.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/site-people.rules.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/site-quality.rules.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/site-safety.rules.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/rules/unmapped.baseline.json: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/authz/accounts-payable.guard.ts: Part of the gateway authorisation hardening: a guard or policy that allows or refuses a request after read-only lookups (find calls only). It does not change what permitted requests send to services, so no stored report data changes; the matched names are lookup fields.src/authz/project-access.guard.ts: Part of the gateway authorisation hardening: a guard or policy that allows or refuses a request after read-only lookups (find calls only). It does not change what permitted requests send to services, so no stored report data changes; the matched names are lookup fields.src/authz/route-inventory.ts: Part of the gateway authorisation hardening: a table of the permission each route needs (or a list of the routes it covers). It only decides whether a request is allowed; it sends nothing to services and changes no payload, so no stored data changes. The table, column and JSON names match route and permission names only.src/controllers/site-management/incident.controller.ts: Adds the project access guard, refuses a confidential incident's detail to callers without the confidential permission, and puts the URL uuid after the body spread in category updates so the URL wins. Normal requests store the same values; is_confidential is only read.src/controllers/site-management/injury.controller.ts: Adds the project access guard and refuses a confidential injury's detail to callers without the confidential permission. Only reads and refuses requests; injuries and is_confidential are not written differently.src/controllers/project-document.controller.ts: Adds access checks (public document links return a fixed field list and refuse confidential or folder documents; copying to another project needs membership there) and puts URL ids after body spreads so the URL wins. Project documents are not read by certified dashboards; revision_number is only in the public response field list.src/controllers/role-permission.controller.ts: Adds the access guard, refuses reading another organisation's roles unless the caller is a support user, and clears the access cache after role changes. Role data written is unchanged (reports only read role title and uuid); the organization_uuid and user_uuid matches are lookup fields.