You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for redacting private/sensitive information #16421
I'd like the ability to automatically mask sensitive information in terminal windows. Masking application output would be great; masking user input (e.g., passwords on command line) would be nice as well.
This would be useful when screen sharing, demos, and when recording screencasts.
Terminal needs to know what to mask. At the very least it should have a user-editable series of regexes to detect potentially sensitive information. Even better would be integration with GitHub's existing secret scanning code, masking anything that matches GitHub's token patterns.
Masked information could use a specific Unicode character (or one of a few similar Unicode characters), so it's as obvious as possible that the output was masked.
Ideally, copying a masked value would copy the original plaintext, so copy/paste works the same as it always does, ignoring the masking.
and I thought it was genuinely super cool. Now admittedly, this is from a project where someone is writing their own shell, so they're able to parse all the output from the client app then change it to colored block-drawing characters before it even hits the Terminal, but I thought it was a super clever idea.
(this of course wouldn't work for a11y at all, but then presumably, you'd disable it if you use a screen reader)
Activity
237dmitry commentedon Dec 5, 2023
Like this?
zadjii-msft commentedon Dec 5, 2023
I saw something like this a while back
from https://youtu.be/NxsaHxON350?si=af0dLmZVEYsIeJN-&t=503
and I thought it was genuinely super cool. Now admittedly, this is from a project where someone is writing their own shell, so they're able to parse all the output from the client app then change it to colored block-drawing characters before it even hits the Terminal, but I thought it was a super clever idea.
(this of course wouldn't work for a11y at all, but then presumably, you'd disable it if you use a screen reader)
also xlink #5916