Skip to main content

# HeySops

A helpful utility for interfacing with sops. Inspired by [git-secret](https://git-secret.io/)

## Configuration

### Environment Variables

  • SOPS_PATH - Set the path to the sops binary. By default, it will search the path for the SOPS binary file.

### Configuration File

HeySops uses a configuration file named .heysops.yaml or .heysops.yml. This file should be stored in the root of your repository, next to your .gitignore file.

## Commands

### Common Arguments

  • -c - Specify a .heysops.yaml file to use during execution.

  • -f - Force an action, such as overwriting files.

  • -v - Display informational log event entries

### Init

  • heysops init - Creates a .heysops.yaml file in the current directory if it does not exist. This must be run before other commands. You can have multiple .heysops.yaml within a folder structure.

### Encrypt

  • heysops encrypt - Encrypts all files that were previously encrypted with this tool. Uses the .heysops.yaml file in the local directory. If .heysops.yaml is not found in the current directory, it traverses upwards until it finds one. If it doesn’t find one, it warns and exits.

  • heysops encrypt [file] - Encrypts the specified file, creating a new file alongside it with the .sops extension.

  • heysops encrypt –type {json,yaml,dotenv,binary} [file] - Encrypts the specified file, creating a new file alongside it with the .sops extension. Passes the specified –type to sops’s –input-type argument. Will use the same type on decryption.

### Decrypt

  • heysops decrypt - If no files are specified, it looks for a file named .heysops.yaml in the local directory. If .heysops.yaml is not found in the current directory, it traverses upwards until it finds one. If it doesn’t find one, it warns and exits. Prompts if the decrypted file name already exists.

  • heysops decrypt [file] - Decrypts the specific file. Prompts if the decrypted file name already exists.

### Clean

  • heysops clean - Removes all decrypted files if we have an encrypted copy.

### Forget

  • heysops forget [file] - Untrack a file within .heysops.yaml. This will leave the file on the system and no longer interact with it through other commands.

Metadata

Release files for heysops 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heysops 0.0.1
File Size Uploaded
heysops-0.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heysops 0.0.1
File Interpreter ABI Platform
heysops-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / heysops-0.0.1.tar.gz

Download URL heysops-0.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0239d3469dc799107c632a52f3ef5a7a6d8676e1fbd03e35779e4afed9a3abc
BLAKE2b-256 checksum
How to use checksums
f901922d58672430fd434ec49d869bc3a78c5970bfab54d3053e346cd88f6615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / heysops-0.0.1-py3-none-any.whl

Download URL heysops-0.0.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0f313e418551c1c7b26f8d1bac0c60a302414ea89642c3a8c16db2180247da4
BLAKE2b-256 checksum
How to use checksums
c53d36012473fb7bfd85c8e640b3334c6b4276642842624cee34d67c42556ecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page