Project

General

Profile

Actions

Bug #149

open
SV SV

[HR][Verify] A-01: HR API authorization mode: confirm Audit vs Enforce on the deployed box

Bug #149: [HR][Verify] A-01: HR API authorization mode: confirm Audit vs Enforce on the deployed box

Added by Sravan V S about 2 months ago. Updated 12 days ago.

Status:
Feedback
Priority:
Urgent
Assignee:
Target version:
-
Start date:
09/28/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

Nuvita.Hr.Api/appsettings.json sets Nuvita:Authorization:Mode to Audit. Verified in the kernel (PermissionEnforcement.cs) that Audit mode logs a denial and lets the request through instead of returning 403. Check the hr-api startup log line "Nuvita authorization mode: " on the test and prod box: an environment override would change the severity of every privacy finding in #139.

SV Updated by Sravan V S about 2 months ago Actions #1

  • Assignee set to Sravan V S

S- Updated by SK - 12 days ago Actions #2

  • Assignee changed from Sravan V S to SK -

S- Updated by SK - 12 days ago Actions #3

  • Status changed from New to Feedback
  • Assignee changed from SK - to Sravan V S
  • Resolved By set to SK -

Checked the committed code, not just the live box - and found the ticket's own premise is already stale: the committed appsettings.json has set Nuvita:Authorization:Mode to Enforce, not Audit, since 2026-10-22 (commit by Annet Lopez, "ship Authorization.Mode=Enforce (Redmine #467)") - a separate, already-approved ticket, done before today's #139 work even started. There's also a regression-guard test (AuthorizationModeConfigTests) specifically added to stop this config drifting back to Audit. So today's #139 privacy fixes are NOT advisory-only in the code as committed - a caller missing a permission key gets a real 403.

What I cannot check from here: whether the actually DEPLOYED box (test and/or prod) has an environment-variable override (Nuvita__Authorization__Mode=Audit) silently overriding this committed setting at runtime - that's exactly what this ticket is really asking, and it needs someone with access to the deployed box's startup logs or environment config. Assigning to Sravan for that check, same as the other items needing live infra/deployment access today.

Actions

Also available in: PDF Atom