github.com/argoproj/argo-cd/v3@v3.2.1/util/askpass/common.go (about) 1 package askpass 2 3 import ( 4 "github.com/argoproj/argo-cd/v3/util/env" 5 ) 6 7 var SocketPath = "/tmp/reposerver-ask-pass.sock" 8 9 const ( 10 // ASKPASS_NONCE_ENV is the environment variable that is used to pass the nonce to the askpass script 11 ASKPASS_NONCE_ENV = "ARGOCD_GIT_ASKPASS_NONCE" 12 // AKSPASS_SOCKET_PATH_ENV is the environment variable that is used to pass the socket path to the askpass script 13 AKSPASS_SOCKET_PATH_ENV = "ARGOCD_ASK_PASS_SOCK" 14 // CommitServerSocketPath is the path to the socket used by the commit server to communicate with the askpass server 15 CommitServerSocketPath = "/tmp/commit-server-ask-pass.sock" 16 ) 17 18 func init() { 19 SocketPath = env.StringFromEnv(AKSPASS_SOCKET_PATH_ENV, SocketPath) 20 } 21 22 type Creds struct { 23 Username string 24 Password string 25 }