Documentation
¶
Index ¶
Constants ¶
View Source
const ( // VaultObjectTypeSecret secret vault object type VaultObjectTypeSecret string = "secret" // VaultObjectTypeKey key vault object type VaultObjectTypeKey string = "key" // VaultObjectTypeCertificate certificate vault object type VaultObjectTypeCertificate string = "cert" )
Type of Azure Key Vault objects
Variables ¶
View Source
var (
ConstructPEMChain = flag.Bool("construct-pem-chain", true, "explicitly reconstruct the pem chain in the order: SERVER, INTERMEDIATE, ROOT")
)
Functions ¶
func ParseAzureEnvironment ¶
func ParseAzureEnvironment(cloudName string) (*azure.Environment, error)
ParseAzureEnvironment returns azure environment by name
Types ¶
type KeyVaultObject ¶
type KeyVaultObject struct { // the name of the Azure Key Vault objects ObjectName string `json:"objectName" yaml:"objectName"` // the filename the object will be written to ObjectAlias string `json:"objectAlias" yaml:"objectAlias"` // the version of the Azure Key Vault objects ObjectVersion string `json:"objectVersion" yaml:"objectVersion"` // the type of the Azure Key Vault objects ObjectType string `json:"objectType" yaml:"objectType"` // the format of the Azure Key Vault objects // supported formats are PEM, PFX ObjectFormat string `json:"objectFormat" yaml:"objectFormat"` // The encoding of the object in KeyVault // Supported encodings are Base64, Hex, Utf-8 ObjectEncoding string `json:"objectEncoding" yaml:"objectEncoding"` // FilePermission is the file permissions FilePermission string `json:"filePermission" yaml:"filePermission"` }
KeyVaultObject holds keyvault object related config
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the secrets-store-csi-driver provider interface
func (*Provider) GetSecretsStoreObjectContent ¶ added in v1.1.0
func (p *Provider) GetSecretsStoreObjectContent(ctx context.Context, attrib, secrets map[string]string, targetPath string, defaultFilePermission os.FileMode) ([]SecretFile, error)
GetSecretsStoreObjectContent gets the objects (secret, key, certificate) from keyvault and returns the content to the CSI driver. The driver will write the content to the file system.
type SecretFile ¶ added in v1.1.0
SecretFile holds content and metadata of a secret file
type StringArray ¶
type StringArray struct {
Array []string `json:"array" yaml:"array"`
}
StringArray ...
Click to show internal directories.
Click to hide internal directories.