terraform-provider-flux icon indicating copy to clipboard operation
terraform-provider-flux copied to clipboard

GPG keys for flux with terraform.

Open borjaOrtizLlamas opened this issue 2 years ago • 1 comments

HI, i want to set up flux v2 with terraform but i don't find the variable to add the gpg key and do the same like this option :"--gpg-key-ring=/root/gpg-signing-key/"

image

i have ssh keys in this way and it's working:


data "flux_sync" "main" {
  target_path = var.target_path
  url         = var.repo_url
  branch      = var.branch
}

resource "kubernetes_secret" "secret-ssh" {
  depends_on = [kubectl_manifest.install]

  metadata {
    name      = data.flux_sync.main.secret
    namespace = data.flux_sync.main.namespace
  }

  data = {
    identity        = base64decode(var.private_key)
    "identity.pub"  = base64decode(var.public_key)
    known_hosts     = local.known_hosts
  }
}


I dont see it in the data sync anything about it... Best regards

borjaOrtizLlamas avatar Feb 02 '22 08:02 borjaOrtizLlamas

It would be nice to have an option in the terraform to use the verify spec of the GitRepository.

exinos-git avatar Aug 10 '22 18:08 exinos-git