Documentation Index
Fetch the complete documentation index at: https://docs.poolside.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use redaction patterns to redact API keys, tokens, internal credentials, and other sensitive values that match a configured pattern. When text matches a redaction pattern, Poolside replaces it with⟦SECRET_REDACTED⟧ before sending the text to the model or storing it.
Organization patterns provide deployment-wide protection. User patterns provide local or project-specific protection without requiring administrator access. When an agent run cannot load organization patterns from the API, such as in standalone mode, fallback default patterns still protect common secret formats unless you turn them off in settings.yaml. Pattern-based redaction works independently of the secrets feature, so it can catch sensitive values even when they are not registered as secrets.
How redaction works
When you send a message or an agent receives tool output, Poolside checks the content before the agent sees it:- Exact-value redaction: Redacts values resolved through secrets interpolation. See Secrets for details.
- Pattern-based redaction: Redacts text that matches an organization, fallback default, or user regular expression pattern.
Choose where to configure patterns
Choose the pattern scope based on who needs the protection:| Scope | Use when | Managed in |
|---|---|---|
| Organization patterns, including Poolside-seeded defaults | You want the pattern to apply across the organization | Poolside Console |
| Fallback default patterns | You want common secret formats redacted when a run, such as standalone mode, cannot load organization patterns from the API | settings.yaml |
| User patterns | You need a personal or project-specific pattern | settings.yaml |
Organization patterns
If you belong to a team with thetenant-admin role, manage organization patterns in the Poolside Console under Security > Default organization patterns
Default organization patterns protect common secret formats. Your deployment starts with the seeded default set, which can change in product releases. Because administrators can also edit or delete defaults in the Poolside Console, the active defaults in your deployment can differ from this list. You also get this default set as fallback protection when an agent run, such as standalone mode, cannot load organization patterns from the API.| Pattern | Prefix / marker | Example match |
|---|---|---|
| Amazon Web Services (AWS) access key ID | AKIA | AKIA1234567890ABCDEF |
| AWS session token | ASIA | ASIA1234567890ABCDEF |
| AWS Security Token Service (STS) token | ABIA | ABIA1234567890ABCDEF |
| AWS CloudFront key | ACCA | ACCA1234567890ABCDEF |
| GitHub fine-grained personal access token | github_pat_ | github_pat_abc123... |
| GitHub classic personal access token | ghp_ | ghp_abc123... |
| GitHub OAuth token | gho_ | gho_abc123... |
| GitHub user-to-server token | ghu_ | ghu_abc123... |
| GitHub server-to-server token | ghs_ | ghs_abc123... |
| GitHub refresh token | ghr_ | ghr_abc123... |
| OpenAI project key | sk-proj- | sk-proj-abc123... |
| OpenAI service account key | sk-svcacct- | sk-svcacct-abc123... |
| OpenAI API key | sk- | sk-abc123... |
| Anthropic API key | sk-ant- | sk-ant-abc123... |
| Stripe webhook secret | whsec_ | whsec_abc123... |
| Stripe key | rk_, sk_, pk_ | sk_live_abc123... |
| Google API key | AIza | AIza1234567890-abc |
| Slack bot token | xoxb- | xoxb-1234-5678-abc |
| Slack user token | xoxp- | xoxp-1234-5678-abc |
| Slack app token | xapp- | xapp-1234-5678-abc |
| Node Package Manager token | npm_ | npm_abc123... |
| PyPI token | pypi- | pypi-abc123... |
| Poolside access token | ps- | ps-abc123...-def456... |
| Poolside refresh token | psr- | psr-abc123...-def456... |
| JSON Web Token (JWT) | eyJ | eyJhbGciOiJ... |
| Bearer token header | Bearer | Bearer eyJhbGci... |
| Privacy-Enhanced Mail (PEM) private key | -----BEGIN...PRIVATE KEY----- | Full PEM block |
| Fireworks API key | fw_ | fw_abc123... |
settings.yaml.
Fallback default patterns
Use this reference when you setsecrets.fallback_redaction_patterns to false and want to copy specific fallback defaults into secrets.redact_patterns. Poolside Console shows the active organization patterns for your deployment. This list shows the local fallback default patterns used when an agent run, such as standalone mode, cannot load organization patterns from the API.
settings.yaml
User patterns
Add user redaction patterns tosecrets.redact_patterns in your settings.yaml file when you need a pattern that does not require administrator access:
settings.yaml
secrets.fallback_redaction_patterns to false.
For a complete reference of supported settings.yaml keys, see Settings file reference.
Each pattern requires:
name: A non-empty identifier for the pattern.pattern: A valid RE2 regular expression.
function, 123, hello world, true, const, or return. This prevents overly broad patterns like .* from stripping useful content from tool output.
Settings file locations
| File location | Use this for |
|---|---|
.poolside/settings.local.yaml | Personal, project-specific. Do not commit. Takes precedence over all other files. |
.poolside/settings.yaml | Shared, project-specific. Commit and share with your team. |
~/.config/poolside/settings.yaml | Personal defaults (all projects). Applies when no project-level settings override it. |
Manage organization patterns
Prerequisites- You belong to a team with the
tenant-adminrole.
- In the Poolside Console, navigate to Security >
Redaction Patterns.
- To update an existing default or organization pattern, click the ellipsis (…) in the row and select Edit. To add a new organization pattern, click Add Pattern.
- In Name, enter a descriptive name for the pattern.
- In Pattern (RE2 regex), enter the regular expression you want Poolside to redact. Use RE2 syntax quick reference in the editor to check common regular expression syntax while you write or troubleshoot the pattern.
- In Test your pattern, paste or edit sample text to confirm that the pattern matches the values you expect to redact.
- Click Save.
Redaction warnings
Poolside displays redaction warnings when redaction activity might need your attention. These warnings are shown to you, not to the agent. Warnings appear in the IDE as session notifications and in thepool CLI as yellow warning messages. Each warning appears only one time per session to avoid noise.
| Trigger | Threshold | What it means |
|---|---|---|
| Poolside redacts the same secret value or pattern-based match multiple times in one step | More than 3 replacements per step | The matched value may be too short or too common, causing false positives |
| Poolside redacts a pattern-based match from tool output | Any match | Tool output contains a string that matches a configured secret format |
Troubleshooting
Legitimate values appear redacted
If you see⟦SECRET_REDACTED⟧ where no actual secret exists, a redaction pattern might be matching a non-secret value.
Check whether the redacted value matches a default organization pattern, an organization pattern, or a user pattern in settings.yaml.
If the match affects your workflow, try one of the following fixes:
- Make the user pattern more specific.
- Ask an administrator to adjust the organization pattern.
- Set
secrets.fallback_redaction_patternstofalse, then copy over only the default patterns you need. - Restructure the output to avoid the match.
Redaction warnings appear repeatedly
Frequent redaction warnings for a specific secret usually mean the secret value is too short or too generic. Replace it with a longer, unique value.Pattern rejected during validation
Poolside rejects patterns that match common code tokens. Make your pattern more specific. For example, instead of[A-Za-z]+, use a pattern that includes a distinguishing prefix like MYCO_[A-Za-z0-9]{32}. If you are editing an organization pattern, use Test your pattern and RE2 syntax quick reference in the Poolside Console pattern editor before you save.