Bug 55560 - "ucr info" command should print the type
"ucr info" command should print the type
Status: NEW
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-01-11 17:05 CET by Ingo Steuwer
Modified: 2023-01-11 20:37 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): bitesize
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2023-01-11 17:05:03 CET
Currently "ucr info" prints the description and the default of an variable, but not the configured type. This should be added.
Comment 1 Philipp Hahn univentionstaff 2023-01-11 20:37:26 CET
While this might work for simpl `Type={[ui]int,portnumber,bool,ip[v{4,6}]address,url_{http,proxy}}`, it will not work for `Type=str` as soon as it is combined with `Regex=…` or `Type=int` with arbitrary `Min=…` / `Max=…`: The current format was chosen at it is easy to validate by a machine, but a human might have a hard time to parse it.

This was already discussed as part of the implementation of Bug #54495 and we decided to have such human readable description as part the the UCRV description:

> $ ucr info directory/manager/rest/debug/level
> directory/manager/rest/debug/level: 2
> The verbosity of log messages in /var/log/univention/directory-manager-rest.log. Possible values: 0-4/99 (0: only error messages to 4: all debug statements, with = 99 sensitive data like cleartext passwords is logged as well).

See https://git.knut.univention.de/univention/ucs/-/blob/5.0-2/base/univention-config-registry/python/univention/config_registry/validation.py for all currently implemented types.