Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Clean way to backup a target using SSL? #12

Closed
floweb opened this issue Jan 5, 2018 · 4 comments · Fixed by #13
Closed

Clean way to backup a target using SSL? #12

floweb opened this issue Jan 5, 2018 · 4 comments · Fixed by #13

Comments

@floweb
Copy link
Contributor

floweb commented Jan 5, 2018

Hello,

To begin with, thank you very much for this awesome work!

The situation here is that I need to backup a mongod that uses SSL encryption (eg. MongoDB Atlas).

I think I've found my way out using the target: password: field in my .yml plan file, since I can't find any mention of --ssl parameter in your code, but it feels a bit too hacky for me.

Maybe I missed something... and you can enlighten me on that, thank you!

@stefanprodan
Copy link
Owner

Hi,

There is no support for SSL, when I have some free time I'll implement that

@floweb
Copy link
Contributor Author

floweb commented Jan 5, 2018

Thank you for your quick response.

To be honest, it does work atm, but it's a little bit hacky!

Just to be clear, I injected the --ssl --sslAllowInvalidCertificates parameters through my .yml plan file.
(I don't know if it was clear enough in my first message)

Here is an abstract of the .yml plan file I used:

target:
  host: "myhost.mongodb.net"
  username: "<myusername>"
  password: "<mypassword> --ssl --sslAllowInvalidCertificates"

And it worked!

@stefanprodan
Copy link
Owner

maybe I should add a params field to the target to make it look better

@floweb
Copy link
Contributor Author

floweb commented Jan 5, 2018

LGTM

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

Successfully merging a pull request may close this issue.

2 participants