Stash can be configured to avoid storing clipboard entries that match a sensitive pattern, using a regular expression. The file set here should contain your regex pattern (no quotes).
Example regex to block common password patterns:
- (password|secret|api[_-]?key|token)[=: ]+[^\s]+
Declarations
Type
stringDefault
""Example
"/etc/stash/clipboard_filter"