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

Use Server.Hostname than os.Hostname() in generating CA #356

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

haoming29
Copy link
Contributor

@haoming29 haoming29 commented Nov 8, 2023

Closes #303

With this PR merged, we should be consistently using Server.Hostname from parameters at all places. This PR also changes the param type of hostname from url to string, and noted the default value will be os.Hostname()

Note to the reviewer. I've tested that by changing the Server.Hostname from its default to localhost, remove existing CA file, spinning up an origin to let it generate new CA, and copy the CA file to /etc/pelican/certificates/tlsca.crt, and re-run the origin, the self-test works as expected.

@haoming29 haoming29 requested a review from bbockelm November 8, 2023 16:36
@jhiemstrawisc jhiemstrawisc self-requested a review November 10, 2023 18:04
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

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

LGTM

@haoming29 haoming29 merged commit 3e63925 into main Nov 10, 2023
9 checks passed
@haoming29 haoming29 deleted the server-hostname-in-ca branch November 14, 2023 16:51
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.

Use Server.Hostname instead of os.Hostname() in generating CA
2 participants