Adds admin_users map and keyvault policy This adds an admin_users map as well as a new policy in the keyvault module. When run, this will apply an administrator policy for users in the admin_users map. With these permissions, the admin users will be able to manage secrets and keys in keyvault. 169163334 - Initial secrets-tool commit Adds admin_users map and keyvault policy This adds an admin_users map as well as a new policy in the keyvault module. When run, this will apply an administrator policy for users in the admin_users map. With these permissions, the admin users will be able to manage secrets and keys in keyvault. 170237669 - Makes the read only policy for keyvault optional and only create the policy if a principal_id is passed 170237669 - Adds new operator keyvault for secrets This is a new keyvault specifically for storing operator secrets and things that would not be accessible to applications. The primary use case for this is for launching things like postgres (root postgres creds) and other services which would require secrets to be added to the terraform configuration. This approach avoids adding secrets to terraform. An accompanying script will be added to populate the new keyvault.
35 lines
771 B
HCL
35 lines
771 B
HCL
variable "region" {
|
|
type = string
|
|
description = "Region this module and resources will be created in"
|
|
}
|
|
|
|
variable "name" {
|
|
type = string
|
|
description = "Unique name for the services in this module"
|
|
}
|
|
|
|
variable "environment" {
|
|
type = string
|
|
description = "Environment these resources reside (prod, dev, staging, etc)"
|
|
}
|
|
|
|
variable "owner" {
|
|
type = string
|
|
description = "Owner of this environment"
|
|
}
|
|
|
|
variable "tenant_id" {
|
|
type = string
|
|
description = "The Tenant ID"
|
|
}
|
|
|
|
variable "principal_id" {
|
|
type = string
|
|
description = "The service principal_id of the k8s cluster"
|
|
}
|
|
|
|
variable "admin_principals" {
|
|
type = map
|
|
description = "A list of user principals who need access to manage the keyvault"
|
|
}
|