-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Prompt server password before connection. #298
Comments
Now it's not possible due many reasons: security, parallel execution, ext. But i think it will be available when implement events in Deployer. |
Ok. I now write codes for ask password before connecting. 1-2 hour(s) and i create pull request. |
Now, with use PasswordGetter system you can customize logic for gets password. As example, with use base callable ( use Deployer\Server\Password\CallablePasswordGetter;
server('production', 'domain.com')
->user('user')
->password(new CallablePasswordGetter(function ($host, $user){
return 'some_password';
}))
->stage('production')
->env('deploy_path', '/var/www/domain.com'); And with ask password ( use Deployer\Server\Password\AskPasswordGetter;
server('production', 'domain.com')
->user('user')
->password(AskPasswordGetter::createLazyGetter())
->stage('production')
->env('deploy_path', '/var/www/domain.com'); Attention: in configure system, you must use lazy getter, because we should have a access to context for get ouput and input interfaces. And, if send server('production', 'domain.com')
->user('user')
->password()
->stage('production')
->env('deploy_path', '/var/www/domain.com'); Attention: this method not working in parallel... I used this feature only on Thank. |
Add password getter system for customize getting password. (#298)
This feature was released in #299 |
How i can configure stage with prompt password to server before connect?
Thank.
The text was updated successfully, but these errors were encountered: