News for hackers. Stuff that matters.
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.