Skip to content

Commit

Permalink
feat: add vault provider type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Apr 8, 2024
1 parent 1f788bc commit 791a3e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ package vault

import "context"

type Provider string

const (
AwsKMS Provider = "aws-kms"
AzureKeyVault Provider = "azure-keyvault"
)

type VaultSourceConfig interface {
Encrypt(ctx context.Context, data map[string]any, keyId, keyVersion string) ([]byte, error)
Decrypt(ctx context.Context, cypherText string, keyId, keyVersion string) (map[string]any, error)
Expand Down

0 comments on commit 791a3e9

Please sign in to comment.