ra: call MTCA when profile indicates MTC#8781
Conversation
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, 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
|
@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. |
| vac := vapb.NewVAClient(vaConn) | ||
| caaClient := vapb.NewCAAClient(vaConn) | ||
|
|
||
| profileToMTCA := make(map[string]mtcapb.MTCAClient) |
There was a problem hiding this comment.
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.
| func New(issuer *issuance.Issuer) *mtca { | ||
| return &mtca{ | ||
| issuer: issuer, | ||
| logID: issuer.Cert.Subject.String(), |
There was a problem hiding this comment.
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)?
| return nil, err | ||
| } | ||
|
|
||
| ra.countCertificateIssued(ctx, order.RegistrationID, idents, isRenewal) |
There was a problem hiding this comment.
We'll eventually want this metric to indicate that this was an MTC issuance, probably, but totally fine as-is for now.
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.
Note: this is built on top of #8776. Do not merge before that PR is merged.