Validate all yaml configuration keys on upload & respond to unrecognized keys with meaningful errors #26875
Labels
~apple-mdm-maturity
Contributes to maturity in macOS, iOS, or iPadOS MDM product category.
~csa
Issue was created by or deemed important by the Customer Solutions Architect.
~dogfood
Issue resulted from Fleet's product dogfooding.
~engineering-initiated
Engineering-initiated story, such as a bug, refactor, or contributor experience improvement.
:product
Product Design department (shows up on 🦢 Drafting board)
Please see: #26450 (comment)
Problem
Fleet allows yaml configurations to be uploaded that aren't validated & don't give meaningful errors.
The Fleet web app should by default have awareness of every key / val that is useable in every API endpoint or config.
What have you tried?
Example:
calendar_event_enabled:
vs.calendar_events_enabled:
The 2nd string is a real key that works. The 1st key results in a successful upload & a silent failure that does not modify configuration. Bare minimum, for a key that is not recognized by Fleet there should be a response that lets a GitOps user know there is a syntax problem.
Potential solutions
Validate all known keys in configuration uploads, not just top-level keys.
What is the expected workflow as a result of your proposal?
GitOps is easier to use.
cc @allenhouchins
The text was updated successfully, but these errors were encountered: