-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Remote CLI Configuration Problem after Upgrading to Headscale 0.23.0 #2193
Labels
bug
Something isn't working
Comments
I can confirm your issue and have a small addition to your workaround:
is sufficient to use the settings from the environment variables. Still, both methods to configure the gRPC connection should be equally supported. |
nblock
added a commit
to nblock/headscale
that referenced
this issue
Oct 26, 2024
* Document the configuration via a minimal configuration file or via environment variables * Style and typo fixes Ref: juanfont#2193
nblock
added a commit
to nblock/headscale
that referenced
this issue
Oct 27, 2024
* Document to either user a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use HEADSCALE_CLI_INSECURE=1 to skip certificate verification. * Style and typo fixes Ref: juanfont#2193
nblock
added a commit
to nblock/headscale
that referenced
this issue
Oct 27, 2024
* Document to either use a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use `cli.insecure: true` or `HEADSCALE_CLI_INSECURE=1` to skip certificate verification. * Style and typo fixes Ref: juanfont#2193
nblock
added a commit
to nblock/headscale
that referenced
this issue
Oct 30, 2024
* Document to either use a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use `cli.insecure: true` or `HEADSCALE_CLI_INSECURE=1` to skip certificate verification. * Style and typo fixes Ref: juanfont#2193
nblock
added a commit
to nblock/headscale
that referenced
this issue
Nov 12, 2024
* Document to either use a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use `cli.insecure: true` or `HEADSCALE_CLI_INSECURE=1` to skip certificate verification. * Style and typo fixes Ref: juanfont#2193
nblock
added a commit
that referenced
this issue
Nov 13, 2024
* Document to either use a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use `cli.insecure: true` or `HEADSCALE_CLI_INSECURE=1` to skip certificate verification. * Style and typo fixes Ref: #2193
hopleus
pushed a commit
to hopleus/headscale
that referenced
this issue
Nov 16, 2024
* Document to either use a minimal configuration file or environment variables to connect with a remote headscale instance. * Document a workaround specific for headscale 0.23.0. * Remove reference to ancient headscale version. * Use `cli.insecure: true` or `HEADSCALE_CLI_INSECURE=1` to skip certificate verification. * Style and typo fixes Ref: juanfont#2193
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a support request?
Is there an existing issue for this?
Current Behavior
After upgrading from Headscale 0.23.0 beta 3 to 0.23.0, the remote CLI command headscale nodes list fails with the following error:
github.com/juanfont/[email protected]/cmd/headscale/cli/root.go:49 > Error loading config error="fatal error reading config file: Config File \"config\" Not Found in \"[/etc/headscale /Users/user/.headscale]\""
This occurs even when
HEADSCALE_CLI_ADDRESS
andHEADSCALE_CLI_API_KEY
environment variables are correctly set.Expected Behavior
The remote CLI should function properly when either of the following conditions are met:
HEADSCALE_CLI_ADDRESS
andHEADSCALE_CLI_API_KEY
environment variables are set correctly, without requiring an additional configuration file.~/.headscale/config.yaml
or/etc/headscale/config.yaml
) is present with the correct CLI settings.The remote CLI should be able to connect to the Headscale server and execute commands (such as
headscale nodes list
) without encountering configuration-related errors, regardless of whether the configuration is provided via environment variables or a configuration file.Steps To Reproduce
HEADSCALE_CLI_ADDRESS
andHEADSCALE_CLI_API_KEY
environment variables, without any additional configuration files.headscale nodes list
Environment
Runtime environment
Anything else?
Workarounds
Two workarounds have been identified:
HEADSCALE_CLI_ADDRESS
andHEADSCALE_CLI_API_KEY
and create an empty file at~/.headscale/config.yaml
~/.headscale/config.yaml
file with the following content:Possible Cause
The issue may be related to commit 8a3a0fe, which removed the
IsCLIConfigured
check inhscontrol/types/config.go
.Proposed Solutions
We have two potential solutions to address this issue:
docs/ref/remote-cli.md
to recommend using a configuration file instead of environment variables.Questions
The text was updated successfully, but these errors were encountered: