Skip to content

ra: call MTCA when profile indicates MTC#8781

Merged
jsha merged 3 commits into
mainfrom
boulder-mtca-ra
Jun 12, 2026
Merged

ra: call MTCA when profile indicates MTC#8781
jsha merged 3 commits into
mainfrom
boulder-mtca-ra

Conversation

@jsha

@jsha jsha commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Since we're going to be using profiles to decide whether an issuance uses MTC, remove the isMTC field from the orders table in boulder_sa_next.

@jsha jsha marked this pull request as ready for review June 5, 2026 16:55
@jsha jsha requested a review from a team as a code owner June 5, 2026 16:55
@jsha jsha requested review from aarongable and removed request for a team June 5, 2026 16:55
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

@jsha, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

1 similar comment
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

@jsha, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

aarongable
aarongable previously approved these changes Jun 5, 2026
Comment thread cmd/boulder-ra/main.go
vac := vapb.NewVAClient(vaConn)
caaClient := vapb.NewCAAClient(vaConn)

profileToMTCA := make(map[string]mtcapb.MTCAClient)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In the future there may be multiple profiles that all map to the same MTCA, which would necessitate rewriting how the loop below populates this map, but this is definitely good enough for now.

Comment thread mtca/mtca.go Outdated
func New(issuer *issuance.Issuer) *mtca {
return &mtca{
issuer: issuer,
logID: issuer.Cert.Subject.String(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If this is truly the logID, and not the caID, then shouldn't it be fmt.Sprintf("%s.0.%d", issuer.Cert.Subject.String(), logGeneration)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call. I split this up a bit: mtcaID, logNumber, and a helper function called .mtcLogID().

Comment thread ra/ra.go
Base automatically changed from boulder-mtca2 to main June 5, 2026 20:07
@jsha jsha dismissed aarongable’s stale review June 5, 2026 20:07

The base branch was changed.

jsha added 2 commits June 9, 2026 17:53
Since we're going to be using profiles to decide whether an issuance uses MTC,
remove the isMTC field from the orders table in boulder_sa_next.
@jsha jsha force-pushed the boulder-mtca-ra branch from e54495e to 69a4d2d Compare June 10, 2026 00:57
aarongable
aarongable previously approved these changes Jun 10, 2026
@aarongable aarongable requested review from a team and ezekiel and removed request for a team June 10, 2026 02:19
Comment thread mtca/mtca.go
@jsha jsha merged commit 72a2ea5 into main Jun 12, 2026
30 of 32 checks passed
@jsha jsha deleted the boulder-mtca-ra branch June 12, 2026 00:41
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