Documentation
¶
Index ¶
- Variables
- func SignCertificate(publicKey ssh.PublicKey, token string, forceCommand string, url string) (*ssh.Certificate, error)
- func SignCertificateAllURLs(publicKey ssh.PublicKey, token string, forceCommand string, urls []string) (*ssh.Certificate, error)
- func ValidateRequest(log *logrus.Entry, event SSHrimpEvent, c *config.SSHrimp, requestID string, ...) (ssh.Certificate, error)
- type SSHrimpEvent
- type SSHrimpResult
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logrus.Entry
Functions ¶
func SignCertificate ¶
func SignCertificate(publicKey ssh.PublicKey, token string, forceCommand string, url string) (*ssh.Certificate, error)
SignCertificate given a public key, identity token and forceCommand, invoke the sshrimp-ca GCP function
func SignCertificateAllURLs ¶
func SignCertificateAllURLs(publicKey ssh.PublicKey, token string, forceCommand string, urls []string) (*ssh.Certificate, error)
SignCertificateAllURLs iterate through each configured url if there is an error signing the certificate
func ValidateRequest ¶
Types ¶
type SSHrimpEvent ¶
type SSHrimpEvent struct {
PublicKey string `json:"publickey"`
Token string `json:"token"`
SourceAddress string `json:"sourceaddress"`
ForceCommand string `json:"forcecommand"`
}
SSHrimpEvent encodes the user input for the sshrimp-ca lambda
type SSHrimpResult ¶
type SSHrimpResult struct {
Certificate string `json:"certificate"`
ErrorMessage string `json:"errorMessage"`
ErrorType string `json:"errorType"`
}
SSHrimpResult encodes the payload format returned from the sshrimp-ca lambda
Click to show internal directories.
Click to hide internal directories.