Documentation ¶
Index ¶
- Variables
- func DeleteFromCubbyhole(name string) (*api.Secret, error)
- func GenerateRootCancel() error
- func GenerateRootInit(otp string) (*api.GenerateRootStatusResponse, error)
- func GenerateRootStatus() (*api.GenerateRootStatusResponse, error)
- func GenerateRootUpdate(shard, nonce string) (*api.GenerateRootStatusResponse, error)
- func LoadRuntimeConfig(configPath string) error
- func NewVaultClient() (*api.Client, error)
- func ReadFromCubbyhole(name string) (*api.Secret, error)
- func StartGoldfishWrapper(wrappingToken, login, id string) error
- func UnwrapData(wrappingToken string) (map[string]interface{}, error)
- func VaultHealth() (string, error)
- func WrapData(wrapttl string, data map[string]interface{}) (string, error)
- func WriteToCubbyhole(name string, data map[string]interface{}) (interface{}, error)
- type AuthInfo
- func (auth *AuthInfo) CapabilitiesSelf(path string) ([]string, error)
- func (auth *AuthInfo) Clear()
- func (auth AuthInfo) Client() (*api.Client, error)
- func (auth AuthInfo) CreateToken(opts *api.TokenCreateRequest, wrapttl string) (*api.Secret, error)
- func (auth *AuthInfo) DecryptAuth() error
- func (auth AuthInfo) DecryptTransit(key string, cipher string) (string, error)
- func (auth AuthInfo) DeletePolicy(name string) error
- func (auth AuthInfo) DeleteSecret(path string) (interface{}, error)
- func (auth AuthInfo) DeleteTokenByAccessor(acc string) error
- func (auth AuthInfo) DeleteUser(backend string, deleteID string) error
- func (auth *AuthInfo) EncryptAuth() error
- func (auth AuthInfo) EncryptTransit(key string, plaintext string) (string, error)
- func (auth AuthInfo) GetBulletins() ([]map[string]interface{}, error)
- func (auth AuthInfo) GetMount(path string) (*api.MountConfigOutput, error)
- func (auth AuthInfo) GetPolicy(name string) (string, error)
- func (auth AuthInfo) GetRole(rolename string) (interface{}, error)
- func (auth AuthInfo) GetTokenAccessors() ([]interface{}, error)
- func (auth AuthInfo) GetTokenCount() (int, error)
- func (auth AuthInfo) ListMounts() (map[string]*api.MountOutput, error)
- func (auth AuthInfo) ListPolicies() ([]string, error)
- func (auth AuthInfo) ListRoles() (interface{}, error)
- func (auth AuthInfo) ListSecret(path string) ([]interface{}, error)
- func (auth AuthInfo) ListUsers(backend string, offset int) (interface{}, error)
- func (auth *AuthInfo) Login() (map[string]interface{}, error)
- func (auth AuthInfo) LookupSelf() (*api.Secret, error)
- func (auth AuthInfo) LookupTokenByAccessor(accs string) ([]interface{}, error)
- func (auth AuthInfo) PutPolicy(name, rules string) error
- func (auth AuthInfo) ReadSecret(path string) (map[string]interface{}, error)
- func (auth AuthInfo) RenewSelf() (*api.Secret, error)
- func (auth AuthInfo) RevokeSelf() error
- func (auth AuthInfo) TuneMount(path string, config api.MountConfigInput) error
- func (auth *AuthInfo) UnwrapData(wrappingToken string) (map[string]interface{}, error)
- func (auth *AuthInfo) WrapData(wrapttl string, raw string) (string, error)
- func (auth AuthInfo) WriteSecret(path string, raw string) (interface{}, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // for authenticating this web server with vault VaultAddress = "" VaultSkipTLS = false )
View Source
var (
GithubCurrentCommit = ""
)
Functions ¶
func GenerateRootCancel ¶
func GenerateRootCancel() error
func GenerateRootInit ¶
func GenerateRootInit(otp string) (*api.GenerateRootStatusResponse, error)
func GenerateRootStatus ¶
func GenerateRootStatus() (*api.GenerateRootStatusResponse, error)
lookup current root generation status
func GenerateRootUpdate ¶
func GenerateRootUpdate(shard, nonce string) (*api.GenerateRootStatusResponse, error)
func LoadRuntimeConfig ¶ added in v0.4.0
func NewVaultClient ¶ added in v0.3.0
func StartGoldfishWrapper ¶ added in v0.3.0
func UnwrapData ¶ added in v0.2.5
func VaultHealth ¶
func WriteToCubbyhole ¶
Types ¶
type AuthInfo ¶
type AuthInfo struct { Type string `json:"Type" form:"Type" query:"Type"` ID string `json:"ID" form:"ID" query:"ID"` Pass string `json:"password" form:"Password" query:"Password"` }
func (*AuthInfo) CapabilitiesSelf ¶ added in v0.3.2
returns a list of capabilities the current auth has on a given path
func (AuthInfo) CreateToken ¶
func (*AuthInfo) DecryptAuth ¶
decrypt auth details with transit backend
func (AuthInfo) DecryptTransit ¶
decrypt given cipher with userTransitKey
func (AuthInfo) DeletePolicy ¶
func (AuthInfo) DeleteSecret ¶ added in v0.4.1
func (AuthInfo) DeleteTokenByAccessor ¶ added in v0.5.0
func (*AuthInfo) EncryptAuth ¶
encrypt auth details with transit backend
func (AuthInfo) EncryptTransit ¶
encrypt given string with userTransitKey
func (AuthInfo) GetBulletins ¶
func (AuthInfo) GetMount ¶
func (auth AuthInfo) GetMount(path string) (*api.MountConfigOutput, error)
func (AuthInfo) GetTokenAccessors ¶ added in v0.5.0
func (AuthInfo) GetTokenCount ¶
func (AuthInfo) ListMounts ¶
func (auth AuthInfo) ListMounts() (map[string]*api.MountOutput, error)
returns list of current mounts, if authorized
func (AuthInfo) ListPolicies ¶
func (AuthInfo) ListSecret ¶
func (*AuthInfo) Login ¶
verifies whether auth ID and password are valid if valid, creates a client access token and returns the metadata
func (AuthInfo) LookupTokenByAccessor ¶ added in v0.5.0
func (AuthInfo) ReadSecret ¶
func (AuthInfo) RevokeSelf ¶
func (AuthInfo) TuneMount ¶
func (auth AuthInfo) TuneMount(path string, config api.MountConfigInput) error
func (*AuthInfo) UnwrapData ¶ added in v0.3.2
to do: Find an optimal way to allow unauthenticated users to unwrap data
type Config ¶
type Config struct { ServerTransitKey string UserTransitKey string TransitBackend string DefaultSecretPath string BulletinPath string SlackWebhook string SlackChannel string GithubAccessToken string GithubRepoOwner string GithubRepo string GithubPoliciesPath string GithubTargetBranch string // fields that goldfish will write LastUpdated string `hash:"ignore"` GithubCurrentCommit string }
Click to show internal directories.
Click to hide internal directories.