Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 2.08 KB

README.md

File metadata and controls

38 lines (22 loc) · 2.08 KB

avtool

License: MIT Go Report Card Coverage Status go.dev reference

NOTE: Original code written by @pbthorste for https://github.com/pbthorste/avtool

HUGE SHOUT OUT to @pbthorste

This module provides a reimplementation of ansible-vault encrypt and decrypt functionality in Go.

CLI Tool

Please see gwvault for a purpose built ansible-vault binary written in go.

It leverages the work done by @pbthorste for https://github.com/pbthorste/avtool while further fleshing out the CLI tool to be more in line with the original ansible-vault CLI tool.

v2 to v3

In the v3.0.0 update there are breaking changes to the interface.

The Encrypt and Decrypt methods now expect the EncryptOptions and DecryptOptions parameter types as inputs.

The EncryptFile and DecryptFile methods now expect the EncryptFileOptions and DecryptFileOptions parameter types as inputs.

This change was made to allow for easier extension of the library without the need for future major version bumps.

Why the fork?

As of writing the mainline has been stale for ~4 years.

I have found this code to be highly useful and important for writing other ansible-vault related tools. I wanted to modernize the work done previously to support go.mod while also updating the interface as an importable module for other code.

Thanks and Attribution

Original code written by @pbthorste