Commit cd77ce0
committed
test(gateway): issue a real dns-persist-01 certificate in the e2e suite
The phase added a moment ago stopped short of the CA, because the pinned
Pebble image could not serve the challenge -- its binary carried dns-01,
http-01, tls-alpn-01 and dns-account-01, and neither "dns-persist-01" nor
"_validation-persist".
Upstream Pebble has implemented the draft since (va.validateDNSPersist01,
parsing the record as an RFC 8659 issue-value), so the image is rebuilt from
upstream v2.10.1 with only the `-http` flag this harness has always needed,
and the tag is pinned rather than floating on :latest. The flag now lives at
github.com/kvinwang/pebble branch http-flag instead of in an unrecorded
working tree.
So the challenge is covered end to end: selected out of the authorization,
posted ready, finalized, and the certificate fetched -- for a domain the
gateway holds no credential for. The DNS answer is the only part standing
in, since nothing publishes the record here and Pebble runs with
PEBBLE_VA_ALWAYS_VALID. certbot warns and proceeds by design, because the
CA's DNS view is not this node's.
Two orderings the suite has to respect, both learned by getting them wrong:
- Every record names the ACME account, so `required_dns_records` is empty
until one exists, and in this harness issuing is what creates it. The
record assertion therefore runs after issuance, not before.
- `renew_timeout` bounds the DNS self-check at half its value. Left at the
default the order would sit for 150s waiting on a record that never
arrives, so the harness sets 60s and the poll outlasts it.
`issuer_domain_name` is set to pebble.letsencrypt.org: a record naming a CA
the challenge does not list is ignored, and Pebble does not answer to
letsencrypt.org.1 parent 7cad283 commit cd77ce0
2 files changed
Lines changed: 56 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
44 | 39 | | |
45 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
178 | 204 | | |
179 | 205 | | |
180 | 206 | | |
181 | | - | |
182 | | - | |
183 | 207 | | |
184 | 208 | | |
185 | 209 | | |
| |||
236 | 260 | | |
237 | 261 | | |
238 | 262 | | |
239 | | - | |
240 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
241 | 270 | | |
242 | 271 | | |
243 | 272 | | |
244 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
245 | 278 | | |
246 | 279 | | |
247 | 280 | | |
| |||
412 | 445 | | |
413 | 446 | | |
414 | 447 | | |
415 | | - | |
416 | | - | |
417 | 448 | | |
418 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
419 | 456 | | |
420 | 457 | | |
421 | 458 | | |
| |||
0 commit comments