Skip to content

Commit

Permalink
RVA: Add configurable MPIC metadata to config
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Oct 1, 2024
1 parent 61a9aa5 commit dba1629
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
21 changes: 21 additions & 0 deletions cmd/remoteva/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,27 @@ type Config struct {
RVA struct {
vaConfig.Common

// Cluster specifies the cluster name that this RVA belongs to. The
// format is unrestricted, but it should uniquely identify a group of
// RVAs deployed in the same physical datacenter.
//
// TODO(#7615): Make mandatory once referenced in audit logs. Update the
// comment above.
Cluster string `validate:"omitempty"`

// RIR indicates the Regional Internet Registry where this RVA is
// located. This will be used to to identify which RIR a given
// validation was performed from. Must be one of the following values:
// - ARIN
// - RIPE
// - APNIC
// - LACNIC
// - AfriNIC
//
// TODO(#7615): Make mandatory once referenced in audit logs. Update the
// comment above.
RIR string `validate:"omitempty,oneof=ARIN RIPE APNIC LACNIC AfriNIC"`

// SkipGRPCClientCertVerification, when disabled as it should typically
// be, will cause the remoteva server (which receives gRPCs from a
// boulder-va client) to use our default RequireAndVerifyClientCert
Expand Down
4 changes: 3 additions & 1 deletion test/config-next/remoteva-a.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"accountURIPrefixes": [
"http://boulder.service.consul:4000/acme/reg/",
"http://boulder.service.consul:4001/acme/acct/"
]
],
"cluster": "development",
"rir": "ARIN"
},
"syslog": {
"stdoutlevel": 4,
Expand Down
4 changes: 3 additions & 1 deletion test/config-next/remoteva-b.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"accountURIPrefixes": [
"http://boulder.service.consul:4000/acme/reg/",
"http://boulder.service.consul:4001/acme/acct/"
]
],
"cluster": "development",
"rir": "ARIN"
},
"syslog": {
"stdoutlevel": 4,
Expand Down

0 comments on commit dba1629

Please sign in to comment.