Skip to content

Commit

Permalink
Revert "Secure ClearML behind forwardauth (#721)"
Browse files Browse the repository at this point in the history
This reverts commit 28f4535.
  • Loading branch information
leej3 committed Sep 17, 2021
1 parent 074bcea commit 38b3003
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ resource "kubernetes_deployment" "forwardauth-deployment" {
name = "LOG_LEVEL"
value = "trace"
}
env {
name = "AUTH_HOST"
value = var.external-url
}

env {
name = "COOKIE_DOMAIN"
value = var.external-url
}

port {
container_port = 4181
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ locals {
clearml_webserver = "${local.clearml-prefix}-webserver"
clearml_fileserver = "${local.clearml-prefix}-fileserver"
clearml_apiserver = "${local.clearml-prefix}-apiserver"

forward_auth_middleware = "traefik-forward-auth"
clearml_middleware = [
{
name = local.forward_auth_middleware
namespace = var.namespace
}
]
}

resource "kubernetes_manifest" "clearml-app" {
Expand All @@ -30,9 +22,8 @@ resource "kubernetes_manifest" "clearml-app" {
entryPoints = ["websecure"]
routes = [
{
kind = "Rule"
match = "Host(`${local.clearml_webserver_subdomain}.${var.external-url}`)"
middlewares = local.clearml_middleware
kind = "Rule"
match = "Host(`${local.clearml_webserver_subdomain}.${var.external-url}`)"
services = [
{
name = local.clearml_webserver
Expand Down Expand Up @@ -61,9 +52,8 @@ resource "kubernetes_manifest" "clearml-files" {
entryPoints = ["websecure"]
routes = [
{
kind = "Rule"
match = "Host(`${local.clearml_fileserver_subdomain}.${var.external-url}`)"
middlewares = local.clearml_middleware
kind = "Rule"
match = "Host(`${local.clearml_fileserver_subdomain}.${var.external-url}`)"
services = [
{
name = local.clearml_fileserver
Expand Down Expand Up @@ -92,9 +82,8 @@ resource "kubernetes_manifest" "clearml-api" {
entryPoints = ["websecure"]
routes = [
{
kind = "Rule"
match = "Host(`${local.clearml_apiserver_subdomain}.${var.external-url}`)"
middlewares = local.clearml_middleware
kind = "Rule"
match = "Host(`${local.clearml_apiserver_subdomain}.${var.external-url}`)"
services = [
{
name = local.clearml_apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ variable "external-url" {

variable "tls" {
description = "TLS configuration"
type = object({})
}

0 comments on commit 38b3003

Please sign in to comment.