Skip to content
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

Better validation of config file #475

Open
mohe2015 opened this issue Feb 14, 2021 · 0 comments
Open

Better validation of config file #475

mohe2015 opened this issue Feb 14, 2021 · 0 comments
Labels

Comments

@mohe2015
Copy link

Subject of the issue

I think it would be great if

  1. There would be a command to validate the config file (e.g. before reloading or restarting). Preferably this could be run without connecting to any ports etc. so you could run this in the build system (for NixOS)
  2. Options that are not used would be detected so a misspelled security-important option would be detected
  3. Also better validation of other options. E.g. it seems like an invalid provisioner type is ignored.

Your environment

  • OS - NixOS
  • Version - 2021-02-14 (branch systemd)

Steps to reproduce

n/a

Expected behaviour

Better validation of configuration file

Actual behaviour

Nonexisting options are ignored, some other options are also not validated correctly.

I didn't look in the code at all so I don't know how easy or hard this would be.

Crossref: NixOS/nixpkgs#112322

@mohe2015 mohe2015 added bug needs triage Waiting for discussion / prioritization by team labels Feb 14, 2021
@dopey dopey removed the needs triage Waiting for discussion / prioritization by team label Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants