bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
9.04k stars 9.22k forks source link

With configuring tls certificate can't open "Manage account" page #30473

Closed BohdanBohatov closed 4 days ago

BohdanBohatov commented 1 week ago

Name and Version

[bitnami/keycloak] 24.0.4

What architecture are you using?

None

What steps will reproduce the bug?

What I did:

  1. Env - aws
  2. Installed nginx ingress for aws
  3. Installed cert-manager "helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.16.1 --set crds.enabled=true"
  4. Installed issuer from cert-manger guide
  5. Added ingress

Expected page is situated in upper-rigth corner, click {user-name} first link

Are you using any custom parameters or values?

--version 24.0.4 --namespace keycloak-user-3-ns

global:
  defaultStorageClass: keycloak-user-3-storage

extraVolumes:
  - name: efs-storage
    persistentVolumeClaim:
      claimName: keycloak-pv-claim

extraVolumeMounts:
    - name: efs-storage
      mountPath: /opt/bitnami/keycloak/themes

auth:
  adminUser: user
  adminPassword: {password}

postgresql:
  volumePermissions:
    enabled: true
  auth:
    password: {password}
    postgresPassword: {password}
    username: "db_user"

ingress:
  enabled: true
  ingressClassName: nginx
  hostname: "{url}"
  tls: true
  annotations: {
    "cert-manager.io/issuer" : "keycloak-production",
    "kubernetes.io/tls-acme" : "true"
  }

What is the expected behavior?

I can open "Manage account" page.

What do you see instead?

I got 403 error to this url https://{my-url}/realms/master/protocol/openid-connect/login-status-iframe.html/init?client_id=account-console&origin=https%3A%2F%2F{my-url}

Additional information

It works without TLS certificate. I belive this is not a bug, but I couldn't find any information in internet and in documentation why I got this issue.

Admin page also works well, only manage accout is not working.

BohdanBohatov commented 4 days ago

Need to add:

proxy: "edge"

And I also adde somed annotation for ingress, I used nginx

    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.org/server-snippets: |
         location / {
            proxy_set_header X-Forwarded-For $host;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-Port $server_port;
            proxy_set_header X-Forwarded-Proto  $scheme;
          }