Skip to content

[WIP] Terraform Provider for Creating and Managing SOPs Age Keys

Notifications You must be signed in to change notification settings

leasley199/terraform-provider-sops-age

Repository files navigation

terraform-provider-sopsage

A Terraform provider for creating and managing SOPs Age Keys. See Mozilla sops for more info on SOPs Age.

!> WARNING This is a work in progress! Currently SOPs private keys are written to terraform state files in plain-text. I recommend that you encrypt your state before and after making additions to your project to prevent any damange of leaked Private SOPs Keys, Also recommend use a secure state backend.

Example Usage

provider "sopsage" {}

# Creating a new SOPS Age key
resource "sopsage_key" "main" {
    provider = sopsage
}

# Output of Private Key Displayed (Returns value of `private_key = <sensitive>`)
output "private_key" {
  value = sopsage_key.main.private_key
  sensitive = true
}

# Output of Public Key Displayed
output "public_key" {
  value = sopsage_key.main.public_key
}

Development

go build -v -o ~/.terraform.d/plugins/registry.terraform.io/local/sopsage/0.0.#/linux_amd64/terraform-provider-sopsage_v0.0.#

About

[WIP] Terraform Provider for Creating and Managing SOPs Age Keys

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages