Skip to content

fix(config): restore LIGHTNING_API_CERTIFICATE env fallback for Azure#3867

Merged
davidleomay merged 1 commit into
developfrom
fix/cert-env-fallback
Jun 11, 2026
Merged

fix(config): restore LIGHTNING_API_CERTIFICATE env fallback for Azure#3867
davidleomay merged 1 commit into
developfrom
fix/cert-env-fallback

Conversation

@davidleomay

Copy link
Copy Markdown
Member

Problem

#3861 replaced the inline LIGHTNING_API_CERTIFICATE env var with LIGHTNING_API_CERTIFICATE_PATH (file-based). On Azure App Service there is no cert file mount, so readCert() returns undefined and LND TLS connections break.

Fix

When LIGHTNING_API_CERTIFICATE_PATH is set, read from file (Docker). When not set, fall back to LIGHTNING_API_CERTIFICATE with
split (Azure).

Post-cutover

After dfxprd cutover, the fallback can be removed since the cert file mount will always be available.

When LIGHTNING_API_CERTIFICATE_PATH is not set (Azure App Service has no
cert file mount), fall back to reading the inline PEM from
LIGHTNING_API_CERTIFICATE using the legacy <br> newline separator.
@davidleomay davidleomay merged commit 63ff21e into develop Jun 11, 2026
7 checks passed
@davidleomay davidleomay deleted the fix/cert-env-fallback branch June 11, 2026 13:40
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