mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 11:17:35 -05:00
External key provider
Warning
This file is not an end-user documentation, it is intended for developers. Please follow the user documentation on the OpenTofu website unless you want to work on the encryption code.
This directory contains the external key provider. You can configure it like this:
terraform {
encryption {
key_provider "external" "foo" {
command = ["/path/to/binary", "arg1", "arg2"]
}
}
}
The external key provider must implement the following protocol:
- On start, the provider must emit the header line matching the header schema on the standard output.
- OpenTofu supplies
nullor the input metadata matching the input schema on the standard input. - The provider must emit the key material matching the output schema on the standard output.