afloyd / mongo-migrate

MIT License
159 stars 81 forks source link

Authentication? #15

Closed acalbazana closed 10 years ago

acalbazana commented 10 years ago

Is it possible to specify authentication info in the db config? I need to supply credentials and don't see a clear way on how to set this up.

afloyd commented 10 years ago

Sorry but I don't believe that functionality exists yet for mongo-migrate... If you'd like to add it and issue a pull request I can include it. I would suggest adding username & password fields to the config file that's read in, then after the db connection is created if those config parameters exist then attempt to authenticate. If I get a chance I could add it, but it would be a while

RohovDmytro commented 10 years ago

Guys, don't you use this useful module in production? How do you deal without ability to make migration with authentication?

I don'y think this issued should be in a closed state.

afloyd commented 10 years ago

It is used in production... However, our network is set up such that all the servers are behind the same firewall and security rules so authentication is unnecessary. I will re-open it until either I code it myself or someone issues a pull request. It really would not be that difficult to add it if someone were to truly want it

acalbazana commented 10 years ago

i've implemented auth and externalized credentials in the config. i'll get the changes together and issue the pull request.

jbrechtel commented 10 years ago

I missed this issue when submitting my pull request. But there's a pull request out there from me now with very basic authentication support.

It's issue #16

The support is very basic but it's enough for my purposes at the moment. Can we get it merged in or get some feedback on it? I'm happy to make changes.

afloyd commented 10 years ago

Thanks @jbrechtel. Resolved with https://github.com/afloyd/mongo-migrate/pull/16