Skip to content

Commit 940c7dc

Browse files
authored
Support for GCP KMS configuration (#592)
1 parent cdadb05 commit 940c7dc

File tree

8 files changed

+867
-307
lines changed

8 files changed

+867
-307
lines changed

models/encryption_configuration.go

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/gcp_configuration.go

Lines changed: 210 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/kes/kes.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,29 @@ type Gemalto struct {
113113
KeySecure *GemaltoKeySecure `yaml:"keysecure,omitempty"`
114114
}
115115

116+
type GcpCredentials struct {
117+
ClientEmail string `yaml:"client_email"`
118+
ClientID string `yaml:"client_id"`
119+
PrivateKeyID string `yaml:"private_key_id"`
120+
PrivateKey string `yaml:"private_key"`
121+
}
122+
123+
type GcpSecretManager struct {
124+
ProjectID string `yaml:"project_id"`
125+
Endpoint string `yaml:"endpoint,omitempty"`
126+
Credentials *GcpCredentials `yaml:"credentials,omitempty"`
127+
}
128+
129+
type Gcp struct {
130+
SecretManager *GcpSecretManager `yaml:"secretmanager,omitempty"`
131+
}
132+
116133
type Keys struct {
117134
Fs *Fs `yaml:"fs,omitempty"`
118135
Vault *Vault `yaml:"vault,omitempty"`
119136
Aws *Aws `yaml:"aws,omitempty"`
120137
Gemalto *Gemalto `yaml:"gemalto,omitempty"`
138+
Gcp *Gcp `yaml:"gcp,omitempty"`
121139
}
122140

123141
type ServerConfig struct {

0 commit comments

Comments
 (0)