Skip to content

Commit

Permalink
feat: add Azure keyvault suppport
Browse files Browse the repository at this point in the history
Signed-off-by: Eriks Zelenka <[email protected]>
  • Loading branch information
isindir committed Jun 19, 2019
1 parent 72a6ee4 commit 710a6cc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
18 changes: 14 additions & 4 deletions pkg/apis/isindir/v1alpha1/sopssecret_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,32 @@ type KmsDataItem struct {
AwsProfile string `json:"aws_profile,omitempty"`
}

// PgpDataItem defines AWS KMS specific encryption details
// PgpDataItem defines PGP specific encryption details
// +k8s:openapi-gen=true
type PgpDataItem struct {
EncryptedKey string `json:"enc,omitempty"`
CreationDate string `json:"created_at,omitempty"`
FingerPrint string `json:"fp,omitempty"`
}

// AzureKmsItem defines Azure Keyvault Key specific encryption details
// +k8s:openapi-gen=true
type AzureKmsItem struct {
VaultURL string `json:"vault_url,omitempty"`
KeyName string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
EncryptedKey string `json:"enc,omitempty"`
CreationDate string `json:"created_at,omitempty"`
}

// SopsMetadata defines the encryption details
// +k8s:openapi-gen=true
type SopsMetadata struct {
AwsKms []KmsDataItem `json:"kms,omitempty"`
Pgp []PgpDataItem `json:"pgp,omitempty"`
AwsKms []KmsDataItem `json:"kms,omitempty"`
Pgp []PgpDataItem `json:"pgp,omitempty"`
AzureKms []AzureKmsItem `json:"azure_kv,omitempty"`
//TODO: add following
//GcpKms []GcpKmsDataItem `json:"gcp_kms,omitempty"`
//AzureKms []AzureKmsItem `json:"azure_kv,omitempty"`

Mac string `json:"mac,omitempty"`
LastModified string `json:"lastmodified,omitempty"`
Expand Down
21 changes: 21 additions & 0 deletions pkg/apis/isindir/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package version

var (
// Version of the operator
Version = "0.0.4"
Version = "0.0.5"
)

0 comments on commit 710a6cc

Please sign in to comment.