cozystack/pkg/registry/core
Myasnikov Daniil 61ed7ad89c
fix(api): address review feedback on TenantNamespace watch path
- Hoist user identity extraction out of the Watch goroutine; reuse a
  cached username and groups map across events instead of re-fetching
  them per event. Watch now returns Unauthorized up front when no user
  is present in the context, rather than failing silently per event.
- Switch the per-event access-check error log to structured klog.ErrorS
  to comply with the project Go style guide.
- Strengthen TestGet_WithAccess to assert the concrete *TenantNamespace
  type plus Name, Kind, and APIVersion, so type or metadata regressions
  fail fast.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-28 16:33:37 +05:00
..
tenantmodule fix(apiserver): properly handle Watch resourceVersion and bookmarks 2026-01-16 16:02:44 +01:00
tenantnamespace fix(api): address review feedback on TenantNamespace watch path 2026-04-28 16:33:37 +05:00
tenantsecret fix(apiserver): properly handle Watch resourceVersion and bookmarks 2026-01-16 16:02:44 +01:00