opentofu/internal/encryption
Christian Mesh 0d1e6cd5f0
Handle static variable secret flag (#2045)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-03 10:46:58 -04:00
..
compliancetest [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
config Fix typos (#1905) 2024-08-29 13:20:33 -04:00
enctest allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04:00
keyprovider Fix typos (#1905) 2024-08-29 13:20:33 -04:00
method add early validation for enforced encryption methods (#1711) 2024-06-12 21:06:06 +03:00
registry [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
base.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
default_registry.go Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04:00
encryption.go allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04:00
example_test.go allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04:00
keyprovider.go Handle static variable secret flag (#2045) 2024-10-03 10:46:58 -04:00
methods.go Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04:00
plan.go allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04:00
README.md Documentation updates for 1.7.0-alpha1 (state encryption) (#1396) 2024-03-14 15:05:05 +01:00
state.go allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04:00
targets_test.go Better handling of key_provider references (#1921) 2024-08-29 10:32:01 -04:00
targets.go allow static evaluations in encryption configuration (#1728) 2024-06-24 10:18:16 -04: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.