Replace MaybeImpersonatedUserMetadata decoration with AuditUserAttrs

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • Fully Compatible
    • Security 2024-12-23, Security 2025-01-20, 2024-12-24
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Today, user impersonation is propagated via the $audit field. When $audit is read, the impersonated user and roles are deserialized into MaybeImpersonatedUserMetadata, which is an optional OperationContext decoration. This is then used by ImpersonationSession to temporarily populate the AuthorizationSession's impersonated user metadata.

      Once AuditUserAttrs exists as an OperationContext decoration, we can remove MaybeImpersonatedUserMetadata and instead use AuditUserAttrs to convey impersonated user and role information in and out of the AuthorizationSession during RPC reads and writes, respectively.

              Assignee:
              Tianyu Wang
              Reporter:
              Varun Ravichandran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: