You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/03 10:26:00 UTC

[jira] [Updated] (CAMEL-17066) camel-nats - Support authentication with Nats server

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

Claus Ibsen updated CAMEL-17066:
--------------------------------
    Priority: Minor  (was: Major)

> 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
>
> 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)