feat: add Temporal config and update routing with memory service integration

- Add TemporalConfig struct to internal/config
- Update gateway config with Temporal frontend service (port 7233)
- Update router with memory service adapter support
- Add config.local.yaml with memory service configuration
- Encrypt production config with SOPS (AES256_GCM)
- Support X-Service header routing pattern for service discovery
- Keep legacy path-based routes with deprecation warnings
- All 5 adapters preserved: workflow, memory, sqs, s3, iam
This commit is contained in:
Admin Bot
2026-09-13 10:56:18 +09:00
parent 67f24ea763
commit b8f95506ca
4 changed files with 47 additions and 128 deletions
+4
View File
@@ -164,6 +164,10 @@ func (d *Dispatcher) dispatchHTTP(w http.ResponseWriter, r *http.Request, upstre
req.URL.Path = method.UpstreamPath
req.RequestURI = ""
req.Host = parsedURL.Host
// Preserve Authorization header for S3 SigV4 and other auth schemes
// Note: httputil.ReverseProxy preserves most headers automatically,
// but we need to ensure Authorization isn't lost when overriding Director
}
timeout := adapter.Spec.Upstream.TimeoutSeconds