fix: handle newlines in provided secret paths

This commit is contained in:
Aarnav Tale
2025-05-16 11:16:36 -04:00
parent c827f56b6b
commit 662c38ea44
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@
- AAAA records are now supported on the DNS page (closes [#189](https://github.com/tale/headplane/issues/189)).
- Add support for `dns.extra_records_path` in the Headscale config (closes [#144](https://github.com/tale/headplane/issues/144)).
- Tighten `proc` integration logic by checking for the `headscale serve` command (via #[195](https://github.com/tale/headplane/pull/195)).
- Strip newlines in the OIDC `client_secret_path` file if provided (closes [#199](https://github.com/tale/headplane/issues/199)).
### 0.5.10 (April 4, 2025)
- Fix an issue where other preferences to skip onboarding affected every user.
+1 -1
View File
@@ -31,7 +31,7 @@ async function loadClientSecret(path: string) {
return;
}
return secret;
return secret.trim();
} catch (error) {
log.error('config', 'Failed to read client secret from %s', path);
log.error('config', 'Error: %s', error);