Documentation ¶
Index ¶
- Variables
- func NewAlgorithmSignerFromSigner(signer crypto.Signer, algorithm string) (ssh.Signer, error)
- func SignCertificateAWS(publicKey ssh.PublicKey, token string, forceCommand string, region string, ...) (*ssh.Certificate, error)
- func SignCertificateAllRegions(publicKey ssh.PublicKey, token string, forceCommand string, c *config.SSHrimp) (*ssh.Certificate, error)
- func SignCertificateGCP(publicKey ssh.PublicKey, token string, forceCommand string, region string, ...) (*ssh.Certificate, error)
- func ValidateRequest(event SSHrimpEvent, c *config.SSHrimp, requestID string, functionID string) (ssh.Certificate, error)
- type AWSSigner
- type GCPSigner
- type SSHrimpEvent
- type SSHrimpResult
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewAlgorithmSignerFromSigner ¶
NewAlgorithmSignerFromSigner returns a ssh.Signer with a different default algorithm. Waiting for upstream changes to x/crypto/ssh, see: https://github.com/golang/go/issues/36261
func SignCertificateAWS ¶
func SignCertificateAWS(publicKey ssh.PublicKey, token string, forceCommand string, region string, c *config.SSHrimp) (*ssh.Certificate, error)
SignCertificateAWS given a public key, identity token and forceCommand, invoke the sshrimp-ca lambda function
func SignCertificateAllRegions ¶
func SignCertificateAllRegions(publicKey ssh.PublicKey, token string, forceCommand string, c *config.SSHrimp) (*ssh.Certificate, error)
SignCertificateAllRegions iterate through each configured region if there is an error signing the certificate
func SignCertificateGCP ¶
func SignCertificateGCP(publicKey ssh.PublicKey, token string, forceCommand string, region string, c *config.SSHrimp) (*ssh.Certificate, error)
SignCertificateGCP given a public key, identity token and forceCommand, invoke the sshrimp-ca GCP function
func ValidateRequest ¶
func ValidateRequest(event SSHrimpEvent, c *config.SSHrimp, requestID string, functionID string) (ssh.Certificate, error)
Types ¶
type AWSSigner ¶
KMSSigner an AWS asymetric crypto signer
func NewAWSSigner ¶
NewKMSSigner return a new instsance of AWSSigner
func (*AWSSigner) Public ¶
Public returns the public key from KMS
type GCPSigner ¶
GCPSigner a GCP asymetric crypto signer
func NewGCPSSigner ¶
NewGCPSSigner return a new instsance of NewGCPSSigner
func (*GCPSigner) Public ¶
Public returns the public key from KMS