News for hackers. Stuff that matters.
Re:How to Run a Live Coding Stream on Twitch Using OBS by nickjj on Tuesday July 14, 2020 @02:54PM (#23836107)
One thing that I was surprised not to see in the post was how to deal with editing files that have secrets (such as API keys or email credentials).

When I set up OBS, I overlayed a full screen image that says I'm showing something secret which had nothing but a small webcam feed in the bottom right so folks could still see me but not my desktop. It was assigned to a global hotkey toggle of course.

Re:How to Run a Live Coding Stream on Twitch Using OBS by VikingCoder on Tuesday July 14, 2020 @03:48PM (#23836852)
I think the best way to deal with secrets is to not live stream them, at all, ever, in any way.

If you have secrets anywhere near your live stream, it's not a question if "if" you will leak them but "when." Don't put yourself in that situation.

Work _hard_ to keep yourself out of that situation.

Re:How to Run a Live Coding Stream on Twitch Using OBS by corobo on Tuesday July 14, 2020 @04:10PM (#23837157)
That would require no secrets. All it takes is a misclick into a .env file.

I’d assume you’re not coding on a production system so your secrets shouldn’t be too hard to revoke, cycle them after your stream and any time you leak them.

Re:How to Run a Live Coding Stream on Twitch Using OBS by xxpor on Tuesday July 14, 2020 @04:27PM (#23837382)
Secrets should really be stored in services, not files outside of maybe a single bootstrap file (unless you're working on the secret storage service itself).

I generate my secrets once, send them off to the secrets service, and then my service queries that service. I never see the secrets with my own eyes.

Re:How to Run a Live Coding Stream on Twitch Using OBS by this-pony on Tuesday July 14, 2020 @05:36PM (#23838258)
This sounds like a turtles all the way down kind of think... Then is it OK to keep the secret of the secrets service, or something in that sense.
Re:How to Run a Live Coding Stream on Twitch Using OBS by dfee on Tuesday July 14, 2020 @10:48PM (#23840663)
The idea is that you keep the name of the secret, and grant access to the secret manager via roles / policies which are generally open to devs on a subnet for a development environment but locked down in production environments.
Re:How to Run a Live Coding Stream on Twitch Using OBS by tnorthcutt on Tuesday July 14, 2020 @04:32PM (#23837457)
Can you expand on this? What service do you use to store your secrets?
Re:How to Run a Live Coding Stream on Twitch Using OBS by dividedbyzero on Tuesday July 14, 2020 @04:36PM (#23837500)
What are you using for this? This sounds like a neat setup.
Re:How to Run a Live Coding Stream on Twitch Using OBS by corobo on Tuesday July 14, 2020 @04:57PM (#23837755)
It is a single bootstrap file, it bootstraps your env variables

I've not come across what you describe

Re:How to Run a Live Coding Stream on Twitch Using OBS by evan_ on Tuesday July 14, 2020 @08:41PM (#23839913)
Put a couple hundred line breaks at the top of your .env file so if you open it it’s just white space
Re:How to Run a Live Coding Stream on Twitch Using OBS by VikingCoder on Tuesday July 14, 2020 @04:54PM (#23837723)
I think we're probably agreeing with each other, except I'm not willing to call those things "secret." They're public. If you can plan to properly publicize something, great. But work _hard_ to make sure you're really okay publicizing it.
Re:How to Run a Live Coding Stream on Twitch Using OBS by nickjj on Wednesday July 15, 2020 @06:35AM (#23843377)
It's not always possible to do this.

Let's say I live streamed implementing Stripe. There's no way to avoid not showing my test API keys if I'm going to show the end to end process of setting everything up. The best I could do is to roll the keys before I start the stream but this degrades the quality of the stream since it's not from scratch.

Of course those keys and anything else that's sensitive would be sitting in an .env file, and I'd also have an .env.example file showing how it's set up without anything sensitive being in there (I do this already in my pre-recorded videos). Even going as far as preventing the real .env file coming up when I fuzzy open files so I don't open it by accident and the contents of that file being ignored from multi-file searches.

Re:How to Run a Live Coding Stream on Twitch Using OBS by mcny on Wednesday July 15, 2020 @08:02AM (#23843972)
Maybe the answer is simpler than that. Rotating a key should never be painful. If you accidentally reveal a key, it should be straightforward to change it (I'm sure your audience will understand if you take a one minute break).
Re:How to Run a Live Coding Stream on Twitch Using OBS by nickjj on Wednesday July 15, 2020 @11:14AM (#23846356)
The reveal wouldn't be by accident typically. It could be a necessary requirement based on the content you're streaming.

If you revealed a Stripe key only to change it 1 minute afterwards, you still need a process to change it in secret, which goes back to my original reply of setting up a dedicated "secret" scene so you can modify things in private.

Re:How to Run a Live Coding Stream on Twitch Using OBS by evv on Wednesday July 15, 2020 @12:29PM (#23847573)
You can switch to a different scene when handling sensitive details, like the camera feed or the "technical difficulties" scene. This is how I've seen folks deal with secrets in the past
Re:How to Run a Live Coding Stream on Twitch Using OBS by VikingCoder on Wednesday July 15, 2020 @09:17AM (#23844746)
I'm sorry, but you claimed "it's not always possible to do this," and then your example started "Let's say I live streamed."

You are making the choice to live stream. It is always possible to avoid live streaming. Always.

Re:How to Run a Live Coding Stream on Twitch Using OBS by 29athrowaway on Tuesday July 14, 2020 @03:53PM (#23836931)
On Twitch:

- Not only I have seen secrets revealed on stream, like passwords and tokens and such... I have seen people working with databases full of personally identifiable information, and you could see names, phone numbers, e-mails and addresses on stream. There are irresponsible people out here.

- I have seen people doxxing themselves by showing their git identity, or some popup window with some licensing information such as "Registered to: John Doe", or when the autocomplete suggestions on their browser search bar shows "[Facebook favicon] John Doe".

As you can see, there are many, many ways to leak your identity on stream. If you want to have a discrete online presence, try to do all your work on a dedicated VM, or take measures such as using a dedicated browser for your stream related activities, a separate git identity, hide splash screens, and pay attention to detail at how things look before you go live.

Re:How to Run a Live Coding Stream on Twitch Using OBS by pjc50 on Tuesday July 14, 2020 @03:58PM (#23836992)
.. why would you live stream yourself if you weren't willing to expose your real identity?
Re:How to Run a Live Coding Stream on Twitch Using OBS by 29athrowaway on Tuesday July 14, 2020 @04:04PM (#23837086)
Note that many streamers do not use a webcam, or don't show their faces on camera. Some do use a camera but still conceal their basic personal information.

There are benefits to streaming. It somehow makes you productive, because you don't want to look bad in front of your audience.

Plus, there are smart people on Twitch. A lot of lurkers that do not stream have an impressive amount of knowledge.

Money-wise, it's not worth it. The category that has the most programmers, "Science & Technology", has only 2,000 viewers at a time on a good day. That is very little compared to other categories. If you want to make money, publishing YouTube videos may be way more profitable than Twitch.

Re:How to Run a Live Coding Stream on Twitch Using OBS by fpgaminer on Tuesday July 14, 2020 @05:36PM (#23838259)
> Some do use a camera but still conceal their basic personal information.

That's really the critical bit. It's one thing to show your face on camera. It's another to show your name and address. The latter bits are regularly used to, e.g., SWAT streamers. Let's just say that streamers are all too familiar with legal trusts.

Re:How to Run a Live Coding Stream on Twitch Using OBS by yxhuvud on Tuesday July 14, 2020 @05:30PM (#23838186)
I can totally see why for really big streamers, to avoid stalkers and crap.
Re:How to Run a Live Coding Stream on Twitch Using OBS by WorldMaker on Tuesday July 14, 2020 @05:08PM (#23837912)
There is a mention of it, but it isn't clearly marked that this is in part specifically why: the article author takes a dual monitor approach and presumably restricts all secrets to the monitor that is never involved in any of the scenes (the main laptop monitor in this case).

Though with keyboard camera they probably should be more careful in which scenes show that if any of those secrets are typed rather than say copy/pasted.

Re:How to Run a Live Coding Stream on Twitch Using OBS by jdoliner on Tuesday July 14, 2020 @06:09PM (#23838614)
This reminds me of a very funny moment I saw where a streamer was opening his beta invite key for a new game live and realized when he did that he had just leaked the key and someone was going to steal his invite, but he had a 10 second stream delay setup which give him just enough time to rush and enter the key before anyone else could use it.
Re:How to Run a Live Coding Stream on Twitch Using OBS by unnouinceput on Tuesday July 14, 2020 @10:38PM (#23840592)
Twitch has like 30 seconds delay, giving you plenty of time for this kind of moments. If you need more then 30 seconds, then you're out of luck and shouldn't be on Twitch in the first place.
Re:How to Run a Live Coding Stream on Twitch Using OBS by drchickensalad on Wednesday July 15, 2020 @12:30AM (#23841316)
That's not true at all in 2020. Most streamers have low latency on which reduces it to ~3 seconds or less.
Re:How to Run a Live Coding Stream on Twitch Using OBS by unnouinceput on Wednesday July 15, 2020 @09:04AM (#23844578)
And I would not recommend stay in low latency feature of Twitch. You are there to show people something, not to live chat with them. Opt-out of it and comeback to normal 30 seconds delay. Reasons to do this includes, but not limited to:

-1 -if gaming on a FPS, enemies might use your Twitch stream to find you. 30 seconds delay allows you to actually use counter-measures and employ disinformation tactics on your stream

-2 -if showing something, chat should be secondary, not primary. You're not on a live AMA, for that use Youtube LIVE (or chaturbate if that's your thing, I don't judge)

-3 -as said above, to give you time to react to your own mistakes

-4 -post processing for additional effects/reasons. Making a loop allows you to cut into mid-stream in some cases. This is an advanced use though, I only know of one twitcher that uses this

Re:How to Run a Live Coding Stream on Twitch Using OBS by andrewzah on Wednesday July 15, 2020 @01:53PM (#23848944)
"You are there to show people something, not to live chat with them"

Many, many streamers expressly DO want to live chat with viewers. As a viewer, I don't like streamers that don't interact with chat. I may as well as watch a youtube video at that point. As a streamer, the entire point for me is to interact with people. If all I wanted to do was showcase something, I'd make youtube videos...

There are other methods one can use to avoid i.e. stream sniping besides having a long latency.

"You're not on a live AMA"

Twitch literally has a "Just Chatting" category. That said, there's nothing wrong with a streamer taking a break from the game to just chat for a bit. If you don't like that, instead of telling people how they should act, why not find a different streamer or use a different platform?

Re:How to Run a Live Coding Stream on Twitch Using OBS by Kuinox on Tuesday July 14, 2020 @06:49PM (#23839045)
Personally, I would stream on a VM to avoid secret leak. PR you own projects, never put any secret on this VM.