mirror of
https://github.com/tale/headplane.git
synced 2026-08-05 11:47:41 +00:00
fix: handle newlines in provided secret paths
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user