mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
fix(apns): defensive PEM normalisation + ES256 verify (v1.4.47.2)
Coolify runtime logs surfaced "secretOrPrivateKey must be an asymmetric key when using ES256" on every push attempt. The channel auto-paused after 3 consecutive failures. Root cause: the .p8 PEM stored in the Coolify env-var arrived at process.env.APNS_KEY without parseable newlines around the BEGIN/END markers (env_file round-trip artefact). openssl pkey accepts it, jsonwebtoken@9 used by node-apn is strict. Normalise the PEM after the 12-factor \n unescape: strip whitespace between markers, force 64-char line wrap, rebuild canonical PEM. Idempotent on already-correct inputs. Verify via crypto.createPrivateKey before handing to node-apn.
This commit is contained in:
1 parent
be433c31ca
commit
0be10edc66
4 files changed
+157
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "healthlog",
|
||||
"version": "1.4.47.1",
|
||||
"version": "1.4.47.2",
|
||||
"description": "Self-hosted personal-health-tracking PWA with Withings integration, AI insights, and doctor-report PDF export.",
|
||||
"license": "AGPL-3.0-only",
|
||||
"homepage": "https://healthlog.dev",
|
||||
|
||||
Reference in new issue
Block a user