juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
23.49k stars 1.29k forks source link

[Feature] strict config validation #1926

Open SuperSandro2000 opened 6 months ago

SuperSandro2000 commented 6 months ago

Use case

I've run multiple times into issues because I've miss typed a config key name or forgot to copy a letter. Headscale should catch that and fail early in when loading the config and complain about keys it doesn't know.

Description

I am imagining something like json's DisallowUnknownFields() which complains if any field cannot be mapped into a struct.

Contribution

How can it be implemented?

No response

kradalby commented 6 months ago

I agree, the whole config management is a bit of a pain, I particularly does not like that it can only be loaded and not easily dumped at the moment.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 90 days with no activity.

SuperSandro2000 commented 3 months ago

Useless comment