Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-778

DelegatingPolicy should delegate refresh()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Optional Optional
    • None
    • None
    • PicketBox

      DelegatingPolicy delegates non-JACC permissions to the java.security.Policy (or subclass) object.
      It delegates getPermissions() and implies() methods, but not refresh() method.

      It is bad, because DelegatingPolicy is used by default in current Wildfly and applications assuming standard policy provider and using normal security policy file will not refresh policies from file.

      Yes, user application can bypass it by using

      Policy.getPolicy().getPolicyProxy().refresh();

      but this require to have "org.picketbox" in dependencies, so application on picketlink depends, or is incompatible...

      This illustrate patch of my policy switching jboss extension - before patch it works only without picketlink, after it works only with picketlink:
      https://github.com/honza889/jsm-policy-subsystem/commit/f2fb420b43ac3eedbe5acde32762042e095189d6#diff-998db8f249fa4f686067810e0c894afeL41

      This should resolve this one line in DelegatingPolicy class:

         public void refresh()
         {
               delegate.refresh();
         }
      

      Thanks

      More informations about DelegatingPolicy:
      https://community.jboss.org/wiki/DelegatingPolicy
      https://github.com/picketbox/picketbox-container/blob/e8dfc3e8306cdbd2329de2dc73bfa8fd61eca6cd/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/jacc/DelegatingPolicy.java#L219

        1. Certified-Anti-Money-Laundering-Specialist--the-6th-edition-.html
          8 kB
          Amanda Jones
        2. Certified-Application-Security-Engineer--CASE--JAVA.html
          5 kB
          Amanda Jones
        3. Certified-Artificial-Intelligence-Practitioner---CAIP--.html
          7 kB
          Amanda Jones
        4. Certified-Associate-in-Biomedical-Technology.html
          6 kB
          Amanda Jones
        5. Certified-Biomedical-Equipment-Technician.html
          6 kB
          Amanda Jones
        6. Certified-Communications-Order-Management-Developer.html
          4 kB
          Amanda Jones
        7. Certified-Consumer-Goods-Cloud-Accredited-Professional.html
          6 kB
          Amanda Jones
        8. Certified-Cybersecurity-Technician--CCT-.html
          7 kB
          Amanda Jones
        9. Certified-Dangerous-Goods-Professional.html
          6 kB
          Amanda Jones
        10. Certified-Dangerous-Goods-Trainer.html
          5 kB
          Amanda Jones
        11. Certified-Data-Centre-Specialist.html
          5 kB
          Amanda Jones
        12. Certified-Diabetes-Care-and-Education-Specialist.html
          6 kB
          Amanda Jones
        13. Certified-Documentation-Expert-Inpatient.html
          6 kB
          Amanda Jones
        14. Certified-Documentation-Expert-Outpatient.html
          5 kB
          Amanda Jones
        15. Certified-Emergency-Nurse.html
          7 kB
          Amanda Jones
        16. Certified-Encryption-Specialist.html
          6 kB
          Amanda Jones
        17. Certified-Entry-Level-Python-Programmer.html
          7 kB
          Amanda Jones
        18. Certified-Ethical-Hacker-V12.html
          7 kB
          Amanda Jones
        19. Certified-Flight-Registered-Nurse---Certified-Transport-Registered-Nurse.html
          6 kB
          Amanda Jones
        20. Certified-Food-Safety-Manager.html
          8 kB
          Amanda Jones
        21. Certified-Foundational-Perioperative-Nurse.html
          5 kB
          Amanda Jones
        22. Certified-Hazardous-Materials-Manager.html
          6 kB
          Amanda Jones
        23. Certified-Hazardous-Materials-Practitioner.html
          6 kB
          Amanda Jones
        24. Certified-Healthcare-Technology-Manager.html
          6 kB
          Amanda Jones
        25. Certified-Hospice-and-Palliative-Licensed-Nurse.html
          6 kB
          Amanda Jones
        26. Certified-Hospice-and-Palliative-Nurse.html
          7 kB
          Amanda Jones
        27. Certified-Hospice-and-Palliative-Nursing-Assistant.html
          5 kB
          Amanda Jones
        28. Certified-Hospitality-Housekeeping-Executive.html
          6 kB
          Amanda Jones
        29. Certified-IdentityIQ-Engineer-Certification-Test.html
          5 kB
          Amanda Jones
        30. Certified-IdentityNow-Engineer-Certification-Test.html
          5 kB
          Amanda Jones
        31. Certified-IdentityNow-Professional-Certification-Test.html
          6 kB
          Amanda Jones
        32. Certified-Implementation-Specialist---Hardware-Asset-Management.html
          7 kB
          Amanda Jones
        33. Certified-in-Cybersecurity-from--ISC-.html
          6 kB
          Amanda Jones
        34. Certified-Industrial-Sterilization-Specialist.html
          5 kB
          Amanda Jones
        35. Certified-Inpatient-Coder.html
          5 kB
          Amanda Jones
        36. Certified-in-Planning-and-Inventory-Management--Part-2-.html
          5 kB
          Amanda Jones
        37. Certified-Instructional-Trainer.html
          7 kB
          Amanda Jones
        38. Certified-Legal-Nurse-Consultant-Exam.html
          4 kB
          Amanda Jones
        39. Certified-Nurse-Manager-and-Leader.html
          5 kB
          Amanda Jones
        40. Certified-Outpatient-Coder.html
          5 kB
          Amanda Jones
        41. Certified-Pediatric-Emergency-Nurse.html
          5 kB
          Amanda Jones
        42. Certified-Pediatric-Nurse.html
          8 kB
          Amanda Jones
        43. Certified-Pediatric-Nurse-Practitioner--Primary-Care.html
          6 kB
          Amanda Jones
        44. Certified-Pega-Business-Architect-8.8.html
          5 kB
          Amanda Jones
        45. Certified-Pega-Business-Architect--PCBA--87V1.html
          5 kB
          Amanda Jones
        46. Certified-Pega-Decisioning-Consultant.html
          5 kB
          Amanda Jones
        47. Certified-Pega-Lead-System-Architecture-Exam-8.8.html
          5 kB
          Amanda Jones
        48. Certified-Pega-Senior-System-Architect-8.8.html
          4 kB
          Amanda Jones
        49. Certified-Pega-System-Architect-8.8.html
          5 kB
          Amanda Jones
        50. Certified-Perioperative-Nurse.html
          6 kB
          Amanda Jones
        51. Certified-Physician-Practice-Manager.html
          6 kB
          Amanda Jones
        52. Certified-Professional-Biller.html
          5 kB
          Amanda Jones
        53. Certified-Professional-Coder--CPC--Exam.html
          6 kB
          Amanda Jones
        54. Certified-Professional-Compliance-Officer.html
          4 kB
          Amanda Jones
        55. Certified-Professional-in-Accessibility-Core-Competencies.html
          6 kB
          Amanda Jones
        56. Certified-Professional-in-AutoCAD-for-Design-and-Drafting.html
          5 kB
          Amanda Jones
        57. Certified-Professional-in-Healthcare-Information-and-Management-Systems-exam.html
          6 kB
          Amanda Jones
        58. Certified-Professional-in-Python-Programming-1.html
          7 kB
          Amanda Jones
        59. Certified-Professional-Medical-Auditor.html
          5 kB
          Amanda Jones
        60. Certified-Professional-Medical-Scribe.html
          5 kB
          Amanda Jones
        61. Certified-Professional-Multicloud-Infrastructure--NCP-MCI--6.5-Exam.html
          6 kB
          Amanda Jones
        62. Certified-Radiology-Equipment-Specialist.html
          5 kB
          Amanda Jones
        63. Certified-Registered-Central-Service-Technician.html
          5 kB
          Amanda Jones
        64. Certified-Registered-Nurse-Anesthetist.html
          7 kB
          Amanda Jones
        65. Certified-Risk-Adjustment-Coder.html
          5 kB
          Amanda Jones
        66. Certified-Safety-and-Health-Manager.html
          5 kB
          Amanda Jones
        67. Certified-Safety-Management-Practitioner.html
          6 kB
          Amanda Jones
        68. Certified-Safety-Professional.html
          5 kB
          Amanda Jones
        69. Certified-Scrum-Product-Owner--CSPO--Workshop.html
          6 kB
          Amanda Jones
        70. Certified-Sharing-and-Visibility-Architect.html
          8 kB
          Amanda Jones
        71. Certified-Technology-Specialist--CTS-.html
          7 kB
          Amanda Jones
        72. Certified-Technology-Specialist---Design--CTS-D-.html
          4 kB
          Amanda Jones
        73. Certified-Technology-Specialist---Installation--CTS-I-.html
          6 kB
          Amanda Jones
        74. Certified-Tester-Advanced-Level-Agile-Technical-Tester.html
          5 kB
          Amanda Jones
        75. -Certified-Tester-Advanced-Level---Test-Manager.html
          8 kB
          Amanda Jones
        76. Certified-Tester-Test-Automation-Engineer.html
          4 kB
          Amanda Jones
        77. Certified-Wireless-IoT-Solutions-Administrator.html
          5 kB
          Amanda Jones
        78. Certified-Wireless-Security-Professional.html
          6 kB
          Amanda Jones
        79. CFP-Board--Certified-Financial-Planner.html
          5 kB
          Amanda Jones
        80. Change-Management-Foundation.html
          5 kB
          Amanda Jones
        81. Chartered-Wealth-Manager--CWM--Certification-Level-1-Examination.html
          6 kB
          Amanda Jones

              Unassigned Unassigned
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: