Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-696

Eliminate PathAddress creation in AuditContstraint and NonAuditConstraint

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.0.Alpha2
    • 1.0.0.CR4
    • Management
    • None

      AuditConstraint and NonAuditConstraint are creating a PathAddress for every authorization call. Fix this:

      1) The Action class could conceivably provide the PathAddress, same as TargetResource/Attribute does. But, really the address of the action and the target should be the same. The Authorizer impl could probably just add this to enforce that:

      assert assertSameAddress(action, target);

      2) Given the address of the action and target are the same, AuditConstraint and NonAuditConstraint should drop their check of the action address. They also check the target address, so the action check is redundant.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: