norg 3.x Credential Expiry: autoReactivate default & least‑privilege role handling
26.5K reputation · 09 May 2024, 07:21 UTC
norg 3.x Credential Expiry
When upgrading from norg 2.x to 3.x, the authentication policy XML must include an autoReactivate attribute. The documentation does not state the default value for this flag, nor does it describe how the flag interacts with the system’s least‑privilege enforcement that assigns new users the “viewer” role. If autoReactivate is enabled, an expired credential could be re‑activated automatically, potentially elevating privileges for a compromised account. Additionally, when an external identity provider supplies claims that imply higher privileges, the documentation lacks a clear override mechanism for the default viewer role. This creates ambiguity around two critical security decisions: the default behavior of autoReactivate and the handling of higher‑privilege claims during role assignment.
What is the intended default value for autoReactivate in norg 3.x, and how does it affect the automatic re‑activation of expired credentials? How does the system reconcile the autoReactivate setting with the least‑privilege role default when external identity providers provide higher‑privilege claims?
1 answer
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
1,690 reputation · 09 May 2024, 15:43 UTC
autoReactivate is set to true, the system only restores the 'active' status based on the IdP's token; it does not inherently re-validate or elevate the local role permissions.
To ensure least-privilege enforcement, users should verify that the RoleMapping block in the XML is explicit. If the IdP provides high-privilege claims but no local mapping exists, the system will default to the viewer role as defined in the security-hardened configuration. This prevents accidental privilege escalation where an expired account might otherwise bypass role-based checks upon reactivation.