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

camel-nats - Support authentication with Nats server

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.21.0, 4.0.0
    • camel-nats
    • None
    • Unknown

    Description

      Nats server provides several ways to authenticate:

      • User / password
      • token
      • Nkey
      • credential files

      https://docs.nats.io/developing-with-nats/security

       

      I guess the token and user / password over an URI in camel wouldn't be very secure.

      Would the credential files be a valid implementation ?

      => provide a credentialsFilePath URIParam that is then used in the NatsConfiguration

       

      @UriParam(label = "security")
      private String credentialsFilePath;
      ...
      
      io.nats.client.Options.Builder build = new Options.Builder();
      ...
      if (getCredentialsFilePath() != null) {
          builder.authHandler(Nats.credentials(getCredentialsFilePath()));
      }
      
      
      
      

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Doussin Guillaume
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: