Data protection
Hide secrets and personal data in tool results, and stop agents from sending secrets to any tool.
Godelgate inspects every tool call's arguments and every result, in addition to the lethal-trifecta check.
#Hide sensitive values in results
Set Hide in tool results on the Policy tab (or policy.dlp.redactResults):
| Setting | Hides |
|---|---|
secrets (default) | API keys and tokens (AWS, GitHub, Slack, Stripe, Anthropic, OpenAI, Google, Godelgate), private keys, JWTs, password=-style values |
secrets_and_pii | All of the above, plus email addresses, phone numbers, card numbers, IBANs and US social security numbers |
off | Nothing |
Matches are replaced with [redacted <kind>] before the agent sees the result. Card numbers and IBANs must pass their checksums, so order numbers and other long digit strings aren't touched. The audit log records which kinds were hidden in the call's reason.
#Block secrets in arguments
With Secrets in arguments: Block the call (policy.dlp.blockSecretsInArgs, on by default), a call whose arguments contain a secret is denied with the reason the arguments contain a secret (GitHub token). This stops an agent from pasting a key into an issue, a message or a web search.
#The audit log never stores secrets
Independently of these settings, the audit log removes values by field name (password, token, api_key...) and by shape (the secret kinds above), and truncates long values.
policy:
dlp:
redactResults: secrets_and_pii
blockSecretsInArgs: true