Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt password in the stag.yaml #3

Closed
lesaff opened this issue Oct 6, 2014 · 4 comments
Closed

Encrypt password in the stag.yaml #3

lesaff opened this issue Oct 6, 2014 · 4 comments

Comments

@lesaff
Copy link

lesaff commented Oct 6, 2014

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

Thx
Rudy

@nobodyiscertain
Copy link
Member

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
Copy link
Author

lesaff commented Oct 8, 2014

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
Copy link
Member

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
Copy link
Author

lesaff commented Oct 10, 2014

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

@lesaff lesaff closed this as completed Oct 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants