Skip to content

Conversation

@moosebay
Copy link
Contributor

@moosebay moosebay commented Feb 8, 2026

Covers architecture, file changes, testing strategy, and phasing for
adding {{#gcp:...}}, {{#aws:...}}, {{#azure:...}} secret references
to the expression/interpolation engine.

https://claude.ai/code/session_01K9aguf3SXNiy25vwT3wBkA

Covers architecture, file changes, testing strategy, and phasing for
adding {{#gcp:...}}, {{#aws:...}}, {{#azure:...}} secret references
to the expression/interpolation engine.

https://claude.ai/code/session_01K9aguf3SXNiy25vwT3wBkA
Implements infrastructure for resolving cloud secrets in {{}} template
expressions (Issue #23). Adds GCP Secret Manager support with #gcp:
prefix and optional #fragment JSON field extraction.

New packages:
- secretresolver: SecretResolver interface, ParseSecretRef, ExtractFragment
- secretresolver/gcpsecret: GCP Secret Manager implementation with caching

Expression package changes:
- Add #gcp:, #aws:, #azure: prefix recognition to resolveVar() dispatch
- Thread context.Context through interpolation for network calls
- Add SecretReferenceError type with provider/ref/fragment fields
- Add WithSecretResolver() builder on UnifiedEnv
- Mask secret values as "***" in variable tracking

Wiring:
- Add SecretResolver field to FlowNodeRequest
- Pass resolver through FlowLocalRunner -> FlowNodeRequest -> nodes
- Wire into request node (sync + async) and AI node
- Use variadic parameter in PrepareHTTPRequestWithTracking for
  backward-compatible secret resolver injection

Tests:
- Unit tests for fragment extraction, reference parsing, multi-resolver
- Expression tests with mock SecretResolver (GCP, AWS, Azure prefixes)
- Integration test skeleton behind gcp_integration build tag

Note: go.mod adds cloud.google.com/go/secretmanager dependency.
Run `go mod tidy` with network access to update go.sum.

https://claude.ai/code/session_01K9aguf3SXNiy25vwT3wBkA
@moosebay
Copy link
Contributor Author

moosebay commented Feb 9, 2026

Closing in favor of new PR with renamed branch (feat/ prefix) and squashed commits.

@moosebay moosebay closed this Feb 9, 2026
@moosebay moosebay deleted the claude/plan-issue-23-hGNnf branch February 9, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants