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

Add urlencode for the db password #34

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Add urlencode for the db password #34

merged 1 commit into from
Feb 27, 2025

Conversation

bobbyiliev
Copy link
Collaborator

No description provided.

@bobbyiliev bobbyiliev requested a review from kay-kim February 25, 2025 16:42
Copy link
Contributor

@kay-kim kay-kim left a comment

Choose a reason for hiding this comment

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

Thank you!!!!! Since we've set the special to false, we probably don't need to urlencode but I generally find it good to have for future-proofing (since, sometime in the future, people might allow special characters or override special in the random_password ... and will have forgotten the urlencode).

Ah ... I see that we keep the variable in root ... we just use the random_password for the simple example. Perfect!

@@ -153,7 +153,7 @@ locals {
metadata_backend_url = format(
"postgres://%s:%s@%s/%s?sslmode=require",
var.database_username,
var.database_password,
urlencode(var.database_password),
Copy link
Contributor

Choose a reason for hiding this comment

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

QQ: In the outputs.tf ... we print out the non-urlencoded metadata_backend_url. Does it matter? I'm guessing not since we don't even need to output that anymore, yes?

@bobbyiliev bobbyiliev merged commit f4574ef into main Feb 27, 2025
2 checks passed
@bobbyiliev bobbyiliev deleted the urlencode-db-string branch February 27, 2025 14:47
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