-
Notifications
You must be signed in to change notification settings - Fork 28
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
Authentication? HTTPS? #23
Comments
Well, security first, before anything else. Actually it would be a big push up for this project if you add TLS and authentication, at least password-based. Because having a cluster of whatever store that everyone can write random garbage in it so easily — is of absolutely no use. Currently I am looking for something like TiKV, but tinier, simpler and in Go. Cete is exactly what it could be... I could potentially contribute that, but TLS and auth is quite simple to add, and yet you know your code very good already, while I don't have enough bandwidth to do this. お願いします m(._.)m |
Hi @isbm , |
Osuka-san, yeah, it can be Basic Auth. For all the endpoints, like gRPC (examples), HTTPS etc. Just don't do that Google-based auth, because what if your Cete cluster is offline in some datacenter... 😉 Essentially would be cool if you could move all the CLI options also to some YAML-like config and so we could just run it as so:
Done! And so then you have inside something like: auth:
token: some_very_secret_token_to_connect_to_everything
general:
mode: master
grpc: :8888
https: :8080
ssl: true ...and so on. So as a start, we could just share that very secrect token across the cluster (e.g in HTTPS you can carry it on in header) in configs and that's it for starter. Then later on we could add RSA-based auth. Since you are basically resembling TiKV (which makes your effort very cool!), then why not just steal the authentication ideas from them? :-) Essentially, for my project I need something like TiKV, but it is written in Rust and is a pig-size binary (about 0.5GB !!!). So Cete could do the job perfectly and I think do it very well. |
Hi @isbm , I have implemented a simple TLS Authentication. Also, the CLI has been changed to support YAML configuration files. This is the first time I've implemented TLS support, so I'm not sure it meets your needs. Would you try it out? |
Hi!
Is there any way to secure the cluster? Because running it all plain open is a complete dealbreaker...
The text was updated successfully, but these errors were encountered: