-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to block anonymous access to nats cluster? #774
Comments
Try upgrading to the 1.0.0 helm chart, then you can do something like this: config:
cluster:
enabled: true
replicas: 2
merge:
authorization:
users:
- user: my-user
password: T0pS3cr3t
natsBox:
contexts:
default:
merge:
user: my-user
password: T0pS3cr3t |
Anonymous user access is automatically blocked as long as auth is properly configured |
I am already using chart v1.0.0 and above did not work. So, i changed the values.yaml as suggested above, and after redeployment, I am still able to publish a message to the cluster without creds. Anything i could be doing wrong here? |
Not sure. When I take the |
@caleblloyd didn't work for me either - NATs deploys the config and for me it looks correct, but it says
even in the config file i see just one authorization part. Then i just used the part from the helm chart:
and that works for me. |
I have enabled auth and have setup one users in the values.yaml file for deploying using helm chart. My expectation is that anonymous access should not be allowed, but it does not seem to work. Is it possible to block anon' access to nats-cluster, and if so, how? My setting looks as below:
`config:
cluster:
enabled: true
port: 6222
# must be 2 or higher when jetstream is enabled
replicas: 2
The text was updated successfully, but these errors were encountered: