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

Fixing generate unique changeme #2205

Merged
merged 4 commits into from
Apr 13, 2022
Merged

Fixing generate unique changeme #2205

merged 4 commits into from
Apr 13, 2022

Conversation

dessalines
Copy link
Member

This was crashing my dev setups, because the generated changeme's don't have domain endings, which the DbUrl type now demands.

@dessalines dessalines requested a review from Nutomic as a code owner April 11, 2022 21:14
@dessalines dessalines marked this pull request as draft April 11, 2022 21:26
@dessalines dessalines marked this pull request as ready for review April 11, 2022 21:59
create or replace function generate_unique_changeme()
returns text language sql
as $$
select 'http://changeme.ml/' || substr(md5(random()::text), 0, 25);
Copy link
Member

@Nutomic Nutomic Apr 12, 2022

Choose a reason for hiding this comment

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

This could potentially cause problems if someone actually registers the domain changeme.ml. It would be more appropriate to use changeme.invalid.

https://www.rfc-editor.org/rfc/rfc2606.html

@dessalines dessalines force-pushed the fix_generate_changeme_1 branch from a9c5269 to 041dce7 Compare April 12, 2022 17:03
@Nutomic Nutomic enabled auto-merge (squash) April 13, 2022 11:00
@Nutomic Nutomic merged commit 2985e88 into main Apr 13, 2022
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