What are the best practices for securing notebooks in development?

0
10
Asked By CuriousCoder42 On

Hey everyone! I'm curious about how developers usually secure their notebooks and ensure they maintain good security hygiene. Recently, I scanned through around 5000 random notebooks on GitHub and found almost 30 AWS, OpenAI, Hugging Face, and Google keys, even though they were inactive. How do you all manage to keep your notebooks secure?

4 Answers

Answered By SarcasticScribe On

Devs and hygiene? That's a funny combination! /s

TeamPlayer23 -

In a collaborative space like this, maybe we could focus less on critiquing and more on constructive advice. Just a thought!

Answered By NotADevButAware On

I'm not a developer myself, but I always make sure not to store any secrets in plain text anywhere that could become public. It's a good practice to avoid issues altogether.

SecurityGuru99 -

That's definitely a wise approach!

Answered By DataDoodler On

Honestly, pre-commit hooks are essential in this process. Anything beyond that is really just trusting that everyone follows the rules, which doesn't always happen.

CodeChick247 -

What about using automation tools to help with these tasks? Any recommendations?

Answered By SecurityGuru99 On

To keep notebooks secure, we generally follow the same principles as we do for all code. Using private repositories is key, and we avoid hardcoding secrets directly in the code. It's also important to use secret management tools that are easy to integrate and secure. Implementing pre-commit hooks to check for any exposed secrets is a must, and automating alerts for when a secret is detected can help us react quickly.

DevToolFan88 -

Do you happen to use any specific tools like NB Defense from ProtectAI for that?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.