secrets

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: Unlicense Imports: 16 Imported by: 0

README

Secrets

A utility to lock your secrets and store them securely using AES-GCM encryption in your repository, and unlock them when you need them.

Install

go install github.com/mertenvg/secrets@latest

Usage

You may specify any number of files to lock and unlock along with each command. These will be combined with any files listed in a secrets.yaml configuration file.

When using this tool for the first time on a project, if no key is provided one will be generated for you. Please make sure you store the key securely so you can unlock your files again when you need them.

# show help
secrets -h

# lock some files
secrets -l file-one file-two file-n

# unlock some files
secrets -u file-one file-two file-n

# lock and unlock to restore clear text secrets files
secrets -lu

# unlock files and wait before locking again (default is 10 minutes unless terminated manually, but can be overridden with -m [--minutes=#] and -s [--seconds=#] if desired)
secrets -u -w ...
secrets -u -w -m 5 -s 30

# dry run
secrets -l -d

# force file updates when there are conflicts
secrets -l -f

Configuration

Create a secrets.yaml file in the root of your project and include a list of the files you wish to have locked

files:
  - example.secret.txt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL