Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverLocation ¶ added in v0.3.3
DiscoverLocation discover cred location
Types ¶
type Aws ¶
type Aws struct {
Id string `json:",omitempty"`
PoolId string `json:",omitempty"`
Endpoint string `json:",omitempty"`
Region string `json:",omitempty"`
Token string `json:",omitempty"`
Session *AwsSession `json:",omitempty"`
SecretKey
}
Aws represents AWS credentials
type AwsSession ¶ added in v0.3.2
Aws represents AWS credentials
type Azure ¶ added in v0.26.0
type Azure struct {
Oauth2Config `yaml:",inline"`
TenantID string ` yaml:"tenantId"`
}
Azure represents Azure OAuth2 configuration ClientSecret is optional for public clients; when empty, Cipher/Decipher are no-ops.
type Basic ¶
type Basic struct {
Endpoint string `json:",omitempty"`
Email string `json:",omitempty"`
Username string `json:",omitempty"`
Password string `json:",omitempty"`
EncryptedPassword string `json:",omitempty"`
}
Basic represents basic credentials
type Certificate ¶ added in v0.34.0
type Certificate struct {
CertificatePath string `json:",omitempty" yaml:",omitempty"`
CertificatePEM []byte `json:",omitempty" yaml:",omitempty"`
PrivateKeyPath string `json:",omitempty" yaml:",omitempty"`
PrivateKeyPEM []byte `json:",omitempty" yaml:",omitempty"`
PrivateKeyPassword string `json:",omitempty" yaml:",omitempty"`
EncryptedPrivateKey string `json:",omitempty" yaml:",omitempty"`
EncryptedPrivateKeyPassword string `json:",omitempty" yaml:",omitempty"`
}
Certificate represents an X.509 certificate bundle and its private key. Public certificate material is not encrypted; private key material and its password participate in Scy's kms.Securable lifecycle.
func (*Certificate) Cipher ¶ added in v0.34.0
Cipher encrypts inlined private key material and its password.
func (*Certificate) Decipher ¶ added in v0.34.0
Decipher restores encrypted private key material and its password.
type Generic ¶
Generic represents generic credentials
func (*Generic) NewJWTConfig ¶ added in v0.8.0
NewJWTConfig returns new JWT config for supplied scopes
func (*Generic) UnmarshalYAML ¶ added in v0.34.0
UnmarshalYAML preserves the flat credential representation used by Scy. yaml.v3 does not automatically flatten multiple anonymous structs, so each credential facet is decoded explicitly from the same mapping node.
type JwtConfig ¶
type JwtConfig struct {
ClientEmail string `json:"client_email,omitempty"`
TokenURL string `json:"token_url,omitempty"`
PrivateKey string `json:"private_key,omitempty"`
PrivateKeyID string `json:"private_key_id,omitempty"`
ProjectID string `json:"project_id,omitempty"`
TokenURI string `json:"token_uri,omitempty"`
Type string `json:"type,omitempty"`
ClientX509CertURL string `json:"client_x509_cert_url,omitempty"`
AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url,omitempty"`
Scopes []string `json:",omitempty"`
}
JwtConfig represents jws config
type Oauth2Config ¶ added in v0.19.0
type Oauth2Config struct {
oauth2.Config `yaml:",inline"`
EncryptedClientSecret string `json:",omitempty" yaml:"EncryptedSecret"`
}
type SHA1 ¶
type SHA1 struct {
Key string `json:",omitempty"`
EncryptedKey string `json:",omitempty"`
IntegrityKey string `json:",omitempty"`
EncryptedIntegrityKey string `json:",omitempty"`
}
SHA1 represents sha1 key secrets
type SSH ¶
type SSH struct {
Basic
PrivateKeyPath string `json:",omitempty"`
PrivateKeyPayload []byte `json:",omitempty"`
PrivateKeyPassword string `json:",omitempty"`
EncryptedPrivateKey string `json:",omitempty"`
EncryptedPrivateKeyPassword string `json:",omitempty"`
}
SSH represents SSH config
type SecretKey ¶ added in v0.9.3
type SecretKey struct {
Key string `json:",omitempty" yaml:"Key"`
Secret string `json:",omitempty" yaml:"Secret"`
EncryptedSecret string `json:",omitempty" yaml:"EncryptedSecret"`
}
SecretKey represents a key
func (*SecretKey) Cipher ¶ added in v0.9.3
Cipher ciphers password to encrypted password, clears password after that