bawskyB
ZITADEL2mo ago
bawsky

Is there a reliable/supported way to tell the Zitadel version using the API?

Usecase: I'm building a tailored Ruby SDK (with domain models, sane defaults, etc - a bit opinionated and tailored to our needs but fairly generic overall. I'm not using the official auto-generated Ruby SDK). On this project, I must know what version the Zitadel server is running, so the SDK can use the appropriate endpoints/parameters.

I found out that the metrics endpoint does return the Zitadel version:
GET "/debug/metrics"

response body:
# ...
target_info{service_name="ZITADEL",service_version="v3.4.2",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="1.35.0"} 1


So up until now I've been relying on that endpoint to get that information (using a simple regex). Is there any other reliable/supported way to tell the Zitadel version using the API?
As I understand, that endpoint can be disabled if metrics are disabled, so I suppose it's not a good idea to rely on it 😕
Was this page helpful?