Files
Xen-Orchestra-xen-orchestra…/@vates
Mathieu Piton fe29bd0d42 fix(openmetrics): keep the Prometheus secret across xo-server restarts
The `secret` property of `configurationSchema` used a random `default`. That
expression is re-evaluated every time the module is loaded, and xo-server never
persists the values ajv fills in from schema defaults, so each restart handed
the metrics endpoint a brand new bearer token and Prometheus started getting
401s.

Drop the default and generate the secret in `load()` instead, saving it through
`xo.configurePlugin()` so it survives a restart.

Introduced by #9323
See https://xcp-ng.org/forum/topic/12415
2026-08-24 10:16:19 +02:00
..
2025-10-27 12:13:55 +01:00
2026-07-29 15:30:14 +02:00
2024-05-30 13:15:38 +02:00
2026-04-24 14:38:15 +02:00