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

Rename HttpServer to ServerPrefix, and do not listen on it directly #27

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

lukevalenta
Copy link
Collaborator

Rename HttpServer to ServerPrefix, which is closer to the terminology
used in https://datatracker.ietf.org/doc/html/rfc6962#section-4 and in
https://github.com/C2SP/C2SP/blob/main/static-ct-api.md#checkpoints to
describe the prefix of the CA server. In the future, this can be used as
an identifier for the server (e.g., as a checkpoint origin line).

Also do not listen on ServerPrefix directly with the 'mtc ca serve'
subcommand, since it may not be in 'host:port' format. The listen-addr
flag provides the listening address for the server, and we assume that
it's behind a reverse proxy that ensures that requests to ServerPrefix
are routed correctly.

Unrelated:

  • Fix linter complaints about a lock being passed by value

Closes #22

Rename HttpServer to ServerPrefix, which is closer to the terminology
used in https://datatracker.ietf.org/doc/html/rfc6962#section-4 and in
https://github.com/C2SP/C2SP/blob/main/static-ct-api.md#checkpoints to
describe the prefix of the CA server. In the future, this can be used as
an identifier for the server (e.g., as a checkpoint origin line).

Also do not listen on ServerPrefix directly with the 'mtc ca serve'
subcommand, since it may not be in 'host:port' format. The `listen-addr`
flag provides the listening address for the server, and we assume that
it's behind a reverse proxy that ensures that requests to ServerPrefix
are routed correctly.

Closes #22
@lukevalenta lukevalenta requested a review from bwesterb March 3, 2025 19:14
@bwesterb bwesterb merged commit f1ae591 into main Mar 3, 2025
1 check passed
@bwesterb bwesterb deleted the lvalenta/httpserver branch March 3, 2025 19:25
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.

HttpServer isn't in host:port format
2 participants