Secret Detection
write_file, create_file, append_log, and staged uploads (upload_session action: “complete”) are scanned for 20+ secret patterns before content reaches storage. Matched secrets are blocked by default; the full secret never persists.
Note:restore_versiondoes not re-run secret scanning. If an old version contains a secret that was previously allowed, restoring it will succeed. Secret scanning is also subject to policy — if you need to store secrets for agent use, see thevault_secrettool below. See also Common Errors for restore behavior details.