Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2040

ServiceLoader discovery of security Providers discovers JDK instances as well

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.13.1.Final
    • None
    • Utils
    • None

    Description

      Recently working with the Zulu JDK we realised our use of ServiceLoader discovery is loading both the services defined in META-INT/services and those defined in the JPMS of the JDK.

      The issue MODULES-402 is adding an API to JBoss Modules to allow filtering before Providers are instantiated and WFCORE-5185 is to look at filtering in the Elytron subsystem.

      This issue is to look at the options in the following class:
      org.wildfly.security.provider.util.ProviderServiceLoaderSupplier

      In the subsystem we know we are in a modular environment so can check the type of the ClassLoader but for ProviderServiceLoaderSupplier we may be in a client not using JBoss Modules so may need to review alternative filtering strategies. In the client it is even more likely that JPMS definitions may be desirable so this will need to be considered further.

      Attachments

        1. jdk11_oracle.txt
          16 kB
          Ilia Vassilev
        2. jdk11_zulu.txt
          16 kB
          Ilia Vassilev

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: