October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

How to Keep Proxy Credentials Out of Agent Logs and Tool Responses

A secure agent setup keeps reusable proxy credentials in a trusted application, vault, or proxy, while limiting what agents, tools, and logs can see.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep long-lived proxy credentials in a trusted application, secrets manager, or proxy—not in prompts, agent-readable environment variables, reusable agent definitions, or tool output. Have a trusted boundary authenticate an approved request and return only the result the agent needs. Then check every place request data can persist, including traces, tool-server and proxy logs, errors, and observability exports.

Choose a boundary the agent cannot read

The key question is whether agent-generated code can access the real credential. If a secret is injected into an environment the agent can inspect, it is exposed to that code. Storing a value in a secrets manager first does not change that if the application later injects it into the agent-readable environment. OpenAI describes this risk in its agent safety guidance.

As an Amazon Associate I earn from qualifying purchases.

Instead, let the agent request a narrow operation and have trusted application code, a function tool, or an egress proxy attach authentication after the operation is approved. Return a small result object rather than raw authenticated request or response material. This keeps the credential outside the model-visible exchange, but it does not by itself prevent other components from logging sensitive data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compare the main credential paths

Design Where authentication happens Can agent code read the credential? Important limitation
Application-owned function tool or server In trusted application code, which calls the upstream service and returns the result Not if the application keeps the credential out of the agent environment and response The application must protect its own storage, logs, and tool boundary.
OpenAI-hosted sandbox with vault-backed environment credential An OpenAI network proxy substitutes the real secret for a placeholder in an approved HTTPS request The sandbox receives a placeholder, not the real value Does not provide credentials to self-hosted environments or application-run function tools; placeholder must be passed unchanged in a supported request.
OpenAI MCP over HTTP, session credential Credential is supplied in session transport configuration Depends on the connection boundary; the guide says the credential is encrypted and omitted from the returned session resource Keep it out of reusable definitions and logs.
OpenAI MCP over HTTP, vault credential A matching vault credential is used for connections from OpenAI Designed to keep reusable credentials out of agent definitions Applies to the documented OpenAI-origin connection setup.
MCP over stdio with environment values Credential is placed in the process environment Yes, code running in that environment can read it Do not treat an environment variable as secret from the tool-server process.
MCP HTTP from an environment Inline authentication or a trusted proxy Depends on whether the environment can inspect the credential The documented OpenAI setup does not use vault credentials for environment-origin HTTP.

These MCP distinctions follow OpenAI’s remote MCP guide; the sandbox behavior is described in its agent safety guidance. For self-hosted agents, provide your own trusted server or proxy boundary rather than assuming an OpenAI-hosted credential feature applies.

#1 Best Overall
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Configure the OpenAI-hosted sandbox credential boundary

In OpenAI’s documented hosted-sandbox pattern, the sandbox request contains a placeholder. A network proxy substitutes the actual secret only for approved hosts. The placeholder mechanism works when passed unchanged in a supported HTTPS request; it cannot reveal the secret for local computation such as request signing. If signing or other local secret-dependent work is required, keep that operation in trusted application code and expose it through a function tool.

Configure connectivity and credential injection as separate controls:

  • Network destination policy: allowed_domains controls which hosts the sandbox can reach.
  • Credential destination policy: credential allowed_hosts controls where the proxy may inject the secret. OpenAI specifies exact host names here, without a scheme, path, port, or wildcard.
  • Transport constraints: the documented proxy supplies credentials only to HTTPS destinations on port 443 or 8443.
  • Policy intersection: with restricted network access, the credential host must also be reachable under the sandbox network policy.

A host being reachable does not automatically mean it should receive a credential. Restrict both lists to the destinations the task needs. See the OpenAI sandbox and vault credential guidance for the current platform behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Thetis Pro For Business - FIDO2 Security Key L1 MFA & NFC Passkey Access For School ERP, Employee Online Account, Compatible with Coinbase Google Workspace Apple ID Window Salesforce,Dual USB A +USB C
  • FIDO2 & Passkey Ready: Business-ready and FIDO2 L1 certified. This key is supported by major management suites and is ideal for both individual and enterprise deployment. Works seamlessly with Gmail, Facebook, GitHub, Dropbox, Coinbase, and more.
  • Dedicated Manager App: Use the Thetis Manager App for the initial hardware PIN setup. Setting the PIN on the device first ensures a smooth registration process. Once the PIN is configured, you can begin registering the key across your favorite FIDO2-compatible online services.
  • Universal Connectivity (USB-C, USB-A, & NFC): Designed for PCs, Macs, iPhones, and Android. For mobile use, simply unfold the key, align it with your phone’s NFC antenna, and hold for a few seconds to authenticate.
  • Enhanced MFA (FIDO2 & TOTP/HOTP): Strengthen your security with flexible options. Use the Manager App to access TOTP/HOTP features for accounts that do not yet support FIDO2.
  • Check FIDO2 compatibility before purchase - Known limitations: ID Austria is not supported (requires FIDO2 Level 2). Windows Hello login only works with Windows Enterprise editions that support Entra ID. NFC is supported only through mobile authentication, Not MacOS/windows.

Keep credentials out of MCP configuration and agent definitions

OpenAI’s MCP guide describes session-scoped HTTP credentials, reusable HTTP credentials stored in a vault for connections from OpenAI, and stdio credentials supplied as environment values. For environment-origin HTTP, the guide calls for inline authentication or a trusted proxy rather than vault credentials. Choose based on where the tool server runs and which code can inspect its process or configuration.

  • Do not put a reusable secret in a prompt, agent definition, plugin archive, or source file.
  • For stdio, assume code running in the environment can read process environment values.
  • For HTTP, use the session or vault option only for the connection mode it supports; use an application-side or proxy boundary when the agent environment must not see the value.

Connection-mode details are in the OpenAI remote MCP guide. A vault is useful only when the secret remains on the trusted side of the boundary instead of being copied into agent-readable configuration.

Redact before data is persisted

Redacting a dashboard display is too late if the unredacted event has already been written to a log store or exported. Inspect every component that handles the request and its errors: agent traces, framework callbacks, tool-server logs, proxy access logs, exception reporting, observability exports, and downstream response handling.

Rank #3
Kensington VeriMark NFC+ USB‑C Security Key, FIDO2/WebAuthn Hardware Authenticator for Passwordless Login, Works with Windows, macOS & Chrome OS, K64739WW
  • USB-C or tap via NFC for easy authentication on any compatible device. No drivers needed; optional Kensington software available for advanced management features.
  • Works across Windows, macOS, iOS, Android, ChromeOS, and supports Passkeys and Apple ID.
  • Slim, keychain-ready form for easy carry and on-the-go authentication
  • IP68-rated for dependable performance
  • FIDO CTAP 2.1 for enhanced security features (e.g. resident credentials, Passkey support) and backwards compatibility with CTAP 2. FIDO2 L2 certified security for phishing resistant protection against identity theft and unauthorized access.

Unless there is a narrowly controlled diagnostic need, avoid persisting:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Authorization and proxy-authorization headers or fields
  • Credential-bearing URLs
  • Full request and response bodies that may contain secrets or sensitive data
  • Exception objects or error details that may include headers, URLs, or payloads

Apply redaction at the point logs are created, and verify each component’s actual behavior. A proxy can separate authentication from agent code, but it does not automatically control what the proxy, tool server, framework, or downstream service records.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep model and tool payload logging off by default

The OpenAI Agents JS SDK configuration guide states: “Model and tool data, including related error objects and details, is not included in logs by default.” Sensitive-data logging is an explicit opt-in and should be enabled only where logs are handled securely. The guide says programmatic configuration for model and tool data takes precedence over the relevant environment variables; unset or unrecognized variables leave the default redaction in place, while setting them to 0 or false opts into logging.

Rank #4
Sale
Thetis Nano-A FIDO2 Security Key Hardware Passkey Device with USB Type A, TOTP/HOTP, FIDO2.0 Two Factor Authentication 2FA MFA, Works with Windows/mac/iOS/Android/Linux/Gmail/Facebook/GitHub/Coinbase
  • Ultra-Compact FIDO2 Security Key - Plug-and-stay or carry on a keychain. This USB-A hardware security key offers portable, always-on protection for desktop and mobile use. (Item Size: 0.75 X 0.74 IN x 0.25 IN)
  • USB-A Hardware Key for All Devices - Works with USB-A ports on PC, Mac, Android, and other laptop/notebook device. Enables secure, cross-platform login with FIDO2.0 passkey support.
  • FIDO Certified Security Key - Meets FIDO and FIDO2 standards. Works with Google, Microsoft, GitHub, Dropbox, and more. Please check service compatibility before purchase.
  • Passwordless Login with Passkey - Supports passkey login via WebAuthn and CTAP2. Enjoy password-free sign-ins where supported. Not all websites or services currently support passkeys.
  • Advanced Multi-Factor Authentication - Offers 200 FIDO2 passkey slots and 50 OATH-TOTP slots. Strong, flexible 2FA/MFA support across various apps and authentication platforms.

Confirm the behavior against the SDK version installed in your application: the guide does not state a package version. If debugging requires payloads, use a controlled environment with restricted access and limited retention, then turn the setting back off. These details are in the OpenAI Agents JS SDK configuration guide.

Use a deployment checklist

  1. Store: Put the long-lived credential in a controlled application-side store or vault. Do not copy it into prompts, source files, reusable configuration, plugin archives, or diagnostic output.
  2. Mediate: Expose a narrow operation to the agent. Have trusted code or an approved proxy attach authentication and return only the result needed for the task.
  3. Constrain: Allow only required tools and destinations. Separately restrict which hosts can receive credential injection; where supported, also scope methods and credential lifetime.
  4. Review persistence: Check agent traces, framework callbacks, tool-server and proxy logs, exception reporting, observability exports, and downstream response handling. Redact before writing or exporting.
  5. Verify logging defaults: Keep sensitive model and tool payloads disabled in normal operation. If temporary debugging access is justified, limit who can see the logs and how long they are retained, then disable payload logging again.
  6. Respond to exposure: Revoke or rotate a suspected leaked credential and audit persisted logs and traces for copies. Later redaction cannot remove a value already sent to another store.

These controls align with the OWASP Securing Agentic Applications Guide 1.0, which recommends isolated agent execution, restricted filesystem and network access, dedicated secret management, credential rotation, and checks that secrets are not written to logs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.