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`.
Click to show internal directories.
Click to hide internal directories.