Documentation
¶
Overview ¶
Package credential implements standard credential protocols and URI matching.
Index ¶
- Variables
- func DockerRegistryKey(value string) (string, error)
- func HandleDocker(helper dockercredentials.Helper, action string, input io.Reader, ...) error
- func KubernetesInteractive(value string) (bool, error)
- func MatchLabel(match Match) string
- func ReadDockerServer(input io.Reader) (string, string, error)
- func ValidResourceID(value string) bool
- func WriteAWS(output io.Writer, data ResourceData, tokenField, expirationField string) error
- func WriteKubernetes(output io.Writer, data ResourceData, expirationField string) error
- func WriteResponse(output io.Writer, username, password string) error
- type AWSProcessCredentials
- type ClientStore
- type DockerBackend
- type Match
- type Record
- type Request
- type Resolver
- type ResourceData
- type Store
Constants ¶
This section is empty.
Variables ¶
var ErrLookup = errors.New("credential lookup failed; check Passbolt configuration, resource access and approval")
var ErrNotFound = errors.New("credentials not found in native keychain")
var ErrReadOnly = errors.New("credential writes are not supported")
var ErrRequest = errors.New("invalid credential request")
var ErrResponse = errors.New("resource cannot be represented as credentials")
Functions ¶
func DockerRegistryKey ¶
DockerRegistryKey follows Docker's origin-oriented server keys. Paths that identify repositories/web pages are not registry entries for Docker list.
func HandleDocker ¶
func HandleDocker(helper dockercredentials.Helper, action string, input io.Reader, output io.Writer) error
HandleDocker delegates wire handling to Docker without Serve's stdout error printing. Buffering also works around upstream Get ignoring writer failures.
func KubernetesInteractive ¶
KubernetesInteractive validates the host's standard exec request without copying cluster data or input status into the credential response.
func MatchLabel ¶
func ValidResourceID ¶
func WriteAWS ¶
func WriteAWS(output io.Writer, data ResourceData, tokenField, expirationField string) error
func WriteKubernetes ¶
func WriteKubernetes(output io.Writer, data ResourceData, expirationField string) error
Types ¶
type AWSProcessCredentials ¶
type ClientStore ¶
func (ClientStore) Load ¶
func (s ClientStore) Load(ctx context.Context, id string) (ResourceData, error)
type DockerBackend ¶
DockerBackend implements Docker's upstream interface. Lookups stay read-only.
func (*DockerBackend) Add ¶
func (*DockerBackend) Add(*dockercredentials.Credentials) error
func (*DockerBackend) Delete ¶
func (*DockerBackend) Delete(string) error
type ResourceData ¶
ResourceData is internal decrypted data, not a wire format. Optional values can live in ordinary secret fields or named Passbolt custom fields.
func (ResourceData) Password ¶
func (d ResourceData) Password() (string, error)