mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #657] Feature request: Redact specified strings / regexes #949
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @5HT2 on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/657
Describe the feature
I would appreciate the ability to redact specific strings or regexes from recordings & streams.
I did consider "just pipe your commands through a filter", but I would like to present the following points:
I understand that this entirely free software with hosting that is paid for out of pocket - the ability to redact specific information in-real-time is important to me, however much I would like to use this tool otherwise.
I would also be just as happy to open a pull request if this is a feature that you are willing to consider.
Behavior goals
The usage flags could include:
--redact-mode: [none (default) | string (exact string match) | regex | config]--redact-char:charto replace redacted content with.•/*@ku1ik commented on GitHub (Oct 20, 2024):
Have you tried using
awk,sedor similar tool to replace occurrences of sensitive information in existing.castfiles? The recordings encode the terminal output in plain text, which is easily greppable, so it should be pretty easy to setup anawkpipeline/script/alias to do that automatically after every recording session.@5HT2 commented on GitHub (Oct 23, 2024):
Oh I did not realize that you could just modify the cast files after the fact. That's a fine solution then, thank you!