Skip to content
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

Add nats command line utility #210

Open
tamis-laan opened this issue Jan 13, 2025 · 4 comments
Open

Add nats command line utility #210

tamis-laan opened this issue Jan 13, 2025 · 4 comments

Comments

@tamis-laan
Copy link

It would be so nice to add the nats command line utility similar to synadia/nats-server:nightly.

This would really help when doing development.

@ripienaar
Copy link

We have a companion container https://github.com/nats-io/nats-box for all that

@tamis-laan
Copy link
Author

tamis-laan commented Jan 13, 2025

That is true and helpful, but when using docker compose for example one would need to create a seperate nats-box container for and keep it running. It's way more helpfull to use docker compose exec and run within the nats server container. The alternative would be to use docker run but this requires opening ports to connect.

It's also nice because connecting from within the server container one already has full authority and should be able to directly connect to the server without the need for credentials similar to postgresql. This makes management way more easier.

So having the nats cli within the server container would be of great help and benefit.

@ripienaar
Copy link

nats does not have this "full authority" concept, there's nothing special about the server container or others.

@tamis-laan
Copy link
Author

Well postgresql includes psql and you can authorize local connections without the need for authentication with:

# TYPE  DATABASE        USER            ADDRESS                 METHOD
# Allow local connections without a password
host    all             all             127.0.0.1/32            trust
host    all             all             ::1/128                 trust

Which is really handy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants