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

Eliminate PathAddress creation in AuditContstraint and NonAuditConstraint

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: