thisbythem / stag

The Statamic CLI
37 stars 4 forks source link

Encrypt password in the stag.yaml #3

Closed lesaff closed 9 years ago

lesaff commented 10 years ago

Is it possible to hash/encrypt the server password in the stag.yaml file?

Thx Rudy

nobodyiscertain commented 10 years ago

I'm not sure it'll be able to do that. Stag is just build and executing actual shell commands, so if you have an example of a command with a hash/encrypted password that you use, paste it in and I can look into recreating it.

Can I ask what you're wanting to encrypt it for? Happy to help brainstrom a solution.

lesaff commented 10 years ago

Thanks for the reply. The main reason to encrypt it is security measure. I just don't like to have plain text password floating around, especially if it gives access to the ssh. I figure since Statamic hash encrypt its members/users password, stag could probably use the same protection.

By the way, it's nice to have cli utility like this. Keep it up!

nobodyiscertain commented 9 years ago

No problemo! Glad to here you're getting good use out of it!

So this password part of the config is actually only used for ftp currently. If you are successfully using stag to talk to your servers, then it's using passwordless ssh (wtih ssh keys you setup). I've got a task to make an update to the README to reflect this as it's a little confusing.

You can actually remove the password line out of the config and you should be good to go.

lesaff commented 9 years ago

Thanks, I just realized that too. I have ssh key set up already.