Skip to content

Commit

Permalink
docs: update help for decrypt/encrypt (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt authored Sep 26, 2024
1 parent eeb45bd commit b5a3b6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixes
- fix: examples in the help of encrypt/decrypt commands

## [4.6.1] - 2024-08-09

### Fixes
Expand Down
6 changes: 3 additions & 3 deletions scripts/commands/decrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euf

dec_usage() {
cat <<EOF
helm secrets [ OPTIONS ] dec [ -i ] [ --terraform ] <path to file>
helm secrets [ OPTIONS ] decrypt [ -i ] [ --terraform ] <path to file>
Decrypt secrets
Expand All @@ -13,11 +13,11 @@ It uses your gpg credentials to decrypt previously encrypted values file.
You can use plain sops to decrypt specific files - https://github.com/getsops/sops
Typical usage:
$ helm secrets dec secrets/project/secrets.yaml
$ helm secrets decrypt secrets/project/secrets.yaml
# Decrypt file inline
$ helm secrets dec -i secrets/project/secrets.yaml
$ helm secrets decrypt -i secrets/project/secrets.yaml
EOF
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/commands/encrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euf

enc_usage() {
cat <<EOF
helm secrets [ OPTIONS ] enc [ -i ] <path to file>
helm secrets [ OPTIONS ] encrypt [ -i ] <path to file>
Encrypt secrets
Expand All @@ -15,7 +15,7 @@ This allows you to first decrypt the file, edit it, then encrypt it again.
You can use plain sops to encrypt - https://github.com/getsops/sops
Example:
$ helm secrets enc <SECRET_FILE_PATH>
$ helm secrets encrypt <SECRET_FILE_PATH>
$ git add <SECRET_FILE_PATH>
$ git commit
$ git push
Expand Down

0 comments on commit b5a3b6b

Please sign in to comment.