Compare commits

...

1 Commits

Author SHA1 Message Date
Marc Schäfer
1772ac220f fix(newt): update Helm install credentials and client flag handling
Use a Kubernetes Secret for Newt Helm chart credentials and configure the chart
with auth.existingSecretName instead of passing credential values through
auth.keys.*.

Add Helm-specific acceptClients handling so the generated Kubernetes command sets
newtInstances[0].acceptClients=true when client connections are enabled.
2026-05-03 15:07:42 +02:00

View File

@@ -52,6 +52,10 @@ export function NewtSiteInstallCommands({
const acceptClientsEnv = !acceptClients const acceptClientsEnv = !acceptClients
? "\n - DISABLE_CLIENTS=true" ? "\n - DISABLE_CLIENTS=true"
: ""; : "";
const acceptClientsHelmValue = acceptClients
? ` \\
--set newtInstances[0].acceptClients=true`
: "";
const commandList: Record<Platform, Record<string, CommandItem[]>> = { const commandList: Record<Platform, Record<string, CommandItem[]>> = {
linux: { linux: {
@@ -162,13 +166,18 @@ sudo systemctl enable --now newt`
"Helm Chart": [ "Helm Chart": [
`helm repo add fossorial https://charts.fossorial.io`, `helm repo add fossorial https://charts.fossorial.io`,
`helm repo update fossorial`, `helm repo update fossorial`,
`helm install newt fossorial/newt \\ `kubectl create namespace newt --dry-run=client -o yaml | kubectl apply -f -`,
--create-namespace \\ `kubectl create secret generic newt-main-tunnel-auth \\
--set newtInstances[0].name="main-tunnel" \\ -n newt \\
--set newtInstances[0].enabled=true \\ --from-literal=PANGOLIN_ENDPOINT="${endpoint}" \\
--set-string newtInstances[0].auth.keys.endpointKey="${endpoint}" \\ --from-literal=NEWT_ID="${id}" \\
--set-string newtInstances[0].auth.keys.idKey="${id}" \\ --from-literal=NEWT_SECRET="${secret}" \\
--set-string newtInstances[0].auth.keys.secretKey="${secret}"` --dry-run=client -o yaml | kubectl apply -f -`,
`helm upgrade --install newt fossorial/newt \\
-n newt \\
--set newtInstances[0].name="main-tunnel" \\
--set newtInstances[0].enabled=true \\
--set-string newtInstances[0].auth.existingSecretName="newt-main-tunnel-auth"${acceptClientsHelmValue}`
] ]
}, },
podman: { podman: {