-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
va: prepare to require minimum of 3 RVAs (#7815)
To prepare for the MPIC requirement of having a minimum of 3 perspectives, I added code to `NewValidationAuthorityImpl` to error if there aren't enough remote VAs configured _and_ the current VA is the primary perspective. Then I fixed all the tests, which involved adding some backends in the unittests, and spinning up `remoteva-c` in the integration tests. As a reminder, the `boulder va` command always considers itself the primary perspective, while `boulder remoteva` gives itself a perspective based on its config. I wound up backing out the code in `NewValidationAuthorityImpl` because right now our remote VAs are actually running the `boulder va` command, so they would error out in prod, even though our actual primary perspective does have enough backends. So this wound up as a test-only change.
- Loading branch information
Showing
10 changed files
with
156 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"rva": { | ||
"userAgent": "remoteva-c", | ||
"dnsTries": 3, | ||
"dnsStaticResolvers": [ | ||
"10.77.77.77:8343", | ||
"10.77.77.77:8443" | ||
], | ||
"dnsTimeout": "1s", | ||
"dnsAllowLoopbackAddresses": true, | ||
"issuerDomain": "happy-hacker-ca.invalid", | ||
"tls": { | ||
"caCertfile": "test/certs/ipki/minica.pem", | ||
"certFile": "test/certs/ipki/rva.boulder/cert.pem", | ||
"keyFile": "test/certs/ipki/rva.boulder/key.pem" | ||
}, | ||
"skipGRPCClientCertVerification": true, | ||
"grpc": { | ||
"maxConnectionAge": "30s", | ||
"services": { | ||
"va.VA": { | ||
"clientNames": [ | ||
"va.boulder" | ||
] | ||
}, | ||
"grpc.health.v1.Health": { | ||
"clientNames": [ | ||
"health-checker.boulder" | ||
] | ||
} | ||
} | ||
}, | ||
"features": { | ||
"DOH": true | ||
}, | ||
"accountURIPrefixes": [ | ||
"http://boulder.service.consul:4000/acme/reg/", | ||
"http://boulder.service.consul:4001/acme/acct/" | ||
], | ||
"perspective": "development", | ||
"rir": "ARIN" | ||
}, | ||
"syslog": { | ||
"stdoutlevel": 4, | ||
"sysloglevel": -1 | ||
}, | ||
"openTelemetry": { | ||
"endpoint": "bjaeger:4317", | ||
"sampleratio": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"rva": { | ||
"userAgent": "remoteva-c", | ||
"debugAddr": ":8213", | ||
"dnsTries": 3, | ||
"dnsProvider": { | ||
"dnsAuthority": "consul.service.consul", | ||
"srvLookup": { | ||
"service": "dns", | ||
"domain": "service.consul" | ||
} | ||
}, | ||
"dnsTimeout": "1s", | ||
"dnsAllowLoopbackAddresses": true, | ||
"issuerDomain": "happy-hacker-ca.invalid", | ||
"tls": { | ||
"caCertfile": "test/certs/ipki/minica.pem", | ||
"certFile": "test/certs/ipki/rva.boulder/cert.pem", | ||
"keyFile": "test/certs/ipki/rva.boulder/key.pem" | ||
}, | ||
"grpc": { | ||
"maxConnectionAge": "30s", | ||
"address": ":9899", | ||
"services": { | ||
"va.VA": { | ||
"clientNames": [ | ||
"va.boulder" | ||
] | ||
}, | ||
"grpc.health.v1.Health": { | ||
"clientNames": [ | ||
"health-checker.boulder" | ||
] | ||
} | ||
} | ||
}, | ||
"features": {}, | ||
"accountURIPrefixes": [ | ||
"http://boulder.service.consul:4000/acme/reg/", | ||
"http://boulder.service.consul:4001/acme/acct/" | ||
] | ||
}, | ||
"syslog": { | ||
"stdoutlevel": 4, | ||
"sysloglevel": 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters