Skip to content

refactor(ingress): share the certificate pass between modes - #156

Merged
kvinwang merged 1 commit into
mainfrom
refactor/ingress-cert-lib
Oct 16, 2026
Merged

kvinwang merged 1 commit into
mainfrom
refactor/ingress-cert-lib

Conversation

@kvinwang

@kvinwang kvinwang commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Why

run_pass, cert_loop, collect_evidence, build_combined_pems and the pass state were copied in dns01.sh and tlsalpn.sh, and cert_loop had already drifted. The next fixes (#157, #158, #159) would otherwise have to be made twice.

What

Move them into scripts/cert-lib.sh. Each mode supplies process_domain, cert_fullchain_path/cert_privkey_path and acme_account_file (replaces get_letsencrypt_account_file). No behaviour change.

Tests

Unit tests (74) and test_sanitizers.sh pass; shellcheck shows no new findings. End-to-end run on Pebble for the whole stack is in progress; results will follow in a comment.

First of a stack: this → #157 → #158 → #159 → #160.

run_pass, cert_loop, collect_evidence, build_combined_pems and the
FIRST_PASS/APPLY_PENDING state were copied in dns01.sh and tlsalpn.sh,
and cert_loop had already drifted. Move them into cert-lib.sh; each mode
now only supplies process_domain, the certificate paths and
acme_account_file. No behaviour change.

Signed-off-by: Kevin Wang <wy721@qq.com>
@kvinwang
kvinwang merged commit 4971f35 into main Oct 16, 2026
6 checks passed
@kvinwang
kvinwang deleted the refactor/ingress-cert-lib branch October 16, 2026 01:10
@kvinwang
kvinwang restored the refactor/ingress-cert-lib branch October 16, 2026 01:10
@kvinwang
kvinwang deleted the refactor/ingress-cert-lib branch October 16, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant