Ibotta / sopstool

SOPS multi-file wrapper
Apache License 2.0
38 stars 4 forks source link

Implement scm package for handling ignored files #50

Closed randrusiak closed 1 year ago

randrusiak commented 2 years ago

Story/Issue Link

Fixes #22 - sopstool add should add the file to SCM ignores

Background

I like the idea that sopstool is inspired by the blackbox project. One of the blackbox features is handling the .gitignore file.

I think there is no need to deeply explain why it is important. In short, it prevents secrets leaks.

How does it work? Very simple, it adds the origin filename to .gitingore if you add a new secret and removes the origin filename from .gitignore if you remove a secret. That's all. :)

Versioning

Additional Requests to Reviewers

Tasks

randrusiak commented 2 years ago

Thank you for your feedback. As you noticed, the gitignore file is usually small, but I think it's always a good idea to write better code. I'll try to figure it out next weekend. :)

randrusiak commented 2 years ago

Sorry for the delay. I made suggested fixes, and now it works without loading unnecessary data into memory :)