You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem ziti edge create config expects the user to create a json config that is full and complete and matches the schema. When the user misses something, the error is not immediately obvious. For example this host.v1 config is subtlely wrong (pluralized protocols):
{
"address":"127.0.0.1",
"protocols":["udp", "tcp"], # this key is wrong, it should be `protocol` with the value type of `string` and not list
"port":'"${PORT}"',
"listenOptions": { "identity": "$tunneler_id.name" }
}
leading to an error that is difficult to parse and understand even for a very advanced CLI user:
"error": {
"cause": {
"field": "(root)",
"reason": "(root) is invalid: (root): Must validate \"else\" as \"if\" was not valid",
"value": "map[address:127.0.0.1 listenOptions:map[identity:$tunneler_id.name] port:3889 protocols:[udp tcp]]"
},
Desired Outcome
it would be a better experience for the user if we could do something such as:
somehow be able to guide the user through the process of creating the config, (perhaps with input prompts)
add numerous flags for the "80% usecase" to let the ziti cli compose the representative json before sending it to the controller
validate the json in the CLI and try to decipher the issue before sending to the controller
some other solution that would help people find/fix this error
The text was updated successfully, but these errors were encountered:
Problem
ziti edge create config
expects the user to create a json config that is full and complete and matches the schema. When the user misses something, the error is not immediately obvious. For example this host.v1 config is subtlely wrong (pluralized protocols):leading to an error that is difficult to parse and understand even for a very advanced CLI user:
Desired Outcome
it would be a better experience for the user if we could do something such as:
The text was updated successfully, but these errors were encountered: