rvault
A tool to encrypt or decrypt JSON or YAML files that contain partial Ansible vault encrypted values.
This is a Rust port from here: https://github.com/OkieOth/partial-vaults/tree/main
Overview
rvault allows you to work with files that have a mix of plain text and Ansible Vault encrypted values. Unlike standard Ansible Vault which encrypts entire files, this tool lets you:
- Encrypt specific values within JSON or YAML files
- Decrypt specific values while leaving others encrypted
- Process nested structures with selective encryption
Install
# install
# use
Usage
# discover the provided flags our use the interactive mode
# run docker image
)) \
# run docker image to decrypt a file
)) \
Build
You can build this tool from source as native build or as docker image
# build binary
# Requirements: installed golang 1.24, make
# build docker image
# Requirements: installed docker
Additional
- Passwort for
resources/tests/partial.yaml: aa - Passwort for
resources/tests/partial_encrypted_example.json: test999 - Passwort for
resources/tests/partial_encrypted_example.yaml: test999