mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #216] Including command in asciinema recordings is a security problem #773
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#773
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 @cemerick on GitHub (Jul 17, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/216
I discovered that if I provide a command e.g.
asciinema rec -c 'export API_KEY=...; ./script.sh' output.json, then that command will be included verbatim inoutput.jsonin thecommandslot. Now that I know this, I can take care to put sensitive information (like API keys, URLs for private services, etc) in a script or scrub the output to null out thecommandattribute, but I'd like to suggest thatcommandbe included only when explicitly requested.@ku1ik commented on GitHub (Jul 17, 2017):
Good catch. For some reason it never occured to me (and I am person who does care about privacy in general).
We can either disable it by default and add a switch + config file option like you suggested, or we can include
commandwhen recording to a file but drop it from JSON when uploading (both when uploading implicitly throughasciinema recor when doing it explicitly from local file throughasciinema upload file.json).@cemerick commented on GitHub (Jul 17, 2017):
rectime is really when it matters; especially for those that are self-hosting the player (like me), the assumption is that you can just drop the JSON file anywhere as-is.@ku1ik commented on GitHub (Jul 17, 2017):
Fair enough. There's not that much use for it anyway - we display it on the recording page in place of a title when a title was not explicitly set and the recording explicitly specified the command via
-c(which is less frequent case).@cemerick commented on GitHub (Jul 17, 2017):
In that case, it seems like you want exactly the reverse of what you suggested: exclude when writing the file, but include when uploading?
@ku1ik commented on GitHub (Oct 27, 2017):
This was solved in #234.