GitHub
07/20/2026, 2:13 PMosctrl-tls.
Changes
• Added EnvCache support to HandlersApi.
• Created invalidateEnvCache(...) helper for API handlers.
• Initialized NewRedisEnvCache in osctrl-api startup and passed it into handlers.
• Removed the old RedisCache handler dependency used only to set envcache:invalidate:{uuid} keys.
• Invalidated the shared environment cache after API environment mutations:
• create/update/delete
• config patch
• interval changes
• enrollment/removal actions
• package URL updates
• certificate uploads
• Updated cache-related comments to reflect direct Redis-backed cache invalidation.
Validation
GOCACHE=/tmp/osctrl-gocache go test ./pkg/cache ./pkg/settings ./pkg/environments ./cmd/api/handlers ./cmd/api ./cmd/tls/handlers ./cmd/tls
jmpsec/osctrlGitHub
07/20/2026, 3:44 PM