mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: crenshaw-dev <350466+crenshaw-dev@users.noreply.github.com>
26 lines
770 B
Go
26 lines
770 B
Go
package askpass
|
|
|
|
import (
|
|
"github.com/argoproj/argo-cd/v3/util/env"
|
|
)
|
|
|
|
var SocketPath = "/tmp/reposerver-ask-pass.sock"
|
|
|
|
const (
|
|
// ASKPASS_NONCE_ENV is the environment variable that is used to pass the nonce to the askpass script
|
|
ASKPASS_NONCE_ENV = "ARGOCD_GIT_ASKPASS_NONCE"
|
|
// AKSPASS_SOCKET_PATH_ENV is the environment variable that is used to pass the socket path to the askpass script
|
|
AKSPASS_SOCKET_PATH_ENV = "ARGOCD_ASK_PASS_SOCK"
|
|
// CommitServerSocketPath is the path to the socket used by the commit server to communicate with the askpass server
|
|
CommitServerSocketPath = "/tmp/commit-server-ask-pass.sock"
|
|
)
|
|
|
|
func init() {
|
|
SocketPath = env.StringFromEnv(AKSPASS_SOCKET_PATH_ENV, SocketPath)
|
|
}
|
|
|
|
type Creds struct {
|
|
Username string
|
|
Password string
|
|
}
|