Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BootstrapOptions ¶
type BootstrapOptions struct { NumKeys int // Number of fernet keys to create Period int64 // Period between each key rotation }
BootstrapOptions holds the extra options needed to bootstrap fernet keys
type Configuration ¶
type Configuration struct { Vault VaultConfiguration // Configuration Vaults []VaultConfiguration Consul ConsulConfiguration TTL int // Interval between each poll on vault SecretPath string // Path in vault for fernet-keys secret Health bool // Enable health endpoint HealthPeriod int // Period between each health check in seconds Bootstrap BootstrapOptions // Options needed to bootstrap secrets }
Configuration holds all the configuration for locksmith
type ConsulConfiguration ¶
type ConsulConfiguration struct { Address string // Consul address Proxy string // Proxy URL used to contact Consul Token string // Consul token use to access consul to read configuration and write lockKey TokenFile string // Path to find Consul token Lock bool // Use consul lock system LockKey string // What key is used for the consul lock system }
ConsulConfiguration holds all the options to create a vault client
type VaultConfiguration ¶
type VaultConfiguration struct { Address string // Vault address Proxy string // Path to proxy Token string // Vault token used to identify with this vault TokenFile string // Path to file containing vault token RenewToken bool // Enable token renewal }
VaultConfiguration holds all the options to create a vault client
Click to show internal directories.
Click to hide internal directories.