Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPSMDB-850 - Server Side Encryption Support #1198

Merged
merged 14 commits into from
Sep 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
16 changes: 16 additions & 0 deletions config/crd/bases/psmdb.percona.com_perconaservermongodbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
48 changes: 48 additions & 0 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -231,6 +247,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -863,6 +895,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
48 changes: 48 additions & 0 deletions deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -231,6 +247,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -863,6 +895,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
48 changes: 48 additions & 0 deletions deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -231,6 +247,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -863,6 +895,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
48 changes: 48 additions & 0 deletions e2e-tests/version-service/conf/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -231,6 +247,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down Expand Up @@ -863,6 +895,22 @@ spec:
type: string
region:
type: string
serverSideEncryption:
properties:
kmsKeyID:
type: string
sseAlgorithm:
type: string
sseCustomerAlgorithm:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
uploadPartSize:
Expand Down
20 changes: 11 additions & 9 deletions pkg/apis/psmdb/v1/psmdb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
v "github.com/hashicorp/go-version"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/pbm/compress"
"github.com/percona/percona-backup-mongodb/pbm/storage/s3"
"github.com/pkg/errors"
"gopkg.in/yaml.v2"
appsv1 "k8s.io/api/apps/v1"
Expand Down Expand Up @@ -713,15 +714,16 @@ func (task *BackupTaskSpec) JobName(cr *PerconaServerMongoDB) string {
}

type BackupStorageS3Spec struct {
Bucket string `json:"bucket"`
Prefix string `json:"prefix,omitempty"`
Region string `json:"region,omitempty"`
EndpointURL string `json:"endpointUrl,omitempty"`
CredentialsSecret string `json:"credentialsSecret,omitempty"`
UploadPartSize int `json:"uploadPartSize,omitempty"`
MaxUploadParts int `json:"maxUploadParts,omitempty"`
StorageClass string `json:"storageClass,omitempty"`
InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
Bucket string `json:"bucket"`
Prefix string `json:"prefix,omitempty"`
Region string `json:"region,omitempty"`
EndpointURL string `json:"endpointUrl,omitempty"`
CredentialsSecret string `json:"credentialsSecret,omitempty"`
ServerSideEncryption s3.AWSsse `json:"serverSideEncryption,omitempty"`
UploadPartSize int `json:"uploadPartSize,omitempty"`
MaxUploadParts int `json:"maxUploadParts,omitempty"`
StorageClass string `json:"storageClass,omitempty"`
InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
}

type BackupStorageAzureSpec struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/psmdb/v1/zz_generated.deepcopy.go

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

Loading
Loading