add updates for oauth2 proxy

This commit is contained in:
Viktor Barzin 2023-10-21 22:54:45 +00:00
parent ad06021079
commit d6a54fbcbc
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
6 changed files with 34 additions and 25 deletions

View file

@ -11,6 +11,14 @@ variable "tls_secret_name" {
type = string
}
variable "oauth2_proxy_client_secret" {
type = string
}
variable "oauth2_proxy_client_id" {
type = string
}
module "tls_secret" {
source = "../setup_tls_secret"
namespace = "oauth2"
@ -109,11 +117,11 @@ resource "kubernetes_deployment" "oauth2-proxy" {
args = ["--provider=google", "--email-domain=*", "--upstream=file:///dev/null", "--upstream=http://localhost/redirect/", "--http-address=0.0.0.0:4180", "--cookie-domain=.viktorbarzin.me", "--footer=-"]
env {
name = "OAUTH2_PROXY_CLIENT_ID"
value = "533122798643-rkefmkuegbt218bpkibbdmghb4irlrv5.apps.googleusercontent.com"
value = var.oauth2_proxy_client_id
}
env {
name = "OAUTH2_PROXY_CLIENT_SECRET"
value = "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"
value = var.oauth2_proxy_client_secret
}
env {
name = "OAUTH2_PROXY_COOKIE_SECRET"