kes

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: AGPL-3.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCertificate

func ParseCertificate(cert []byte) (*x509.Certificate, error)

Types

type AppRole

type AppRole struct {
	EnginePath string        `yaml:"engine,omitempty"`
	ID         string        `yaml:"id,omitempty"`
	Secret     string        `yaml:"secret,omitempty"`
	Retry      time.Duration `yaml:"retry,omitempty"`
}

type Aws

type Aws struct {
	SecretsManager *AwsSecretManager `yaml:"secretsmanager,omitempty"`
}

type AwsSecretManager

type AwsSecretManager struct {
	Endpoint string                 `yaml:"endpoint,omitempty"`
	Region   string                 `yaml:"region,omitempty"`
	KmsKey   string                 ` yaml:"kmskey,omitempty"`
	Login    *AwsSecretManagerLogin `yaml:"credentials,omitempty"`
}

type AwsSecretManagerLogin

type AwsSecretManagerLogin struct {
	AccessKey    string `yaml:"accesskey"`
	SecretKey    string `yaml:"secretkey"`
	SessionToken string `yaml:"token"`
}

type Cache

type Cache struct {
	Expiry *Expiry `yaml:"expiry,omitempty"`
}

type Expiry

type Expiry struct {
	Any    time.Duration `yaml:"any,omitempty"`
	Unused time.Duration `yaml:"unused,omitempty"`
}

type Fs

type Fs struct {
	Path string `yaml:"path,omitempty"`
}

type Gcp added in v0.6.0

type Gcp struct {
	SecretManager *GcpSecretManager `yaml:"secretmanager,omitempty"`
}

type GcpCredentials added in v0.6.0

type GcpCredentials struct {
	ClientEmail  string `yaml:"client_email"`
	ClientID     string `yaml:"client_id"`
	PrivateKeyID string `yaml:"private_key_id"`
	PrivateKey   string `yaml:"private_key"`
}

type GcpSecretManager added in v0.6.0

type GcpSecretManager struct {
	ProjectID   string          `yaml:"project_id"`
	Endpoint    string          `yaml:"endpoint,omitempty"`
	Credentials *GcpCredentials `yaml:"credentials,omitempty"`
}

type Gemalto

type Gemalto struct {
	KeySecure *GemaltoKeySecure `yaml:"keysecure,omitempty"`
}

type GemaltoCredentials

type GemaltoCredentials struct {
	Token  string        `yaml:"token,omitempty"`
	Domain string        `yaml:"domain,omitempty"`
	Retry  time.Duration `yaml:"retry,omitempty"`
}

type GemaltoKeySecure

type GemaltoKeySecure struct {
	Endpoint    string              `yaml:"endpoint,omitempty"`
	Credentials *GemaltoCredentials `yaml:"credentials,omitempty"`
	TLS         *GemaltoTLS         `yaml:"tls,omitempty"`
}

type GemaltoTLS

type GemaltoTLS struct {
	CAPath string `yaml:"ca,omitempty"`
}

type Identity added in v0.3.9

type Identity = kes.Identity

type Keys

type Keys struct {
	Fs      *Fs      `yaml:"fs,omitempty"`
	Vault   *Vault   `yaml:"vault,omitempty"`
	Aws     *Aws     `yaml:"aws,omitempty"`
	Gemalto *Gemalto `yaml:"gemalto,omitempty"`
	Gcp     *Gcp     `yaml:"gcp,omitempty"`
}

type Log

type Log struct {
	Error string `yaml:"error,omitempty"`
	Audit string `yaml:"audit,omitempty"`
}

type Policy

type Policy struct {
	Paths      []string   `yaml:"paths,omitempty"`
	Identities []Identity `yaml:"identities,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	Addr     string            `yaml:"address,omitempty"`
	Root     Identity          `yaml:"root,omitempty"`
	TLS      TLS               `yaml:"tls,omitempty"`
	Policies map[string]Policy `yaml:"policy,omitempty"`
	Cache    Cache             `yaml:"cache,omitempty"`
	Log      Log               `yaml:"log,omitempty"`
	Keys     Keys              `yaml:"keys,omitempty"`
}

type TLS

type TLS struct {
	KeyPath  string    `yaml:"key,omitempty"`
	CertPath string    `yaml:"cert,omitempty"`
	Proxy    *TLSProxy `yaml:"proxy,omitempty"`
}

type TLSProxy

type TLSProxy struct {
	Identities *[]Identity     `yaml:"identities,omitempty"`
	Header     *TLSProxyHeader `yaml:"header,omitempty"`
}

type TLSProxyHeader

type TLSProxyHeader struct {
	ClientCert string `yaml:"cert,omitempty"`
}

type Vault

type Vault struct {
	Endpoint   string       `yaml:"endpoint,omitempty"`
	EnginePath string       `yaml:"engine,omitempty"`
	Namespace  string       `yaml:"namespace,omitempty"`
	Prefix     string       `yaml:"prefix,omitempty"`
	AppRole    *AppRole     `yaml:"approle,omitempty"`
	TLS        *VaultTLS    `yaml:"tls,omitempty"`
	Status     *VaultStatus `yaml:"status,omitempty"`
}

type VaultStatus

type VaultStatus struct {
	Ping time.Duration `yaml:"ping,omitempty"`
}

type VaultTLS

type VaultTLS struct {
	KeyPath  string `yaml:"key,omitempty"`
	CertPath string `yaml:"cert,omitempty"`
	CAPath   string `yaml:"ca,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL