rdev/internal/service
jordan 17240f4efd fix(rc-5): add Redis ACL persistence + cache reprovision endpoint
## Changes

### port.Deployer interface
- Add PatchProjectSecrets(ctx, projectName, patch) to merge key-value pairs
  into all K8s secrets labeled project={projectName}
- Add RestartAll(ctx, projectName) to trigger rolling restart of all deployments
  for a project, picking up fresh secrets without waiting for CI

### deployer adapter
- Implement PatchProjectSecrets: lists secrets by label, merges patch into Data,
  writes each secret back
- Implement RestartAll: lists deployments by label, sets restartedAt annotation

### domain/credential.go
- Add CredentialCategoryCache = "cache" constant
- Use constant in component_infra.go (was raw string "cache")

### handlers/cache.go (new)
- POST /projects/{projectID}/cache/reprovision
- Calls CreateProjectCache (which handles delete+recreate with new password)
- Updates credential store (REDIS_URL, REDIS_URL_STAGING, REDIS_PREFIX)
- Patches all K8s secrets for the project immediately
- Triggers RestartAll so pods pick up new credentials without waiting for deploy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 20:22:31 -07:00
..
apikey_service_test.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
apikey_service.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
architect_service.go fix(architect): handle missing projects in repo, add cookbook hooks/validation 2026-02-11 02:25:40 -07:00
blueprint_service.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
build_progress_test.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
build_progress.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
build_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
build_service.go refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
checkout_service.go feat(sessions): add command execution endpoint and activity tracking 2026-02-13 08:41:05 -07:00
component_batch.go fix: inject SERVICE_NAME/SERVICE_PORT for app components in batch path 2026-02-23 11:52:03 -07:00
component_deploy.go fix: worker deployments and JWT_SECRET auto-provisioning 2026-02-23 03:42:53 -07:00
component_infra.go fix(rc-5): add Redis ACL persistence + cache reprovision endpoint 2026-02-24 20:22:31 -07:00
component_listing.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_test.go fix: handle missing Redis credentials and redis.Nil in provisioner 2026-02-23 05:19:00 -07:00
component_updates_test.go fix(templates): harden component CI steps and compile regexes 2026-02-09 19:36:23 -07:00
component_updates.go fix(templates): harden component CI steps and compile regexes 2026-02-09 19:36:23 -07:00
component.go fix: worker deployments and JWT_SECRET auto-provisioning 2026-02-23 03:42:53 -07:00
conversation_service.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
diagnostics_service_test.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
diagnostics_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
mock_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
operation_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_infra_crud.go feat: improve notify domain verification reliability and add status endpoints 2026-02-23 16:25:55 -07:00
project_infra_domains.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_infra.go feat: hook in notify service for per-project email delivery 2026-02-21 00:30:32 -07:00
project_service_agent.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
project_service_commands.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
project_service_queue.go feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
project_service_test.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
project_service.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
question_service.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
saga_executor.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
sdlc_callback_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_callback.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_generate_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_generate.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_orchestrator_test.go refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
sdlc_orchestrator.go refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
sdlc_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
session_service_test.go feat: add claude_id tracking and session improvements for interactive dev 2026-02-24 00:20:32 -07:00
session_service.go feat: add claude_id tracking and session improvements for interactive dev 2026-02-24 00:20:32 -07:00
verify_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_service.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
worker_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
worker_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00