Before golang kerberos attempt

This commit is contained in:
Chris Stuurman 2024-05-08 15:08:06 +02:00
parent 197f7c37a8
commit 3cd72d6e74
5 changed files with 18 additions and 14 deletions

View File

@ -40,6 +40,8 @@ ENV RUNNING_IN_DOCKER true
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="Africa/Johannesburg" ENV TZ="Africa/Johannesburg"
ENV WEBROOT=/webroot ENV WEBROOT=/webroot
ENV ACMEDIR=/acme
ENV WORKDIR=/workdir
COPY --from=build /workspace/webhook /usr/local/bin/webhook COPY --from=build /workspace/webhook /usr/local/bin/webhook

View File

@ -1,5 +1,5 @@
apiVersion: v1 apiVersion: v1
appVersion: v0.0.5-alpha.112 appVersion: v0.0.5-alpha.113
description: Cert-Manager webhook for sthome description: Cert-Manager webhook for sthome
name: sthome-webhook name: sthome-webhook
version: 0.0.5-alpha.112 version: 0.0.5-alpha.113

View File

@ -31,7 +31,7 @@ clusterIssuer:
image: image:
repository: stuurmcp/cert-manager-webhook-sthome repository: stuurmcp/cert-manager-webhook-sthome
#repository: wstat.sthome.net:5000/cert-manager-webhook-sthome #repository: wstat.sthome.net:5000/cert-manager-webhook-sthome
tag: 0.0.5-alpha.112 tag: 0.0.5-alpha.113
#pullPolicy should be IfNotPresent. Set to Always for testing purposes #pullPolicy should be IfNotPresent. Set to Always for testing purposes
pullPolicy: IfNotPresent pullPolicy: IfNotPresent

View File

@ -16,8 +16,8 @@ import (
const ( const (
bashShell = "/bin/bash" bashShell = "/bin/bash"
zshShell = "/bin/zsh" zshShell = "/bin/zsh"
Workdir = "/workdir" //Workdir = "/workdir"
AcmeDir = "/acme" //AcmeDir = "/acme"
Shell = bashShell Shell = bashShell
AuthScript = "acmeauth.sh" AuthScript = "acmeauth.sh"
@ -31,7 +31,9 @@ const (
) )
var ( var (
AcmeAuthCmd = AcmeDir + "/" + AuthScript Workdir = os.Getenv("WORKDIR")
AcmeDir = os.Getenv("ACMEDIR")
AcmeAuthCmd = Workdir + "/" + AuthScript
mutex sync.Mutex // mutex is used to define a critical section of code. mutex sync.Mutex // mutex is used to define a critical section of code.
) )
@ -68,8 +70,8 @@ func SetChallenge(ch *v1alpha1.ChallengeRequest) (bool, error) {
ch.DNSName, ch.DNSName,
ch.ResolvedFQDN, ch.ResolvedFQDN,
ch.Key, ch.Key,
"-l", //"-l",
"\"\"", //localip, //"\"\"", //localip,
//"-v", //"-v",
) )
} }
@ -83,8 +85,8 @@ func UnsetChallenge(ch *v1alpha1.ChallengeRequest) (bool, error) {
ch.DNSName, ch.DNSName,
ch.ResolvedFQDN, ch.ResolvedFQDN,
ch.Key, ch.Key,
"-l", //"-l",
"\"\"", //localip, //"\"\"", //localip,
//"-v", //"-v",
) )
} }

View File

@ -1,3 +1,3 @@
0.0.5-alpha.112 0.0.5-alpha.113
20240421-2058 20240422-0918
112 113