Guillaume created CAMEL-17066:
---------------------------------
Summary: 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
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.3.4#803005)