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

mark *_url settings as required and remove their default values #43

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 13, 2024

Those URLs are used by Katello and clients to connect to Pulp and
localhost is almost never the right choice here as it will be either
not reachable (for clients) or have the wrong certs (for Katello).

Guessing the right URL is hard, so let's not do that and force the user
to set it instead

@evgeni evgeni force-pushed the pulp-urls branch 3 times, most recently from 89b99ed to 83e0df0 Compare November 13, 2024 08:16
@ekohl
Copy link
Member

ekohl commented Nov 18, 2024

These defaults are sort of development values. and I always assumed people would set this explicitly because I don't trust autodetection.

@ehelms
Copy link
Member

ehelms commented Nov 18, 2024

These defaults are sort of development values. and I always assumed people would set this explicitly because I don't trust autodetection.

I think the only way to enforce that is to not have a default value and ensure users think about / set this value. I would tend to prefer no default value other than a default specified in the settings file.

@ekohl
Copy link
Member

ekohl commented Nov 18, 2024

If there is no sane default, don't have one in the first place. That makes a lot of sense to me.

@evgeni
Copy link
Member Author

evgeni commented Nov 18, 2024

I guess the sanity is debatable, yeah.

Would y'all prefer if I'd just drop the localhost default values, and mark the settings as required?

@ekohl
Copy link
Member

ekohl commented Nov 18, 2024

Works for me. Saves doing these lookups regardless of whether a setting is configured (which can fail or slow things down)

@evgeni evgeni changed the title try to use the fqdn for pulpcore urls mark *_url settings as required and remove their default values Nov 21, 2024
@evgeni evgeni force-pushed the pulp-urls branch 2 times, most recently from 3ae8824 to d0f3f3b Compare November 21, 2024 08:15
@evgeni evgeni force-pushed the pulp-urls branch 2 times, most recently from 8b75895 to 44ad191 Compare November 21, 2024 08:22
@evgeni evgeni marked this pull request as ready for review November 21, 2024 08:33
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

As noted, presence is redundant. Otherwise 👍

README.md Outdated Show resolved Hide resolved
Those URLs are used by Katello and clients to connect to Pulp and
`localhost` is almost never the right choice here as it will be either
not reachable (for clients) or have the wrong certs (for Katello).

Guessing the right URL is hard, so let's not do that and force the user
to set it instead.
@evgeni
Copy link
Member Author

evgeni commented Nov 21, 2024

Why are some errors using "Parameter" and some "Setting"? :D

@ekohl
Copy link
Member

ekohl commented Nov 21, 2024

Being consistent is hard?

@ekohl ekohl merged commit 0b77317 into master Nov 21, 2024
12 checks passed
@ekohl ekohl deleted the pulp-urls branch November 21, 2024 13:24
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.

3 participants