Add Domain option to Log so that a custom domain can be specified #1

Closed
jeroen wants to merge 1 commits from custom-domain into main
Collaborator

Add Domain option to Log so that a custom domain can be specified :)

Add Domain option to Log so that a custom domain can be specified :)
jeroen added 1 commit 2025-08-28 09:17:24 +00:00
jeroen requested review from pim 2025-08-28 09:17:24 +00:00
Owner

I agree that hard coding *.ct.ipng.ch was a mistake, but I don't want another config option 'Domain' because we already have the monitoringprefix and submissionprefix. I think you can extract that hostname between https://(.*)/ instead.

That saves a redundant/repetitive config field, and removes ambiguity (is it mon.ct.ipng.ch or log.ct.ipng.ch?)

I agree that hard coding *.ct.ipng.ch was a mistake, but I don't want another config option 'Domain' because we already have the monitoringprefix and submissionprefix. I think you can extract that hostname between `https://(.*)/` instead. That saves a redundant/repetitive config field, and removes ambiguity (is it mon.ct.ipng.ch or log.ct.ipng.ch?)
Author
Collaborator

I agree that hard coding *.ct.ipng.ch was a mistake, but I don't want another config option 'Domain' because we already have the monitoringprefix and submissionprefix. I think you can extract that hostname between https://(.*)/ instead.

That saves a redundant/repetitive config field, and removes ambiguity (is it mon.ct.ipng.ch or log.ct.ipng.ch?)

Should we then not simply have ShortName (halloumi2025h2) + Domain (ct.ipng.ch) and generate MonitoringPrefix + SubmissionPrefix from there? That is if we always put things in log + mon anyway and no path in the prefixes.

Or take the MonitoringPrefix, extract the ShortName + 'mon' subdomain, the remainder of of the hostname being the Domain?

(these are simple patches, thus will rebase the others when we settle on the answer ;) )

> I agree that hard coding *.ct.ipng.ch was a mistake, but I don't want another config option 'Domain' because we already have the monitoringprefix and submissionprefix. I think you can extract that hostname between `https://(.*)/` instead. > > That saves a redundant/repetitive config field, and removes ambiguity (is it mon.ct.ipng.ch or log.ct.ipng.ch?) Should we then not simply have ShortName (halloumi2025h2) + Domain (ct.ipng.ch) and generate MonitoringPrefix + SubmissionPrefix from there? That is if we always put things in log + mon anyway and no path in the prefixes. Or take the MonitoringPrefix, extract the ShortName + 'mon' subdomain, the remainder of of the hostname being the Domain? (these are simple patches, thus will rebase the others when we settle on the answer ;) )
Owner

No, the origin is equal to the submissionprefix. You can simply replace the string directly like that, in other words, if submissionprefix: https://bla.example.com/ then the origin will be bla.example.com.
Further, you cannot hardcode 'mon' and 'log' either because those are choices we made for Cheese, not to be expected to be shared by everybody.
Lastly, I do not want to drift from the Sunlight yaml format if we can avoid it.

Why don't you synthesize a Log[i].Origin from submissionprefix and use that instead? Take a look at this diff to see what I have in mind as a counter offer.

No, the origin is equal to the submissionprefix. You can simply replace the string directly like that, in other words, if `submissionprefix: https://bla.example.com/` then the origin will be `bla.example.com`. Further, you cannot hardcode 'mon' and 'log' either because those are choices we made for Cheese, not to be expected to be shared by everybody. Lastly, I do not want to drift from the Sunlight yaml format if we can avoid it. Why don't you synthesize a Log[i].Origin from submissionprefix and use that instead? Take a look at [this diff](https://paste.ipng.ch/9ftu7l.txt) to see what I have in mind as a counter offer.
Owner

I've decided to merge my diff instead of this approach, in 0503370. This PR can be reverted.

I've decided to merge my diff instead of this approach, in 0503370. This PR can be reverted.
pim closed this pull request 2025-08-28 18:52:30 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: certificate-transparency/cheese#1
No description provided.