fix: handle newlines in provided secret paths
This commit is contained in:
parent
c827f56b6b
commit
662c38ea44
@ -23,6 +23,7 @@
|
|||||||
- AAAA records are now supported on the DNS page (closes [#189](https://github.com/tale/headplane/issues/189)).
|
- 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)).
|
- 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)).
|
- 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)
|
### 0.5.10 (April 4, 2025)
|
||||||
- Fix an issue where other preferences to skip onboarding affected every user.
|
- Fix an issue where other preferences to skip onboarding affected every user.
|
||||||
|
|||||||
@ -31,7 +31,7 @@ async function loadClientSecret(path: string) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return secret;
|
return secret.trim();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error('config', 'Failed to read client secret from %s', path);
|
log.error('config', 'Failed to read client secret from %s', path);
|
||||||
log.error('config', 'Error: %s', error);
|
log.error('config', 'Error: %s', error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user