cozystack/pkg/registry
Myasnikov Daniil 5c68447763 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>
(cherry picked from commit 61ed7ad89c)
2026-04-28 14:07:29 +00:00
..
apps/application fix(application): address review feedback for WorkloadMonitor integration 2026-04-15 17:22:15 +03:00
core fix(api): address review feedback on TenantNamespace watch path 2026-04-28 14:07:29 +00:00
fields fix(registry): implement field selector filtering for label-based resources 2026-01-10 01:44:20 +01:00
sorting [registry] Remove unused ObjectMetaWrapper 2025-12-26 13:06:35 +03:00
registry.go [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
utils.go fix(apiserver): properly handle Watch resourceVersion and bookmarks 2026-01-16 16:02:44 +01:00