-
-
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] dns.use_username_in_magic_dns configuration key is deprecated warning #2065
Comments
The DNS configuration I have set up is as follows: I am not receiving any messages since I implemented it, and it functions well.
|
please use markdown formatting, this is impossible to read. |
I got the same warning on the v.0.23.0-beta2 Docker image:
Config: server_url: https://domain.com:443
listen_addr: 0.0.0.0:8080
metrics_listen_addr: 0.0.0.0:9090
grpc_listen_addr: 127.0.0.1:50443
grpc_allow_insecure: false
private_key_path: "/var/lib/headscale/private.key"
noise:
private_key_path: "/var/lib/headscale/noise_private.key"
prefixes:
v4: 100.64.0.0/10
v6: fd7a:115c:a1e0::/48
allocation: sequential
derp:
server:
enabled: true
region_id: 999
region_code: "headscale"
region_name: "Headscale Embedded DERP"
stun_listen_addr: "0.0.0.0:3478"
private_key_path: "/var/lib/headscale/derp_server_private.key"
automatically_add_embedded_derp_region: true
urls: []
paths:
- /etc/headscale/derp.yaml
auto_update_enabled: true
update_frequency: 24h
disable_check_updates: true
ephemeral_node_inactivity_timeout: 1h
database:
type: postgres
postgres:
host: ...
port: 5432
name: headscale
user: headscale
pass: "..."
max_open_conns: 10
max_idle_conns: 10
conn_max_idle_time_secs: 3600
ssl: true
log:
format: text
level: debug
dns:
magic_dns: true
base_domain: clients.domain.com
nameservers:
global:
- 192.168.100.20
# - 1.1.1.1
# - 9.9.9.9
split: {}
search_domains:
- clients.domain.com
extra_records: []
unix_socket: /var/run/headscale/headscale.sock
unix_socket_permission: "0770"
logtail:
enabled: true
randomize_client_port: false |
I think its because I use viper to set it default false, should be fixed shortly. |
Fixes juanfont#2065 Signed-off-by: Kristoffer Dalby <[email protected]>
Fixes juanfont#2065 Signed-off-by: Kristoffer Dalby <[email protected]>
This warning is bogus. Even we remove use_username_in_magic_dns in config.yaml, it still shows up. Because LoadConfig() set a default and later warns about it: https://github.com/juanfont/headscale/blob/main/hscontrol/types/config.go#L249 viper.SetDefault("dns.use_username_in_magic_dns", false) |
Yes, just mentioned that in the previous comment, its fixed in #2075 |
Is this a support request?
Is there an existing issue for this?
Current Behavior
Since upgrading to 0.23.0-beta2, I'm now seeing the following in the startup log. I don't have use_username_in_magic_dns in the DNS section of the config.yaml file.
2024-08-20T21:13:50Z WRN
WARN: The "dns.use_username_in_magic_dns" configuration key is deprecated and has been removed. Please see the changelog for more details.
Expected Behavior
I'm only warned of the deprecation if I use use_username_in_magic_dns in the DNS section of the config.yaml file.
Steps To Reproduce
Environment
Runtime environment
Anything else?
config.yaml
The text was updated successfully, but these errors were encountered: