Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm Chart not working as intended #62

Open
CodeStaple opened this issue Oct 9, 2024 · 1 comment
Open

Helm Chart not working as intended #62

CodeStaple opened this issue Oct 9, 2024 · 1 comment

Comments

@CodeStaple
Copy link

Hello,

I have been trying to bring up both your 1 liner with the setup.sh and docker-compose.

I tried to run both without making changes. The docker-compose was the prompt configuration.

Both end in the same result:

2024-10-09T12:24:23.242233Z ERROR http_request{method=GET path=/api/v1/info}: defguard::handlers: msg="Session is required"

I have tried this on OrbStack (MacOS) and a K3s kubernetes hosted on a proxmox.

Tested in Safari, Arch, and Chrome (Obviously all are Chromium)

2024-10-09T12:24:23.148012Z  INFO http_request{method=GET path=/api/v1/health}: tower_http::trace::on_response: finished processing request latency=0 ms status=200
2024-10-09T12:24:23.148095Z  INFO http_request{method=GET path=/api/v1/health}: tower_http::trace::on_response: finished processing request latency=0 ms status=200
2024-10-09T12:24:23.208188Z  INFO http_request{method=POST path=/api/v1/auth}: defguard::handlers::auth: Authenticated user admin
2024-10-09T12:24:23.209999Z  INFO http_request{method=POST path=/api/v1/auth}: tower_http::trace::on_response: finished processing request latency=59 ms status=200
2024-10-09T12:24:23.242233Z ERROR http_request{method=GET path=/api/v1/info}: defguard::handlers: msg="Session is required"
2024-10-09T12:24:23.242264Z  INFO http_request{method=GET path=/api/v1/info}: tower_http::trace::on_response: finished processing request latency=0 ms status=401
2024-10-09T12:24:33.147308Z  INFO htt
p_request{method=GET path=/api/v1/health}: tower_http::trace::on_response: finished processing request latency=0 ms status=200

As we can see is that the login succeeded but the authentication failed to set the cookies for the session.

The URL I am using is http://defguard.local:8080/auth/login

See attached of all manifests producted in the namespace:

manifests.yaml.zip

I have reviewed the https://defguard.gitbook.io/defguard/admin-and-features/setting-up-your-instance/kubernetes

While it mentioned required inputs, I have confirmed their already in the values file.

Can anyone direct me on this matter?

My intention is that I just want to bring it up really quickly to try it out. doesnt have to have anything long term.

@CodeStaple
Copy link
Author

also to share, what does my kubernetes stack look like:

 kgp -A
NAMESPACE       NAME                                                     READY   STATUS      RESTARTS   AGE
cert-manager    cert-manager-9647b459d-dqwpv                             1/1     Running     0          3d20h
cert-manager    cert-manager-cainjector-5d8798687c-jf64z                 1/1     Running     0          3d20h
cert-manager    cert-manager-webhook-c77744d75-v2xmn                     1/1     Running     0          3d20h
defguard        defguard-65984b7478-lk55n                                1/1     Running     0          18m
defguard        defguard-postgresql-0                                    1/1     Running     0          18m
gitlab-runner   gitlab-runner-658954fdf-26j7s                            1/1     Running     0          3d20h
grafana         grafana-66f44d4f84-sfbxm                                 2/2     Running     0          3d20h
kube-system     coredns-7b98449c4-zhkjt                                  1/1     Running     0          3d21h
kube-system     helm-install-traefik-8b7tt                               0/1     Completed   1          3d21h
kube-system     helm-install-traefik-crd-gkzhw                           0/1     Completed   0          3d21h
kube-system     local-path-provisioner-6795b5f9d8-k477t                  1/1     Running     0          3d21h
kube-system     metrics-server-cdcc87586-dfl98                           1/1     Running     0          3d21h
kube-system     svclb-traefik-a11ec413-n5n9s                             2/2     Running     0          3d21h
kube-system     svclb-wireguard-wireguard-53a762b5-ks5nq                 1/1     Running     0          3d20h
kube-system     traefik-67f6c94c47-lvmqq                                 1/1     Running     0          3d21h
monitoring      my-uptime-kuma-88dbbb5b-h9dhr                            1/1     Running     0          3d20h
prometheus      alertmanager-prometheus-prometheus-stac-alertmanager-0   2/2     Running     0          3d20h
prometheus      alertmanager-prometheus-prometheus-stac-alertmanager-1   2/2     Running     0          3d20h
prometheus      alertmanager-prometheus-prometheus-stac-alertmanager-2   2/2     Running     0          3d20h
prometheus      prometheus-kube-state-metrics-5bf56d5697-t4s75           1/1     Running     0          3d20h
prometheus      prometheus-prometheus-node-exporter-628nq                1/1     Running     0          3d20h
prometheus      prometheus-prometheus-stac-operator-5946c49656-dpvwn     1/1     Running     0          3d20h
wireguard       wireguard-wireguard-557c55bbb5-qbhv6                     1/1     Running     0          3d20h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant