Demo: real third-party capture (Plaid flow, sealed keys, S3, env wiring)#157
Merged
Conversation
Adds a sealed banking-thirdparty-keys secret (real sandbox + synth keys) and per-service env patches so all 6 backend services read their third-party credentials from it, enabling real outbound capture instead of dummy defaults. transactions uses Spring relaxed-binding names (PAYMENT_*); ai-service is re-pointed off the mock ai-api-key secret. SealedSecret is sealed against the local minikube controller (cluster-specific; do not merge to master). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fetchPlaidBalance now acquires a real sandbox access_token via /sandbox/public_token/create + /item/public_token/exchange (cached) instead of fabricating access-sandbox-<acct>, so the Plaid balance call returns a real 200. Overlay pins a locally-built image (demo-plaid) for minikube. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ate) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
For the Speedscale mock demo, the banking services need to make real outbound calls to third parties so we can capture genuine responses and build responder mocks. As-is, services used dummy keys and the Plaid call fabricated an invalid token (
access-sandbox-<accountNumber>) so it always returned400 INVALID_ACCESS_TOKEN. Third-party credentials also weren't managed for GitOps.Solution
fetchPlaidBalancenow acquires a real token viaPOST /sandbox/public_token/create(ins_109508,initial_products:["transactions"]) →POST /item/public_token/exchange(cached), then/accounts/balance/get. Returns a real200with live balance data.banking-thirdparty-keysSealedSecret via per-service overlay env patches (transactions uses SpringPAYMENT_*relaxed-binding names; ai-service re-pointed off the mockai-api-key).banking-thirdparty-keys-sealed.yamlis sealed to the local minikube sealed-secrets controller; decoy clusters can't decrypt it.kustomization.yamlpinsaccounts-service:demo-plaid, a locally-built image.The genuinely upstreamable changes are the Plaid flow fix and the fake-AWS-cred removal; the sealed secret + image override are how this branch deploys on minikube via ArgoCD.
Verification
Plaid balance response: status=200in logs; proxymock showssandbox.plaid.com200 (was 400). 12 accounts returned ("Plaid Checking", …).statements/account-*.jsonto the real bucket.🤖 Generated with Claude Code