Documentation
¶
Index ¶
- func DetectAgentSocketPath() (string, error)
- func ForwardAgent(client client2.BaseWorkspaceClient) error
- func GetHostOwnerTrust() ([]byte, error)
- func GetHostPubKey() ([]byte, error)
- func IsGpgTunnelRunning(ctx context.Context, user string, client *ssh.Client) bool
- func SigningKey(ctx context.Context) string
- type GPGConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectAgentSocketPath ¶
DetectAgentSocketPath returns the host gpg-agent extra socket path, used to reverse-forward the agent into a workspace.
func ForwardAgent ¶
func ForwardAgent(client client2.BaseWorkspaceClient) error
ForwardAgent starts a background SSH connection that forwards the local GPG agent.
func GetHostOwnerTrust ¶
func GetHostPubKey ¶
func IsGpgTunnelRunning ¶
func SigningKey ¶
SigningKey returns the user's GPG signing key from git config, or "" when no key is configured or the signing format is SSH (SSH signing keys are handled by the separate SSH signature helper).
Types ¶
type GPGConf ¶
func (*GPGConf) ImportGpgKey ¶
func (*GPGConf) ImportOwnerTrust ¶
func (*GPGConf) SetupGpgConf ¶
func (*GPGConf) SetupRemoteSocketDirTree ¶
func (*GPGConf) SetupRemoteSocketLink ¶
This function will normalize the location of the forwarded socket. the forwarding that happens in pkg/ssh/forward.go will forward the socket in the same path (eg. /Users/foo/.gnupg/S.gpg-agent) This function will use hardlinks to normalize it to where linux usually expects the socket to be.