Skip to content

Commit 1e50d11

Browse files
committed
Introduce nonfunctional IssuerConfig.Profiles config field
1 parent b999183 commit 1e50d11

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

issuance/issuer.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ type IssuerConfig struct {
148148
// The selection of which pool depends on the precertificate's key algorithm.
149149
Active bool
150150

151+
// Profiles is the list of profiles for which this issuer is willing to issue.
152+
// For the moment, this does nothing, and exists only for deployability.
153+
// TODO(#8390): Make this field required for active issuers.
154+
Profiles []string `validate:"omitempty,dive,alphanum,min=1,max=32"`
155+
151156
IssuerURL string `validate:"required,url"`
152157
CRLURLBase string `validate:"required,url,startswith=http://,endswith=/"`
153158

test/config-next/ca.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"issuers": [
101101
{
102102
"active": true,
103+
"profiles": ["legacy"],
103104
"crlShards": 10,
104105
"issuerURL": "http://ca.example.org:4502/int-ecdsa-a",
105106
"crlURLBase": "http://ca.example.org:4501/lets-encrypt-crls/43104258997432926/",
@@ -111,6 +112,7 @@
111112
},
112113
{
113114
"active": true,
115+
"profiles": ["legacy", "modern", "shortlived"],
114116
"crlShards": 10,
115117
"issuerURL": "http://ca.example.org:4502/int-ecdsa-b",
116118
"crlURLBase": "http://ca.example.org:4501/lets-encrypt-crls/17302365692836921/",
@@ -133,6 +135,7 @@
133135
},
134136
{
135137
"active": true,
138+
"profiles": ["legacy"],
136139
"crlShards": 10,
137140
"issuerURL": "http://ca.example.org:4502/int-rsa-a",
138141
"crlURLBase": "http://ca.example.org:4501/lets-encrypt-crls/29947985078257530/",
@@ -144,6 +147,7 @@
144147
},
145148
{
146149
"active": true,
150+
"profiles": ["legacy", "modern", "shortlived"],
147151
"crlShards": 10,
148152
"issuerURL": "http://ca.example.org:4502/int-rsa-b",
149153
"crlURLBase": "http://ca.example.org:4501/lets-encrypt-crls/6762885421992935/",

0 commit comments

Comments
 (0)