torodb / stampede

The ToroDB solution to provide better analytics on top of MongoDB and make it easier to migrate from MongoDB to SQL
https://www.torodb.com/stampede/
GNU Affero General Public License v3.0
1.77k stars 120 forks source link

Keyfile Replica Auth #201

Closed brandonjwang closed 7 years ago

brandonjwang commented 7 years ago

You folks seem to work well with X.509, however, there isn't any love for keyfile auth. Any chance that'll change?

brandonjwang commented 7 years ago

Specifically, seeing: Aug 11 21:43:34 localhost torodb-stampede[23405]: 2017-08-11T09:43:34.207 ERROR REPL - Fatal error while starting recovery mode: Error while inserting a cloned document

After: Aug 11 21:43:32 localhost torodb-stampede[23405]: 2017-08-11T09:43:32.590 WARN REPL - Error in heartbeat request to :27017; {errCode :UNAUTHORIZED, errorMsg:Command failed with error 13: 'not authorized on admin to execute command { replSetHeartbeat: "", pv: 1, v: 21, from: "" }' on server :27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on admin to execute command { replSetHeartbeat: \"\", pv: 1, v: 21, from: \"\" }", "code" : 13 }}

teoincontatto commented 7 years ago

Hello @dookehster,

If I am understanding correctly you are trying to authenticate ToroDB Stampede using keyfile authentication. This kind of authentication mechanism is just for internal authentication between replica set members and Stampede connect as a regular client. Please look at following link to ToroDB Stampede documentation to configure authentication to a Replica Set for ToroDB Stampede:

https://www.torodb.com/stampede/docs/1.0.0-beta3/configuration/mongodb-connectivity/