Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logging.GetLogger("server").WithField("pkg", "server")
Functions ¶
func RecoverHandler ¶
Simplified version of the echo's recover handler with support for logrus logging
func RequestLogger ¶
Types ¶
type AuthBackend ¶
type CertificateConfig ¶
type CertificateConfig struct { Certificates []tls.Certificate CertificateMap map[string]*tls.Certificate }
type Config ¶
type Config struct { Listen string TLSCertFile string `yaml:"TLSCertFile"` TLSKeyFile string `yaml:"TLSKeyFile"` TLSCertFiles []string `yaml:"TLSCertFiles"` TLSKeyFiles []string `yaml:"TLSKeyFiles"` TLSCertNames []string `yaml:"TLSCertNames"` AuthBackends []AuthBackend `yaml:"authBackends"` DefaultAuthBackends []string `yaml:"defaultAuthBackends"` MaxCertLifetime string `yaml:"maxCertLifetime"` DefaultCertLifetime string `yaml:"defaultCertLifetime"` CaChallengeLifetime string `yaml:"caChallengeLifetime"` AgentSocket string `yaml:"agentSocket"` PKCS11Provider string `yaml:"pkcs11Provider"` PKCS11Pin string `yaml:"pkcs11Pin"` CertSigningKeyFingerprint string `yaml:"certSigningKeyFingerprint"` TokenSigningKey string `yaml:"tokenSigningKey"` }
var Defaults *Config = &Config{ Listen: ":8540", TLSCertFile: "", TLSKeyFile: "", TLSCertFiles: []string{}, TLSKeyFiles: []string{}, AuthBackends: []AuthBackend{ AuthBackend{ Type: "authfile", Config: "authfile", Default: false, }, }, DefaultAuthBackends: []string{}, MaxCertLifetime: "24h", DefaultCertLifetime: "1h", CaChallengeLifetime: "5m", AgentSocket: path.Join(globals.VarDir(), "ssh_inscribe_agent.sock"), PKCS11Provider: "", PKCS11Pin: "", CertSigningKeyFingerprint: "", TokenSigningKey: "", }
func (Config) GetCertificateMap ¶
func (c Config) GetCertificateMap() (cc CertificateConfig, err error)
Click to show internal directories.
Click to hide internal directories.