Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/content/docs/platform/secrets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ Today, secrets are provided as environment variables using the secret name as th
METABASE_API_KEY=********
```

#### Secret size limit

Because secrets are injected as environment variables, each one has to fit inside the operating system's per-variable limit of 128 KiB (131,072 bytes). Warp counts the full `NAME=value` string against that limit, so the usable value length is 128 KiB minus the secret's name, the `=` sign, and the terminating null byte.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] This points users to subtract the Warp secret's name, but typed secrets like AWS credentials are validated against generated env var names (AWS_ACCESS_KEY_ID, etc.), so the calculation can be wrong. Use the environment variable name instead.

Suggested change
Because secrets are injected as environment variables, each one has to fit inside the operating system's per-variable limit of 128 KiB (131,072 bytes). Warp counts the full `NAME=value` string against that limit, so the usable value length is 128 KiB minus the secret's name, the `=` sign, and the terminating null byte.
Because secrets are injected as environment variables, each resulting `NAME=value` entry has to fit inside the operating system's per-variable limit of 128 KiB (131,072 bytes), including the terminating null byte. Warp counts the environment variable name, the `=` sign, the value, and that null byte against the limit, so the usable value length is slightly less than 128 KiB and depends on the environment variable name.


Warp validates the size when you create or update a secret, so an oversized value is rejected up front rather than failing partway through a run. Secrets that expand into several environment variables, such as AWS credentials, are validated per variable.

If you hit the limit, store the large payload somewhere the agent can fetch it at run time (an object store or a secrets manager the agent can call) and keep only the fetch credential in the Warp-managed secret.

---

### Secret availability by trigger type
Expand Down
Loading