Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20954

Cannot share SSLContextParameters between camel-kafka and other components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.0
    • 3.22.3, 4.0.6, 4.4.4, 4.8.0
    • camel-core
    • None
    • Unknown
    • Regression

    Description

      Hello everyone,

      Since CAMEL-18665, it's no longer possible to share a SSLContextParameters configuration between camel-kafka and other components.

      Now that the underlying JsseParameters uses the ResourceLoader you need to prefix your path with a "file:" and have something like

      file:C:/path/to/my/keystore.p12
      

      But as camel-kafka copies the parameters directly it needs the path without the "file:" prefix, see extract from KafkaConfiguration.applySslConfigurationFromContext()

      I don't know what is the right move. Is it to change the JsseParameters class and try to read a file before asking the ResourceLoader or is it to modify the camel-kafka configuration to be able to handle resources?

      I appreciate your help on this matter and have a nice day,

      Antoine

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              antoine.dessaigne Antoine DESSAIGNE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: