Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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())); }