opentofu/internal/encryption
Christian Mesh d7e96665f6
Add unencrypted Method for migrations (#1458)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-12 09:38:21 -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 Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04:00
keyprovider add OpenBao as key provider for state encryption (#1436) 2024-04-08 13:38:17 +01:00
method Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04:00
registry [State Encryption] Compliance tests (#1377) 2024-03-14 15:53:40 +01:00
base.go Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04:00
default_registry.go Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -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 Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -04: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 Add unencrypted Method for migrations (#1458) 2024-04-12 09:38:21 -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.