Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

dnsd: Escape passwords for special characters #28

Closed
tiero opened this issue Nov 3, 2023 · 0 comments · Fixed by #30
Closed

dnsd: Escape passwords for special characters #28

tiero opened this issue Nov 3, 2023 · 0 comments · Fixed by #30
Assignees
Labels
bug Something isn't working

Comments

@tiero
Copy link
Contributor

tiero commented Nov 3, 2023

it seems the password cannot parse a forward slash. We should escape it?

time="2023-11-03T01:17:17Z" level=fatal msg="failed to create pgdb service: cannot parse `postgresql://root:xxxxxx@dnsd-db-pg:5432/dnsd-db?sslmode=disable`: failed to parse as URL (parse \"postgresql://root:DYyM4/bbNBY=@dnsd-db-pg:5432/dnsd-db?sslmode=disable\": invalid port \":DYyM4\" after host)"

Password is POSTGRES_PASSWORD=DYyM4/bbNBY=

@tiero tiero added the bug Something isn't working label Nov 3, 2023
@tiero tiero changed the title POST /dns dnsd: Escape passwords for special characters Nov 7, 2023
@sekulicd sekulicd mentioned this issue Nov 27, 2023
@tiero tiero closed this as completed in #30 Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants