terraform-google-terraform-enterprise icon indicating copy to clipboard operation
terraform-google-terraform-enterprise copied to clipboard

Parameters in metadata exposes secrets

Open ugirirajan opened this issue 6 years ago • 1 comments

As the GCP instance reads the metadata on the fly for parameters, the credentials and keys are exposed in console if we use this registry.

ugirirajan avatar Dec 04 '19 07:12 ugirirajan

+1 to this. Could this module not allow users to pull the secrets from a GCS bucket with a client side KMS key which only the primary/secondary service account has access to? Or give the option to point to a Vault instance which would pull this data at boot time. It seems this issue also exists on the AWS installation module, where secrets are stored in User Data: https://github.com/hashicorp/terraform-aws-terraform-enterprise/blob/87a10c9893e71261404fe70a80ee4e4cd8f22fca/config.tf#L22

onetwopunch avatar Jan 10 '20 00:01 onetwopunch