Strip whitespace from private.key before parsing #108

Closed
opened 2025-12-29 01:23:23 +01:00 by adam · 0 comments
Owner

Originally created by @kradalby on GitHub (Jan 28, 2022).

There is some weird cases were it fails to parse the private key if it has a \n or other newline whitespace characters.

We should trim and strip privateKey before it is unmarshalled here: 4d60aeae18/app.go (L727)

Originally created by @kradalby on GitHub (Jan 28, 2022). There is some weird cases were it fails to parse the private key if it has a `\n` or other newline whitespace characters. We should trim and strip `privateKey` before it is unmarshalled here: https://github.com/juanfont/headscale/blob/4d60aeae18af17902e5802ee2b23b790c42c8482/app.go#L727
adam added the bug label 2025-12-29 01:23:23 +01:00
adam closed this issue 2025-12-29 01:23:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#108