Current version: 0.4.0
SOPS encryption / decryption batch tool
A wrapper around sops written in Rust, that allows bulk encryption, decryption or updating of keys, based on a configuration file.
.sops.yaml
file that specifies what keys to use:
yaml
creation_rules:
<ul>
<li>key_groups:
<ul>
<li>pgp:
<ul>
<li>"XXXXX"</li>
</ul></li>
<li>age:
<ul>
<li>"XXXXX"
.sops-batch.toml
file that specifies what files to act on:
toml
files = [
"foo.yaml",
"bar.json"
]
sops-batch
in your $PATH
.
*-linux-gnu
version, or the *-linux-musl
version for a static binary.*-apple-darwin
version. This should also work on M1.*-windows-gnu
version.sops-batch -h
.See the examples folder.
sops-batch
includes a self-update feature, introduced in version 0.3.0
:
```sh $ sops-batch self-update Checking target-arch... x86_64-unknown-linux-gnu Checking current version... v0.0.0 Checking latest released version... v0.3.0 New release found! v0.0.0 --> v0.3.0 New release is NOT compatible
sops-batch release status: * Current exe: ".../sops-batch" * New exe release: "sops-batch0.3.0x8664-unknown-linux-gnu" * New exe download url: "https://gitlab.com/api/v4/projects/36884529/packages/generic/0.3.0/x8664-unknown-linux-gnu/sops-batch"
The new release will be downloaded/extracted and the existing binary will be replaced. Do you want to continue? [Y/n] y Downloading... [00:00:00] [========================================] 4.82MiB/4.82MiB (0s) Done Extracting archive... Done Replacing binary file... Done Binary updated to version 0.3.0. ```
MPL-2.0, see LICENSE file for details.