Skip to content

Redaction on matched command outputs and/or multiline redaction #10027

@micahnz

Description

@micahnz

Pre-submit Checks

Describe the solution you'd like?

One of the biggest things holding be back from using this more right now in my SysOps/DevOps workflow is what is being transmitted to the agent which means I have to be very careful about commands I use during an agent session and their outputs, or limit my use.

Secret Redaction works great for single line API keys etc but there cases where I want to redact the entire output of a command like env or kubectl get secret(s)? so I don't have to change terminals when performing commands that would create a sensitive output, so it would be helpful to have a secret redaction option that will match a command and redact the entire output of that command.

This could also be achieved allowing multi-line redaction so I can write rules like .Kind: Secret. or something and have it redact the entire output.

Both would be useful, the command output redaction probably the most useful since I could add common patterns like ssh/id_ed25519 or id_rsa and other sensitive files or directories so they never accidentally leak to an agent, I would also maintain a list of commands for my team for which all outputs should be considered secret which would be super handy.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

Operating system (OS)

Linux

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:settings-keybindingsSettings UI, preferences, keybindings, and keyboard-shortcut management.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.enhancementNew feature or request.ready-to-specThe issue is ready for a product and technical spec.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions