terraform_encryption_migration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PayloadDecrypter added in v0.3.0

type PayloadDecrypter interface {
	Decrypt(encryptedPayload *payload.EncryptedPayload) (*payload.Payload, error)
}

type PayloadEncrypter added in v0.3.0

type PayloadEncrypter interface {
	Encrypt(payload *payload.Payload) (*payload.EncryptedPayload, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewTerraformEncryptionMigrationService

func NewTerraformEncryptionMigrationService(terraformSvc terraformService) *Service

func (*Service) RotateOrRekeyEncryptedTerraformResourceHcl

func (s *Service) RotateOrRekeyEncryptedTerraformResourceHcl(
	hclParser hcl.Parser,
	hclBytes []byte,
	passphraseSvc *passphrase.Service,
	payloadSerdeSvc *payload.SerdeService,
	oldPayloadDecrypter PayloadDecrypter,
	newPayloadEncrypter PayloadEncrypter,
) (*hclwrite.File, error)

RotateOrRekeyEncryptedTerraformResourceHcl parses and rotates a HCL terraform file with `vault_encrypted_secret` terraform resources encrypted that were using `encrypt` cmd. It decrypts, encrypts and replaces existing terraform `vaulted`. It does not lose/modify resources that are not `vault_encrypted_secret`.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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