Skip to content

POSTGRES_URL should be URI encoded #75

@endersonmaia

Description

@endersonmaia

A have a password that has special characters that needs to be URI encoded to work.

Acctually, all the resulting POSTGRES_SQL should be URI encoded to avoid problemas with passwords and even usernames with special characters.

That's the log I'm getting,

2022/02/24 19:00:15 failed to connect to PostgreSQL server: parse postgresql://postgres:z6fxajZydUO6,x9QN=Hn=K-sdPsE^X@__REDACTED__/postgres?ssl=required                                                                                    
: net/url: invalid control character in URL                                                                                                                                                                                                                                                      

Let me know if that's a desired thing, and I could send a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions