opentofu/internal/encryption
Christian Mesh 979bf5ce3f
Fix #1407: Pass through metadata fields in state encryption (#1417)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-28 11:14:08 -04:00
..
compliancetest [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
config Refactor encryption configuration (#1387) 2024-03-13 10:58:52 -04:00
enctest Refactor encryption configuration (#1387) 2024-03-13 10:58:52 -04:00
keyprovider remove GCP KMS key reading from env (#1440) 2024-03-28 07:43:54 -04:00
method [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
registry [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
base.go Fix #1407: Pass through metadata fields in state encryption (#1417) 2024-03-28 11:14:08 -04:00
default_registry.go GCP KMS for Key Provider for Encryption (#1392) 2024-03-18 15:54:20 -04:00
encryption.go Refactor encryption configuration (#1387) 2024-03-13 10:58:52 -04:00
example_test.go Fix #1407: Pass through metadata fields in state encryption (#1417) 2024-03-28 11:14:08 -04:00
keyprovider.go Initial implementation of aws_kms encryption.key_provider (#1349) 2024-03-13 13:19:20 -04:00
methods.go [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
plan.go Fix #1407: Pass through metadata fields in state encryption (#1417) 2024-03-28 11:14:08 -04:00
README.md Documentation updates for 1.7.0-alpha1 (state encryption) (#1396) 2024-03-14 15:05:05 +01:00
state.go Fix #1407: Pass through metadata fields in state encryption (#1417) 2024-03-28 11:14:08 -04:00
targets.go Update to encryption key provider interface (#1351) 2024-03-08 07:55:08 -05:00

OpenTofu State and Plan encryption

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 folder contains the code for state and plan encryption. For a quick example on how to use this package, please take a look at the example_test.go file.

Structure

The current folder contains the top level API. It requires a registry for holding the available key providers and encryption methods, which is located in the registry folder. The key providers are located in the keyprovider folder, while the encryption methods are located in the method folder. You can also find the configuration struct and its related functions in the config folder.

Further reading

For a detailed design document on state encryption, please read this document.