4
0

version_display.adoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [#version-display]
  2. = Version display
  3. NOTE: This feature was added in OliveTin version 3000.11.0.
  4. OliveTin can show or hide the application version in the web interface. This is controlled by the **showVersionNumber** policy, which can be set globally or per user/group via xref:security/acl.adoc#_acls_and_policies_global[ACL policies].
  5. == What you see
  6. When **showVersionNumber** is enabled (the default):
  7. * The page footer shows the application name and version, for example: **OliveTin 2024.06.02**.
  8. * If xref:reference/updateChecks.adoc[update checks] are enabled and a newer version exists, a link to the new version may appear in the footer.
  9. * xref:troubleshooting/server-diagnostics.adoc[Server diagnostics] includes the installed version.
  10. When **showVersionNumber** is disabled:
  11. * The footer shows only **OliveTin** (no version number).
  12. * No update-version link is shown, even if update checks are on.
  13. * In server diagnostics output, the version information is redacted, which can be useful for privacy when sharing the report.
  14. == Configuration
  15. The policy defaults to `true` for all users. You can change it in the **defaultPolicy** or override it per user or group in an ACL.
  16. === Hide version for everyone
  17. [source,yaml]
  18. .`config.yaml`
  19. ----
  20. defaultPolicy:
  21. showVersionNumber: false
  22. ----
  23. === Show version only for some users
  24. To hide the version by default but show it for certain users (for example, admins):
  25. [source,yaml]
  26. .`config.yaml`
  27. ----
  28. defaultPolicy:
  29. showVersionNumber: false
  30. accessControlLists:
  31. - name: admins
  32. matchUsergroups:
  33. - admins
  34. policy:
  35. showVersionNumber: true
  36. ----
  37. === Show version for everyone (default)
  38. If you do not set **showVersionNumber**, it is treated as `true`. To set it explicitly:
  39. [source,yaml]
  40. .`config.yaml`
  41. ----
  42. defaultPolicy:
  43. showVersionNumber: true
  44. showDiagnostics: true
  45. showLogList: true
  46. ----
  47. == See also
  48. * xref:security/acl.adoc[Access Control Lists] — how policies and ACLs work
  49. * xref:reference/updateChecks.adoc[Update Checks] — how OliveTin checks for new versions
  50. * xref:troubleshooting/server-diagnostics.adoc[Server diagnostics] — version is included or redacted based on this policy