Skip to content

Add custom storageClass per database #590

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

eberlep
Copy link
Collaborator

@eberlep eberlep commented Mar 3, 2025

No description provided.

@@ -301,7 +301,7 @@ func main() {
viper.SetDefault(enableLBSourceRangesFlg, true)
enableLBSourceRanges = viper.GetBool(enableLBSourceRangesFlg)

viper.SetDefault(enableRandomStorageEncryptionSecretFlg, false)
viper.SetDefault(enableRandomStorageEncryptionSecretFlg, true)
Copy link
Member

Choose a reason for hiding this comment

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

This could break backward compatibility i think. So i hope you know what you are doing here (tbh: i don't know the impacts of this default inversion).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hope so too :-)

Bute jokes aside: This simply does what it says, it creates a secret with a specific name and generates a random key inside it (once). When using certain encrypted storageClasses this is already enabled anyway, and other storageClasses will simply ignore it.

Should be safe.

This way, we can globally allow encrypted storage classes without having to remember to enable this flag for all environments.

Alternatively, we could simply globally enable it in the deployment. All the same to me, let's discuss this in the next meeting.

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.

2 participants