Initial wiring of encryption through the command package (#1316)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh
2024-03-07 08:55:57 -05:00
committed by GitHub
parent 99b43c98fc
commit 5ab6167bbf
64 changed files with 808 additions and 232 deletions

View File

@@ -63,10 +63,18 @@ func (c *WorkspaceDeleteCommand) Run(args []string) int {
return 1
}
// Load the encryption configuration
enc, encDiags := c.EncryptionFromPath(configPath)
diags = diags.Append(encDiags)
if encDiags.HasErrors() {
c.showDiagnostics(diags)
return 1
}
// Load the backend
b, backendDiags := c.Backend(&BackendOpts{
Config: backendConfig,
})
}, enc.Backend())
diags = diags.Append(backendDiags)
if backendDiags.HasErrors() {
c.showDiagnostics(diags)