tinode / chat

Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots
GNU General Public License v3.0
11.94k stars 1.87k forks source link

RethinkDB password #133

Closed neumachen closed 6 years ago

neumachen commented 6 years ago

Subject of the issue

There seems to be no way to add rethinkdb password? Am I correct on this?

 Failed to init DB: gorethink: Wrong password
or-else commented 6 years ago

RethinkDB calls it AuthKey. It's quite trivial to add it. Just add authkey to tinode.conf in the store_config.adapters.rethinkdb section https://github.com/tinode/chat/blob/master/server/tinode.conf#L117. Here all the options you can add to the RethinkDB configuration https://github.com/tinode/chat/blob/master/server/db/rethinkdb/adapter.go#L35.

neumachen commented 6 years ago

I think it's called Password now. https://github.com/GoRethink/gorethink/blob/master/session.go#L39

or-else commented 6 years ago

OK, thanks. I'll update the connection params with the new values tomorrow.

neumachen commented 6 years ago

@or-else can you also do a docker image release? Because I'm trying to test this out on Kubernetes.

or-else commented 6 years ago

Updated https://github.com/tinode/chat/commit/875939b311a9254eb14caade4c93ceae99621361 Docker images released https://hub.docker.com/r/tinode/tinode-rethinkdb/

neumachen commented 6 years ago

Legendary. Thanks @or-else!