core-auth: use k8s internal service address for hydra-admin
diff --git a/core/auth/ui/Makefile b/core/auth/ui/Makefile
index 0bafc13..89871d8 100644
--- a/core/auth/ui/Makefile
+++ b/core/auth/ui/Makefile
@@ -16,5 +16,5 @@
go build -o server_amd64 *.go
push: clean build_arm64 # build_amd64
- podman build --tag=giolekva/auth-ui:debug .
- podman push giolekva/auth-ui:debug
+ podman build --tag=giolekva/auth-ui:latest .
+ podman push giolekva/auth-ui:latest
diff --git a/core/auth/ui/hydra.go b/core/auth/ui/hydra.go
index 8775d9e..12cabf0 100644
--- a/core/auth/ui/hydra.go
+++ b/core/auth/ui/hydra.go
@@ -2,7 +2,7 @@
import (
"bytes"
- "crypto/tls"
+ // "crypto/tls"
"encoding/json"
"errors"
"fmt"
@@ -21,9 +21,9 @@
return &HydraClient{
// TODO(giolekva): trust selfsigned-root-ca automatically on pods
&http.Client{
- Transport: &http.Transport{
- TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
- },
+ // Transport: &http.Transport{
+ // TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
+ // },
},
host,
}