Compare commits

..

No commits in common. "9e6de4dc320ad6d7b2d53177691b5e06c0f20a34" and "c94b2af1964cf6521eb6532e20693132c5db96cc" have entirely different histories.

13 changed files with 0 additions and 18 deletions

View File

@ -5,5 +5,4 @@ bound_service_account_namespaces:
- csi-cephrbd
- csi-cephfs
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- cert-manager
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- externaldns
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- identity
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- media-apps
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- puppet
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- cattle-system
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- repoflow
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -3,5 +3,4 @@ bound_service_account_names:
bound_service_account_namespaces:
- woodpecker
token_ttl: 600
token_max_ttl: 600
audience: vault

View File

@ -92,7 +92,6 @@ module "auth_kubernetes_role" {
bound_service_account_names = each.value.bound_service_account_names
bound_service_account_namespaces = each.value.bound_service_account_namespaces
token_ttl = each.value.token_ttl
token_max_ttl = each.value.token_max_ttl
token_policies = var.policy_auth_map[each.value.backend][each.value.role_name]
audience = each.value.audience

View File

@ -4,7 +4,6 @@ resource "vault_kubernetes_auth_backend_role" "role" {
bound_service_account_names = var.bound_service_account_names
bound_service_account_namespaces = var.bound_service_account_namespaces
token_ttl = var.token_ttl
token_max_ttl = var.token_max_ttl
token_policies = var.token_policies
audience = var.audience
}

View File

@ -24,12 +24,6 @@ variable "token_ttl" {
default = 3600
}
variable "token_max_ttl" {
description = "The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time."
type = number
default = 86400
}
variable "token_policies" {
description = "List of policies to assign to the role (passed from policy_auth_map)"
type = list(string)

View File

@ -83,7 +83,6 @@ variable "auth_kubernetes_role" {
bound_service_account_names = list(string)
bound_service_account_namespaces = list(string)
token_ttl = optional(number, 3600)
token_max_ttl = optional(number, 86400)
audience = optional(string, "vault")
}))
default = {}