Files
argo-cd/util/askpass/common.go
github-actions[bot] 4d9835927d Bump major version to 3 (#21410)
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>
2025-01-10 16:14:00 -05:00

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
}