[ 
https://issues.apache.org/jira/browse/CAMEL-17066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-17066.
---------------------------------
    Fix Version/s: 4.0.0
                   3.21.0
       Resolution: Fixed

This is already possible. You can configure TLS/SSL with sslContextParameters

> camel-nats - Support authentication with Nats server
> ----------------------------------------------------
>
>                 Key: CAMEL-17066
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17066
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-nats
>            Reporter: Guillaume
>            Priority: Minor
>             Fix For: 4.0.0, 3.21.0
>
>
> 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
>  
> {code:java}
> @UriParam(label = "security")
> private String credentialsFilePath;
> ...
> io.nats.client.Options.Builder build = new Options.Builder();
> ...
> if (getCredentialsFilePath() != null) {
>     builder.authHandler(Nats.credentials(getCredentialsFilePath()));
> }
> {code}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to