feat(ssl): auto-detect IPv6 for IP certificates

Discover eligible local IPv6 addresses with explicit interactive consent and preserve unattended IPv4 defaults. Embed shared helpers in both standalone scripts, verify dual-stack listeners and IP SAN/key identity, and preserve live certificates and prior panel state on failure. Add rootless regression coverage, CI checks, and SSL documentation.
This commit is contained in:
Hamed Sanaei
2026-10-27 05:55:21 +03:30
parent c621ba9014
commit 825f3c77a5
13 changed files with 1434 additions and 151 deletions
+21 -1
View File
@@ -10,6 +10,11 @@ on:
- ".nvmrc"
- "Makefile"
- ".github/workflows/ci.yml"
- "install.sh"
- "x-ui.sh"
- "scripts/lib/ip-ssl.sh"
- "scripts/sync-ip-ssl-helpers.sh"
- "scripts/test/**"
push:
branches:
- main
@@ -21,6 +26,11 @@ on:
- ".nvmrc"
- "Makefile"
- ".github/workflows/ci.yml"
- "install.sh"
- "x-ui.sh"
- "scripts/lib/ip-ssl.sh"
- "scripts/sync-ip-ssl-helpers.sh"
- "scripts/test/**"
permissions:
contents: read
@@ -311,11 +321,21 @@ jobs:
# the panel ships are linted by the shellcheck step below.
run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 -color -shellcheck=
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck socat
- name: shellcheck
run: |
shellcheck --severity=style DockerInit.sh DockerEntrypoint.sh deploy/test/smoke-noninteractive.sh
shellcheck --severity=error install.sh update.sh x-ui.sh
shellcheck --severity=style -e SC1091 scripts/lib/ip-ssl.sh scripts/sync-ip-ssl-helpers.sh scripts/test/ip-ssl-*.sh
- name: IP certificate regressions (no ACME orders)
run: |
bash -n install.sh
bash -n x-ui.sh
bash scripts/sync-ip-ssl-helpers.sh --check
bash scripts/test/ip-ssl-test.sh
bash scripts/test/ip-ssl-entrypoint-test.sh
IP_SSL_LINUX_TEST=1 bash scripts/test/ip-ssl-listener-test.sh
bash scripts/test/ip-ssl-certificate-test.sh
frontend:
runs-on: ubuntu-latest