Skip to content

Commit 98c09d8

Browse files
committed
github: Add a test for certbot, using pebble.
1 parent a2074d8 commit 98c09d8

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

ci/certbot/compose.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
services:
3+
zulip:
4+
environment:
5+
SSL_CERTIFICATE_GENERATION: certbot
6+
networks:
7+
zulip-backend:
8+
ipv4_address: 172.28.5.100
9+
depends_on:
10+
- pebble
11+
- challtestsrv
12+
13+
database:
14+
networks: [zulip-backend]
15+
memcached:
16+
networks: [zulip-backend]
17+
rabbitmq:
18+
networks: [zulip-backend]
19+
redis:
20+
networks: [zulip-backend]
21+
22+
pebble:
23+
image: ghcr.io/letsencrypt/pebble:latest
24+
volumes:
25+
- ./ci/certbot/pebble-config/:/config/
26+
command: -config /config/pebble-config.json -strict -dnsserver challtestsrv:8053
27+
ports:
28+
- 14000:14000 # HTTPS ACME API
29+
- 15000:15000 # HTTPS Management API
30+
networks: [zulip-backend]
31+
challtestsrv:
32+
image: ghcr.io/letsencrypt/pebble-challtestsrv:latest
33+
command: -defaultIPv6 "" -defaultIPv4 172.28.5.100
34+
networks: [zulip-backend]
35+
36+
networks:
37+
zulip-backend:
38+
driver: bridge
39+
ipam:
40+
driver: default
41+
config:
42+
- subnet: 172.28.0.0/16
43+
ip_range: 172.28.5.0/24
44+
gateway: 172.28.5.254

ci/certbot/env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../basic/env
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"pebble": {
3+
"listenAddress": "0.0.0.0:14000",
4+
"managementListenAddress": "0.0.0.0:15000",
5+
"certificate": "test/certs/localhost/cert.pem",
6+
"privateKey": "test/certs/localhost/key.pem",
7+
"httpPort": 80,
8+
"tlsPort": 443,
9+
"ocspResponderURL": "",
10+
"externalAccountBindingRequired": false,
11+
"domainBlocklist": ["blocked-domain.example"],
12+
"retryAfter": {
13+
"authz": 3,
14+
"order": 5
15+
},
16+
"keyAlgorithm": "ecdsa",
17+
"profiles": {
18+
"default": {
19+
"description": "The profile you know and love",
20+
"validityPeriod": 7776000
21+
},
22+
"shortlived": {
23+
"description": "A short-lived cert profile, without actual enforcement",
24+
"validityPeriod": 518400
25+
}
26+
}
27+
}
28+
}

ci/certbot/test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
set -o pipefail
5+
6+
url="https://${hostname:?}"
7+
8+
curl --verbose --insecure "${url}"

0 commit comments

Comments
 (0)