Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#13016·signoz

v0.137.1: admin (root) gets authz_forbidden deleting/updating a service account or its API key created before upgrade

Author: felipe-valois-clickbusCreated Sep 29, 2026Updated Sep 29, 2026

Version: v0.137.1 (community, Helm), service accounts + factor API keys.

What happens An org admin — the root user, role signoz-admin — cannot delete, update or revoke a service account (or its API key) that was created on an earlier version. Every write returns 403:

DELETE /api/v1/service_accounts/{id}
-> authz_forbidden: user/<root> is not authorized to perform serviceaccount:delete on resource "<sa-id>"

DELETE /api/v1/service_accounts/{id}/keys/{fid}
-> authz_forbidden: ... not authorized to perform factor-api-key:delete on resource "<key-id>"

PUT /api/v1/service_accounts/{id}/keys/{fid}   (set expiresAt)
-> authz_forbidden: ... not authorized to perform factor-api-key:update on resource "<key-id>"

GET /api/v1/service_accounts, GET /api/v1/service_accounts/{id} and GET .../keys work for the same user, and GET /api/v2/users/me shows isRoot: true with role signoz-admin.

Expected An admin can revoke any service account key in its org — otherwise a leaked or rotated key can't be invalidated.

Suspected cause The routes in pkg/apiserver/signozapiserver/serviceaccount.go check per-resource (CheckResources with the resource ID). The affected service account and key were created on 2026-08-28, before the upgrade; service accounts created after it look fine. It seems the authz tuples for pre-existing resources were never backfilled, so even the admin role has no relation to them.

Repro

  1. Create a service account + API key on an older version.
  2. Upgrade to v0.137.1.
  3. As admin, try to delete the service account or its key.

Source: SigNoz/signoz

View original on GitHubView discussion on GitHub