Add 'hide input' attribute to InputTask (Trac #885) #553

Open
phing-issues-importer opened this Issue Oct 9, 2016 · 8 comments

Projects

None yet

2 participants

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

When prompting users for passwords it would be nice to be able to hide the user's input to certain prompts/inputs.

Thank You!

Migrated from https://www.phing.info/trac/ticket/885

{
    "status": "new", 
    "changetime": "2014-06-03T13:54:46", 
    "description": "When prompting users for passwords it would be nice to be able to hide the user's input to certain prompts/inputs.\n\nThank You!", 
    "reporter": "jpb0104", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1401803686668315", 
    "component": "phing-core", 
    "summary": "Add 'hide input' attribute to InputTask", 
    "priority": "minor", 
    "keywords": "", 
    "version": "2.4.12", 
    "time": "2012-04-30T18:12:11", 
    "milestone": "Backlog", 
    "owner": "mrook", 
    "type": "enhancement"
}
@phing-issues-importer phing-issues-importer added this to the Backlog milestone Oct 9, 2016
@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20120509T14:33:22: keith.rogers@unit4.com commented:

A related issue is how the passwords are handled by build listeners - we have several scripts that are set up to log their verbose output to file, and this would include the passwords as all properties are logged when they are set in the project.

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20120907T12:58:47: mrook changed milestone from "TBD" to "2.4.14"

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20130103T10:06:57:

  • mrook commented:

Hm this is actually non-trivial. http://stackoverflow.com/questions/187736/command-line-password-prompt-in-php suggests a few possible solutions, but they either are *nix only, and/or buggy.

Moving this to the backlog to figure it out.

  • mrook changed milestone from "2.5.0" to "Backlog"
  • mrook changed priority from "tbd" to "minor"
@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20130409T11:20:19: anonymous commented:

Have a look at the Symfony Console component which has this feature built in.

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20130418T11:17:08: wlabesamis@gmail.com commented:

just a suggestion: create a bash script to capture the password, get the password and store it in outputProperty of exec. see sample script below:

create a bash script name "getpassword.sh"

#!/bin/bash

read -s -p "" password;

echo "$password"

Thanks to my colleague's help.

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20130903T21:33:38: bhaskarkhadka@hotmail.com commented:

To avoid creating and managing additional shell script use:

@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20140213T12:09:42:

  • mrook commented:

It seems that Symfony\Console uses https://github.com/Seldaek/hidden-input to hide input on Windows, and a few shell tricks to do the same on *nix.

  • mrook changed milestone from "Backlog" to "2.8.0"
@phing-issues-importer
phing-issues-importer commented Oct 9, 2016 edited

Trac update at 20140603T13:54:46: mrook changed milestone from "2.8.0" to "Backlog"

@mrook mrook removed their assignment Nov 17, 2016
@mrook mrook modified the milestone: 3.0, Backlog Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment