From 2ff276be6b3f3bdb10fa11aa999536b60268f5f0 Mon Sep 17 00:00:00 2001 From: Andrew Minkin Date: Wed, 20 Sep 2023 01:40:17 +0600 Subject: [PATCH 1/3] EVEREST-302 Improve validation for backupStorage --- api/everest-server.gen.go | 130 +++++++++++++++++------------------ client/everest-client.gen.go | 130 +++++++++++++++++------------------ docs/spec/openapi.yml | 6 +- 3 files changed, 135 insertions(+), 131 deletions(-) diff --git a/api/everest-server.gen.go b/api/everest-server.gen.go index 1c8cdbe1..fb36cf57 100644 --- a/api/everest-server.gen.go +++ b/api/everest-server.gen.go @@ -659,13 +659,13 @@ type UnregisterKubernetesClusterParams struct { // UpdateBackupStorageParams Backup storage parameters type UpdateBackupStorageParams struct { - AccessKey *string `json:"accessKey,omitempty"` + AccessKey string `json:"accessKey"` // BucketName The cloud storage bucket/container name - BucketName *string `json:"bucketName,omitempty"` + BucketName string `json:"bucketName"` Description *string `json:"description,omitempty"` Region *string `json:"region,omitempty"` - SecretKey *string `json:"secretKey,omitempty"` + SecretKey string `json:"secretKey"` Url *string `json:"url,omitempty"` } @@ -2089,68 +2089,68 @@ var swaggerSpec = []string{ "ugfybJJ8War5MPw33vbz87Oznjt0hVb3Z14zZUs2G95r/Ugz5kp0HwKz41pS7c5crqxpfSDqCoj687Oz", "NtAuM4hGPeXCW3SZDkNad0pS1rerkVRwQ9sV9g/ot4Ah+5ZLWDBjOPWun/5zVpZ4kpCKlS0Yeh2yFeuE", "PBfB3KwLM4i9dRqw52AF3NYKAQl4Bb6VOU1kzrkrMdUwk/tTNFtwIStV5N/ymr3YqNWAnd2yQqvGKgu6", - "ck6Dx1lSYE0SI8Yt6Giyx5pDbGCJ/nN4rWHnZw06XyhoAZMJjKTQjKU0WprVrqfZ9cL8oKYpaDpdPZ8a", - "pjwDGwRplkayLZUaOz5iYgOOas31EjSLKtV1sPLWkq5gTBiPkjw23GVLoRkSWlHJRK6KK8jWFpiSF2VU", - "KqVrHMAepQqOFsnvP2NPs5wx8Qv7G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7H7pv4UPuZm", + "WO8Np/rq2TN/ZgX2xABfMbAvGxz9x1G129s2L+fbs3mEXFPyI97neVLShYHRNwdciU2sDkz+lquO6f9+", + "H9Ofet3tXG5wHccjlacpleveeNZ0oVpFSjCxJhOh+x42rcg9Y1ofrkz6rhOP/aSG1FHxXsxLYQtaHwRe", + "gZncGX0Ahm8qhWpqG3ABWF9+tHp87TIa7ofyB6Lfnuh7kWcXzX8ct6To0e/GFf1o+SCBUHGWV/i7NSK8", + "f9mYusUS9psmS1QSRY7fbco1b43OTA+sKeSddn+7oU674woOmsrqfYuuvwmZ2wP9baK/fsTQLXSDGvs7", + "0NuR13egHzptDTLzwdBsD/LaYCVQHQVLqEnNaOIzML2T1THDlNjsOlekot7VRu+nLSIPJOQ9DDo/vF3T", + "nXvYz65BoCjjNHVAtzhD8Y79YPU8Jg7ejttusYDKAG0vF9JnOUMcyNYNe5KthOg79SbDlxYHKtvLobwV", + "657Crr9VG7zJCzdMMNGb+5BIi4guujLr79Sv7Mrj75DBgS3t6F8+vzteGPhgez7oTbR1HqjL1qPfq+/I", + "xRs9zMo1jlKmBybHiH4Xz2y4j3Kb2XRa5FgFr6IEDKfa3h6EBXXrbZwAMVTv45SXoPFyyejj4C0fgpN2", + "IuymbunpNAeJt+U4P3zuuC87adANh/Clg0SxjWY4cp9N/MHRRnL3LIPpbJi75nzAKKFKgbKJdTuywqkr", + "ZvJZsgNufmCJnVliD8rciV3SWuGYsP9xhs/Pk+3qyNT55DLAJ5WaNX9+02rT7jtco1a9930O3gZu3IYb", + "d6L4rfjPI3fiGdE9wNHNhcWhXcdzgf6SwVamnB00/K7dn58pO97z68mOHuyf+ji89y66uP6QsZPei/HP", + "kzpZYNfx1f2v40UUQWZQNoi/dn7AfqLGC8Q4iIudReSu2QYHEJd23AcvLsebjvQ6cIqJq0aEzUXOY3cj", + "58ylcL7zN9neF68mBd+Dd9nWj+A8fMtk+MGjOUySx53IkY7Y1gVmuavDS4HvQA8i4PGLgL3tpoHTfY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+ "t9OHpAoX2h7IPPz05jCF3qbveoYS0x7k/x3o/Wj/7B5pf5D7A2P1iR+mO3FVxxOSwUhDH81iP3zQmuU+", + "bEMLhs22YXqbbfhJ3oMchMSfR0hswcW32KhmWJzH8m4uk9Hx6Gj1fGRYyn3bZOnXK5BrvTQTSUjQ1dUC", + "F1N5AKFSGMDH375Vo3a0vnswH1YODNVMJdpp2PJcvjGqj2PvsVZSSQYKr7moxrHPLGWOc3gSX6N2izle", + "Nl81dSPXHzX9+P7j/wUAAP//oBkVzC0DAQA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/client/everest-client.gen.go b/client/everest-client.gen.go index 556a115f..5b8140b3 100644 --- a/client/everest-client.gen.go +++ b/client/everest-client.gen.go @@ -660,13 +660,13 @@ type UnregisterKubernetesClusterParams struct { // UpdateBackupStorageParams Backup storage parameters type UpdateBackupStorageParams struct { - AccessKey *string `json:"accessKey,omitempty"` + AccessKey string `json:"accessKey"` // BucketName The cloud storage bucket/container name - BucketName *string `json:"bucketName,omitempty"` + BucketName string `json:"bucketName"` Description *string `json:"description,omitempty"` Region *string `json:"region,omitempty"` - SecretKey *string `json:"secretKey,omitempty"` + SecretKey string `json:"secretKey"` Url *string `json:"url,omitempty"` } @@ -6361,68 +6361,68 @@ var swaggerSpec = []string{ "ugfybJJ8War5MPw33vbz87Oznjt0hVb3Z14zZUs2G95r/Ugz5kp0HwKz41pS7c5crqxpfSDqCoj687Oz", "NtAuM4hGPeXCW3SZDkNad0pS1rerkVRwQ9sV9g/ot4Ah+5ZLWDBjOPWun/5zVpZ4kpCKlS0Yeh2yFeuE", "PBfB3KwLM4i9dRqw52AF3NYKAQl4Bb6VOU1kzrkrMdUwk/tTNFtwIStV5N/ymr3YqNWAnd2yQqvGKgu6", - "ck6Dx1lSYE0SI8Yt6Giyx5pDbGCJ/nN4rWHnZw06XyhoAZMJjKTQjKU0WprVrqfZ9cL8oKYpaDpdPZ8a", - "pjwDGwRplkayLZUaOz5iYgOOas31EjSLK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", + "zTt6hqI9kV3A5ncozrqR8ekS2wMwG1h5v9cOu5nuVk7uUh275msHSK4jHTvIO73f8EqD83zujyF+Y9d6", + "t9OHpAoX2h7IPPz05jCF3qbveoYS0x7k/x3o/Wj/7B5pf5D7A2P1iR+mO3FVxxOSwUhDH81iP3zQmuU+", + "bEMLhs22YXqbbfhJ3oMchMSfR0hswcW32KhmWJzH8m4uk9Hx6Gj1fGRYyn3bZOnXK5BrvTQTSUjQ1dUC", + "F1N5AKFSGMDH375Vo3a0vnswH1YODNVMJdpp2PJcvjGqj2PvsVZSSQYKr7moxrHPLGWOc3gSX6N2izle", + "Nl81dSPXHzX9+P7j/wUAAP//oBkVzC0DAQA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/docs/spec/openapi.yml b/docs/spec/openapi.yml index a5527b7f..91065d00 100644 --- a/docs/spec/openapi.yml +++ b/docs/spec/openapi.yml @@ -1160,7 +1160,7 @@ paths: - monitoringInstances summary: Create a new monitoring instance object description: | - A monitoring instance object requires `type` to be set. + A monitoring instance object requires `type` to be set. Based on the `type` the respective key with configuration needs to be set. Such as, if `type: pmm`, then `pmm` key needs to be provided with a configuration. operationId: createMonitoringInstance @@ -1393,6 +1393,10 @@ components: type: string region: type: string + required: + - bucketName + - secretKey + - accessKey BackupStorage: type: object description: Backup storage information From d0a0d666b2b4a5a9193d2adf7136f094ce65fb0c Mon Sep 17 00:00:00 2001 From: Andrew Minkin Date: Wed, 20 Sep 2023 01:45:48 +0600 Subject: [PATCH 2/3] EVEREST-302 Fixed build --- api/backup_storage.go | 55 ++++++++++++++++++------------------------- api/validation.go | 17 +++---------- 2 files changed, 26 insertions(+), 46 deletions(-) diff --git a/api/backup_storage.go b/api/backup_storage.go index 51ad06e8..7b171cc8 100644 --- a/api/backup_storage.go +++ b/api/backup_storage.go @@ -83,7 +83,7 @@ func (e *EverestServer) CreateBackupStorage(ctx echo.Context) error { //nolint:f var accessKeyID, secretKeyID *string defer e.cleanUpNewSecretsOnUpdateError(err, accessKeyID, secretKeyID) - accessKeyID, secretKeyID, err = e.createSecrets(c, ¶ms.AccessKey, ¶ms.SecretKey) + accessKeyID, secretKeyID, err = e.createSecrets(c, params.AccessKey, params.SecretKey) if err != nil { return ctx.JSON(http.StatusInternalServerError, Error{Message: pointer.ToString(err.Error())}) } @@ -318,31 +318,27 @@ func (e *EverestServer) performBackupStorageUpdate( func (e *EverestServer) createSecrets( ctx context.Context, - accessKey, secretKey *string, + accessKey, secretKey string, ) (*string, *string, error) { var newAccessKeyID, newSecretKeyID *string - if accessKey != nil { - newID := uuid.NewString() - newAccessKeyID = &newID + newID := uuid.NewString() + newAccessKeyID = &newID - // create new AccessKey - err := e.secretsStorage.CreateSecret(ctx, newID, *accessKey) - if err != nil { - e.l.Error(err) - return newAccessKeyID, newSecretKeyID, errors.New("Could not store access key in secrets storage") - } + // create new AccessKey + err := e.secretsStorage.CreateSecret(ctx, newID, accessKey) + if err != nil { + e.l.Error(err) + return newAccessKeyID, newSecretKeyID, errors.New("Could not store access key in secrets storage") } - if secretKey != nil { - newID := uuid.NewString() - newSecretKeyID = &newID + newID = uuid.NewString() + newSecretKeyID = &newID - // create new SecretKey - err := e.secretsStorage.CreateSecret(ctx, newID, *secretKey) - if err != nil { - e.l.Error(err) - return newAccessKeyID, newSecretKeyID, errors.New("Could not store secret key in secrets storage") - } + // create new SecretKey + err = e.secretsStorage.CreateSecret(ctx, newID, secretKey) + if err != nil { + e.l.Error(err) + return newAccessKeyID, newSecretKeyID, errors.New("Could not store secret key in secrets storage") } return newAccessKeyID, newSecretKeyID, nil @@ -350,19 +346,14 @@ func (e *EverestServer) createSecrets( func (e *EverestServer) deleteOldSecretsAfterUpdate(ctx context.Context, params *UpdateBackupStorageParams, s *model.BackupStorage) { // delete old AccessKey - if params.AccessKey != nil { - _, cErr := e.secretsStorage.DeleteSecret(ctx, s.AccessKeyID) - if cErr != nil { - e.l.Errorf("Failed to delete unused secret, please delete it manually. id = %s", s.AccessKeyID) - } + _, cErr := e.secretsStorage.DeleteSecret(ctx, s.AccessKeyID) + if cErr != nil { + e.l.Errorf("Failed to delete unused secret, please delete it manually. id = %s", s.AccessKeyID) } - // delete old SecretKey - if params.SecretKey != nil { - _, cErr := e.secretsStorage.DeleteSecret(ctx, s.SecretKeyID) - if cErr != nil { - e.l.Errorf("Failed to delete unused secret, please delete it manually. id = %s", s.SecretKeyID) - } + _, cErr = e.secretsStorage.DeleteSecret(ctx, s.SecretKeyID) + if cErr != nil { + e.l.Errorf("Failed to delete unused secret, please delete it manually. id = %s", s.SecretKeyID) } } @@ -426,7 +417,7 @@ func (e *EverestServer) updateBackupStorage( err := e.storage.UpdateBackupStorage(ctx, tx, model.UpdateBackupStorageParams{ Name: backupStorageName, Description: params.Description, - BucketName: params.BucketName, + BucketName: ¶ms.BucketName, URL: params.Url, Region: params.Region, AccessKeyID: newAccessKeyID, diff --git a/api/validation.go b/api/validation.go index 3c1f07a5..9fd4ff29 100644 --- a/api/validation.go +++ b/api/validation.go @@ -106,20 +106,9 @@ func validateStorageAccessByUpdate(oldData *storageData, params UpdateBackupStor endpoint = params.Url } - accessKey := oldData.accessKey - if params.AccessKey != nil { - accessKey = *params.AccessKey - } - - secretKey := oldData.secretKey - if params.SecretKey != nil { - secretKey = *params.SecretKey - } - - bucketName := oldData.storage.BucketName - if params.BucketName != nil { - bucketName = *params.BucketName - } + accessKey := params.AccessKey + secretKey := params.SecretKey + bucketName := params.BucketName region := oldData.storage.Region if params.Region != nil { From 8eb64c2cb5535b98f616b4895e0992cd9f610800 Mon Sep 17 00:00:00 2001 From: Andrew Minkin Date: Wed, 20 Sep 2023 01:53:22 +0600 Subject: [PATCH 3/3] EVEREST-302 Fixed linter --- api/backup_storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/backup_storage.go b/api/backup_storage.go index 7b171cc8..79a2e5cd 100644 --- a/api/backup_storage.go +++ b/api/backup_storage.go @@ -302,7 +302,7 @@ func (e *EverestServer) performBackupStorageUpdate( return ctx.JSON(http.StatusInternalServerError, Error{Message: pointer.ToString("Could not update config on the kubernetes cluster")}) } - e.deleteOldSecretsAfterUpdate(c, params, s) + e.deleteOldSecretsAfterUpdate(c, s) result := BackupStorage{ Type: BackupStorageType(bs.Type), @@ -344,7 +344,7 @@ func (e *EverestServer) createSecrets( return newAccessKeyID, newSecretKeyID, nil } -func (e *EverestServer) deleteOldSecretsAfterUpdate(ctx context.Context, params *UpdateBackupStorageParams, s *model.BackupStorage) { +func (e *EverestServer) deleteOldSecretsAfterUpdate(ctx context.Context, s *model.BackupStorage) { // delete old AccessKey _, cErr := e.secretsStorage.DeleteSecret(ctx, s.AccessKeyID) if cErr != nil {