Skip to content

Commit

Permalink
move repo owner for sops (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxraven authored Aug 14, 2023
1 parent 065efeb commit c760f2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ brews:
system "#{bin}/sopstool version"
install: |
bin.install "sopstool"
goarm: ""
goamd64: ""

blobs:
- provider: s3
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Maintainability](https://api.codeclimate.com/v1/badges/addf39da73692548e1e3/maintainability)](https://codeclimate.com/github/Ibotta/sopstool/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/addf39da73692548e1e3/test_coverage)](https://codeclimate.com/github/Ibotta/sopstool/test_coverage)

sopstool is a multi-file wrapper around [sops](https://github.com/mozilla/sops). It uses the sops binary to encrypt and decrypt files, and piggybacks off the .sops.yaml configuration file.
sopstool is a multi-file wrapper around [sops](https://github.com/getsops/sops). It uses the sops binary to encrypt and decrypt files, and piggybacks off the .sops.yaml configuration file.

sopstool provides functionality to manage multiple secret files at once, and even use as an entrypoint to decrypt at startup, for container images. Much of this behavior is inspired by the great [blackbox project](https://github.com/StackExchange/blackbox).

Expand Down Expand Up @@ -89,10 +89,10 @@ curl https://raw.githubusercontent.com/Ibotta/sopstool/main/install.sh | bash -s

### Installing sops manually

sopstool requires [sops](https://github.com/mozilla/sops). You can use one of the following methods:
sopstool requires [sops](https://github.com/getsops/sops). You can use one of the following methods:

- From one of the public repositories (it is available in most)
- From the [official releases](https://github.com/mozilla/sops/releases)
- From the [official releases](https://github.com/getsops/sops/releases)

#### Installing the sops binary with our script installer

Expand Down Expand Up @@ -121,7 +121,7 @@ To avoid needing to find the 'latest' binary by hand or by script, use our https

### Installing sopstool manually

Following the lead of [sops](https://github.com/mozilla/sops), we only build 64bit binaries.
Following the lead of [sops](https://github.com/getsops/sops), we only build 64bit binaries.

#### Installing the sopstool binary using our script installer

Expand Down Expand Up @@ -156,7 +156,7 @@ Additionally, all other release assets are also within this folder. This include

## Usage

This is a package that builds a single binary (per architecture) for wrapping [sops](https://github.com/mozilla/sops) with multi-file capabilities.
This is a package that builds a single binary (per architecture) for wrapping [sops](https://github.com/getsops/sops) with multi-file capabilities.

for more details, use the built-in documentation on commands:

Expand All @@ -178,7 +178,7 @@ sopstool completion --sh zsh

## Configuration

1. use a [`.sops.yaml`](https://github.com/mozilla/sops#using-sops-yaml-conf-to-select-kms-pgp-for-new-files) file
1. use a [`.sops.yaml`](https://github.com/getsops/sops#using-sops-yaml-conf-to-select-kms-pgp-for-new-files) file

- this will be at the root of your project. this file is used to both configure keys as well as hold the list of files managed.
- it needs to specify at least one KMS key accessible by your environment
Expand All @@ -196,7 +196,7 @@ sopstool completion --sh zsh
1. Follow along the [Configuration Steps](https://github.com/Ibotta/sopstool/tree/main/#configuration), and place the `.sops.yaml` file at the root directory where your scripts will run.
- All files added to SOPS are relative, or in child directories to the `.sops.yaml` configuration file.
1. Create a file to encrypt(any extension other than `.yaml` if you wish to do the **ENTIRE** file), or create a yaml file with `key: value` pairs(and make sure it's extension is `.yaml`). Sops will encrypt the values, but not it's keys.
- You can read more about [SOPS Here](https://github.com/mozilla/sops).
- You can read more about [SOPS Here](https://github.com/getsops/sops).
1. At this point, `sopstool` is ready and you can now `sopstool add filename`. You'll notice it will create a `filename.sops.extension`. This is your newly encrypted file.
- When your files are properly encyrepted, you can run `sopstool clean` to remove the original plain text secret files.
1. Now, you can interact via the command line in various ways.
Expand Down
6 changes: 3 additions & 3 deletions sopsinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ usage() {
this=$1
cat <<EOF
$this: download binaries for mozilla/sops
$this: download binaries for getsops/sops
Usage: $this [-b bindir] [-o OS] [-a ARCH] [-z dir] [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-o target OS (windows, linux, darwin) - uses uname by default
-a target architecture (amd64, arm64) - uses uname by default
-z save an archive instead of installing
-d turns on debug logging
[tag] is a tag from https://github.com/mozilla/sops/releases
[tag] is a tag from https://github.com/getsops/sops/releases
If tag is missing, then the latest release will be used.
EOF
Expand Down Expand Up @@ -302,7 +302,7 @@ End of functions from https://github.com/client9/shlib
------------------------------------------------------------------------
EOF

OWNER="mozilla"
OWNER="getsops"
REPO="sops"
BINARY="sops"
BINDIR="${BINDIR:-./bin}"
Expand Down

0 comments on commit c760f2c

Please sign in to comment.