From 73bd8015c3ba50ceb5168a8b67bb1ac5d3b48dc1 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 19 Aug 2023 12:28:39 +0100 Subject: Automatically filter out secrets (#1182) I'd like to extend the regex list here very soon, but start off by automatically filtering out secrets. Do not store them in history! I've included regex for: 1. AWS key id 2. Github pat (old and new) 3. Slack oauth tokens (bot, user) 4. Slack webhooks 5. Stripe live/test keys Will need updating after #806 --- docs/docs/config/config.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs') diff --git a/docs/docs/config/config.md b/docs/docs/config/config.md index 50b1d7f2..e30ca2ae 100644 --- a/docs/docs/config/config.md +++ b/docs/docs/config/config.md @@ -250,6 +250,20 @@ history_filter = [ ] ``` +### secrets_filter + +``` +secrets_filter = true +``` + +Defaults to true. This matches history against a set of default regex, and will not save it if we get a match. Defaults include + +1. AWS key id +2. Github pat (old and new) +3. Slack oauth tokens (bot, user) +4. Slack webhooks +5. Stripe live/test keys + ## macOS Ctrl-n key shortcuts macOS does not have an Alt key, although terminal emulators can often be configured to map the Option key to be used as Alt. *However*, remapping Option this way may prevent typing some characters, such as using Option-3 to type `#` on the British English layout. For such a scenario, set the `ctrl_n_shortcuts` option to `true` in your config file to replace Alt-0 to Alt-9 shortcuts with Ctrl-0 to Ctrl-9 instead: -- cgit v1.3.1