sensitivevariables

package
v0.1.347 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const SecretsLibraryVariableSetName = "SpaceSensitiveVars"
View Source
const SecretsVariableName = "OctoterraWiz.Terraform.Vars"

Variables

This section is empty.

Functions

func CheckTableExists added in v0.1.316

func CheckTableExists(ctx context.Context, db *sql.DB, tableName string) (bool, error)

func CreateSecretsLibraryVariableSet

func CreateSecretsLibraryVariableSet(values string, state state.State) error

CreateSecretsLibraryVariableSet will create or reuse a library variable set called OctoterraWizSecrets that containers a single sensitive variable called OctoterraWiz.Terraform.Vars. The variable is the contents of a terraform.tfvars file that contains all the sensitive variables required to migrate a space.

func DecryptSensitiveVariable

func DecryptSensitiveVariable(masterKey string, value string) (string, error)

func ExtractVariables

func ExtractVariables(server string, port string, database string, username string, password string, masterKey string) (string, error)

ExtractVariables extracts sensitive variables from the database and returns them as terraform variable values

func GetDatabaseConnection

func GetDatabaseConnection(server string, port string, database string, username string, password string, ctx context.Context) (*sql.DB, error)

func PKCS7Unpad

func PKCS7Unpad(data []byte) []byte

func PingDatabase

func PingDatabase(ctx context.Context, db *sql.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL