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

feat: TDE for PG clusters #561

Merged
merged 47 commits into from
Aug 2, 2024
Merged

feat: TDE for PG clusters #561

merged 47 commits into from
Aug 2, 2024

Conversation

wai-wong-edb
Copy link
Collaborator

No description provided.

(cherry picked from commit 037c5ef)
# Conflicts:
#	examples/resources/biganimal_cluster/single_node/bah_aws/resource.tf
#	examples/resources/biganimal_cluster/single_node/bah_azure/resource.tf
#	examples/resources/biganimal_cluster/single_node/bah_gcp/resource.tf
#	examples/resources/biganimal_pgd/aws/bah_data_group/resource.tf
#	examples/resources/biganimal_pgd/aws/bah_data_groups_with_witness_group/resource.tf
#	examples/resources/biganimal_pgd/azure/bah_data_group/resource.tf
#	examples/resources/biganimal_pgd/azure/bah_data_groups_with_witness_group/resource.tf
#	examples/resources/biganimal_pgd/gcp/bah_data_group/resource.tf
#	examples/resources/biganimal_pgd/gcp/bah_data_groups_with_witness_group/resource.tf
…lica

# Conflicts:
#	pkg/provider/provider.go
…ttributes

# Conflicts:
#	pkg/provider/provider.go
Base automatically changed from ww-v1-refactor-cluster to main July 29, 2024 12:51
@wai-wong-edb wai-wong-edb dismissed vishalsawale9’s stale review July 29, 2024 12:51

The base branch was changed.

# Conflicts:
#	examples/resources/biganimal_cluster/single_node/aws/resource.tf
#	examples/resources/biganimal_cluster/single_node/azure/resource.tf
#	examples/resources/biganimal_cluster/single_node/gcp/resource.tf
#	examples/resources/biganimal_cluster/single_node/resource.tf
#	pkg/provider/data_source_cluster.go
#	pkg/provider/resource_cluster.go
vishalsawale9
vishalsawale9 previously approved these changes Aug 1, 2024
Copy link
Contributor

@vishalsawale9 vishalsawale9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Comment on lines +10 to +18
switch provider {
case "aws", "bah:aws":
return fmt.Sprintf(constants.TDE_KEY_AWS_ACTION, provider)
case "azure", "bah:azure":
return fmt.Sprintf(constants.TDE_KEY_AZURE_ACTION, provider)
case "gcp", "bah:gcp":
return fmt.Sprintf(constants.TDE_KEY_GCP_ACTION, provider)
default:
return fmt.Sprintf(constants.TDE_KEY_ACTION_UNKNOWN_PROVIDER_ERROR, provider)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • constants.TDE_KEY_AWS_ACTION message should be displayed for both BAH and BYOA providers
  • exception: we do not support TDE for bah:azure yet
Suggested change
switch provider {
case "aws", "bah:aws":
return fmt.Sprintf(constants.TDE_KEY_AWS_ACTION, provider)
case "azure", "bah:azure":
return fmt.Sprintf(constants.TDE_KEY_AZURE_ACTION, provider)
case "gcp", "bah:gcp":
return fmt.Sprintf(constants.TDE_KEY_GCP_ACTION, provider)
default:
return fmt.Sprintf(constants.TDE_KEY_ACTION_UNKNOWN_PROVIDER_ERROR, provider)
switch provider {
case "aws", "bah:aws":
return fmt.Sprintf(constants.TDE_KEY_AWS_ACTION, provider)
case "azure", "bah:azure":
return fmt.Sprintf(constants.TDE_KEY_AZURE_ACTION, provider)
case "gcp", "bah:gcp":
return fmt.Sprintf(constants.TDE_KEY_GCP_ACTION, provider)
default:
return fmt.Sprintf(constants.TDE_KEY_ACTION_UNKNOWN_PROVIDER_ERROR, provider)

Copy link
Collaborator

@edbamolvyavahare edbamolvyavahare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wai-wong-edb wai-wong-edb merged commit 4c97b0a into main Aug 2, 2024
7 checks passed
@wai-wong-edb wai-wong-edb deleted the ww-tde-pg-clusters branch August 2, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants