ShipitSmarter / vscode-sops-edit

Extension to make editing of SOPS encrypted files easier
MIT License
14 stars 4 forks source link

SOPS easy edit

SOPS edit use gif

Decrypt Encrypt use gif

Once you have SOPS setup for your GIT project, it can be a pain in the behind trying to not forget decrypting SOPS encrypted files before editing, and encrypting them again before committing.

This extension makes sure you don't have to think about that anymore. It will allow you to only see and edit decrypted files, but only save and commit the encrypted versions.

But How?

This extension is built to facilitate the following:

It does so by doing the following:

* I.e., any file that satisfies any of the combinations of .sops.yaml file paths and their path_regex conditions.

NOTE: It is still possible to edit the SOPS encrypted file directly, if desired, by right-mouse-clicking the encrypted file in the left explorer bar, and selecting SOPS: edit directly.

Requirements

Recommendations

Contributions

Event listeners

This extension adds the following event listeners:

Editor menu buttons

Decrypt encrypt

This extension adds the following buttons to the top-right editor menu of every SOPS encrypted or encryptable file *:

* I.e., any file that satisfies any of the combinations of .sops.yaml file paths and their path_regex conditions.

Right-mouse buttons

Right-mouse-menu

This extension adds the following right-mouse-menu button to any yaml/yml/json/env/ini/txt file:

Settings

Settings

This extension adds the following settings:

Limitations

This extension has the following limitations:

This extension does NOT do or help with any of the following:

Dependencies

This extension happily makes use of the following outstanding npm packages: