Step-by-step answer
Stretch 90 min7 stepsA per-firm credential proxy
A fake search provider with one key per firm, a FastAPI proxy that verifies a signed firm header, decrypts that firm's key from a Fernet vault, injects it into an allowlisted request and scrubs it from the response, and an agent tool that only ever talks to the proxy, so the key never reaches the tool's results, its errors or the logs, and forged, relabelled, stale and out-of-scope requests stop at the proxy.
Back to the exercise