Enhancement #1681

Pass password request to the user

Added by J. Wienke over 10 years ago. Updated about 10 years ago.

Status:RejectedStart date:12/09/2013
Priority:NormalDue date:
Assignee:J. Moringen% Done:

0%

Category:User Interface
Target version:0.2

Description

Add a command line option to switch SCM tools to an interactive mode where password requests are passed to the user.

Associated revisions

Revision 6bc6fbea
Added by J. Moringen almost 9 years ago

Disabled git password prompts in src/analysis/git.lisp

A new --non-interactive commandline option selects one of two behaviors:

1. When --non-interactive is supplied, the global option

-c core.askpass=true
is added to disable all username and password prompts (including
keyrings via credentials helper).

2. When --non-interactive is not supplied, the environment variable

SSH_ASKPASS=true
is set for the git sub-process to disable default username and
password prompts using the generator's terminal without affecting
explicitly configured (via GIT_ASKPASS or core.askpass) credentials
helper.

refs #1681

  • src/analysis/util.lisp (header): updated copyright
    (run): accept environment keyword parameter, pass to
    `inferior-shell:run/nil'
  • src/analysis/git.lisp (ssh-askpass-variable-name): new constant;
    SSH_ASKPASS environment variable
    (environment-with-ssh-askpass-overwritten): new function; helper for
    constructing environment with suitable SSH_ASKPASS value
    (%run-git): depending on new non-interactive keyword parameter, either
    call git executable with -c core.askpass=true global
    option or set SSH_ASKPASS=true in the environment of the sub-process
    (analyze uri eql :git): accept non-interactive keyword parameter, pass
    to `%run-git'
  • src/commandline-interface/main.lisp (analyze-project): accept
    non-interactive keyword parameter, pass through
    (analyze-projects): similar
    (update-synopsis): added non-interactive commandline option
    (main): process non-interactive commandline option

History

#1 Updated by J. Moringen about 10 years ago

  • Status changed from New to Rejected

In practice, respective local password storage mechanisms of SCMs (.netrc, etc.) are used instead.

Also available in: Atom PDF