nixpkgs/pkgs/servers/headscale/trim-oidc-secret-path.patch
Adam Stephens b54cb6cd11
headscale: backport trim of oidc secret path
This is a backport of https://github.com/juanfont/headscale/pull/1697
which trims the oidc client_secret_path.
2024-06-10 11:10:59 -04:00

13 lines
373 B
Diff

diff --git a/hscontrol/config.go b/hscontrol/config.go
index 0e83a1c..71fbfb0 100644
--- a/hscontrol/config.go
+++ b/hscontrol/config.go
@@ -573,7 +573,7 @@ func GetHeadscaleConfig() (*Config, error) {
if err != nil {
return nil, err
}
- oidcClientSecret = string(secretBytes)
+ oidcClientSecret = strings.TrimSpace(string(secretBytes))
}
return &Config{