rdev/internal/handlers
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
..
agents_test.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
agents.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
architect_dto.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
architect.go fix(architect): handle missing projects in repo, add cookbook hooks/validation 2026-02-11 02:25:40 -07:00
audit_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
audit.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
blueprint_dto.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
blueprints.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
builds_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
builds_ws.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
builds.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
cache.go fix(rc-5): add Redis ACL persistence + cache reprovision endpoint 2026-02-24 20:22:31 -07:00
checkout_test.go feat(sessions): add command execution endpoint and activity tracking 2026-02-13 08:41:05 -07:00
checkout.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
claude_config_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
claude_config.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
components_operations_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
components_test.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
components.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
conversation_dto.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
conversations.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
create_and_build.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
credentials_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
credentials.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
diagnostics_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
diagnostics.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
domain_service_adapter.go feat: Add multi-domain support with auto-generated slugs for landing page cookbook 2026-01-28 12:55:59 -07:00
health_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
health.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
helpers_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
infrastructure_deploy.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -07:00
infrastructure_domain_test.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
infrastructure_domains_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
infrastructure_domains.go feat: implement composable monorepo template system with component architecture 2026-01-31 19:11:42 -07:00
infrastructure_mocks_test.go fix(rc-5): add Redis ACL persistence + cache reprovision endpoint 2026-02-24 20:22:31 -07:00
infrastructure_pipelines_test.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
infrastructure_pipelines.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
infrastructure_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
infrastructure.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
keys_test.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
keys.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
me.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
mock_operation_test.go feat: complete template upgrade - chassis framework, UI library, auth, app-nextjs, OpenAPI, and cookbook 2026-02-02 00:46:51 -07:00
notify.go feat: add POST /projects/{id}/notify/reprovision to migrate notify host 2026-02-23 21:28:59 -07:00
operations.go feat: add operations audit system and template improvements 2026-02-01 19:08:57 -07:00
project_access.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
project_management_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_management.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
projects_bench_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
projects_commands_test.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
projects_commands.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
projects_stream_test.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
projects_stream.go feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
projects_test.go feat: add diagnostics endpoint and external health monitoring 2026-02-03 19:10:56 -07:00
projects.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
question_dto.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
questions.go feat(foundary): implement complete backend for conversational project design 2026-02-09 00:50:46 -07:00
queue_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
queue.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
saga.go feat(saga): implement enterprise-grade resilience architecture 2026-02-08 01:58:02 -07:00
sdlc_artifacts.go feat: add artifact pass/fail/needs-fix lifecycle for SDLC execution phases 2026-02-02 22:14:53 -07:00
sdlc_branches_test.go feat: add SDLC branch management, merge, archive, and orchestrator APIs 2026-02-02 12:30:03 -07:00
sdlc_branches.go feat: add SDLC branch management, merge, archive, and orchestrator APIs 2026-02-02 12:30:03 -07:00
sdlc_callback.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_features.go feat: add SDLC orchestration - library, CLI, and API integration 2026-02-02 09:57:05 -07:00
sdlc_generate.go fix(sdlc): route conflict with SDLCGenerateHandler shadowing SDLC routes 2026-02-08 11:27:41 -07:00
sdlc_merge_test.go feat: add SDLC branch management, merge, archive, and orchestrator APIs 2026-02-02 12:30:03 -07:00
sdlc_merge.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -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_queries.go feat: add SDLC orchestration - library, CLI, and API integration 2026-02-02 09:57:05 -07:00
sdlc_tasks.go feat: add SDLC orchestration - library, CLI, and API integration 2026-02-02 09:57:05 -07:00
sdlc_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
sessions_exec.go feat: add claude_id tracking and session improvements for interactive dev 2026-02-24 00:20:32 -07:00
sessions_test.go feat: add claude_id tracking and session improvements for interactive dev 2026-02-24 00:20:32 -07:00
sessions.go feat: add claude_id tracking and session improvements for interactive dev 2026-02-24 00:20:32 -07:00
timeouts.go refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
verify_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
verify.go feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
webhooks_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
webhooks.go feat: add auth scopes, OpenAPI docs, SDLC guides, and code quality improvements 2026-02-02 13:55:50 -07:00
woodpecker_webhook_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
woodpecker_webhook.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_dto.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
work_lifecycle_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
work.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
workers_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
workers.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -07:00