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

illegal base64 data at input byte 483 #2637

Open
deshifcodes opened this issue Dec 5, 2024 · 4 comments
Open

illegal base64 data at input byte 483 #2637

deshifcodes opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working helm Related to helm and app-catalog keycloak Keycloak the Identity and Access Management app

Comments

@deshifcodes
Copy link

Error description

The headlamp has configured OIDC authentication with Keycloak. Errors are constantly appearing in the logs of the headlamp pod:

2024-12-05 16 04 48

The headlamp itself works when it does. Are these errors critical and how to get rid of them?

  • Headlamp Version: 0.26.0
  • K8S: 1.31 (bare metall)

HELM Chart Values:

fullnameOverride: headlamp
replicaCount: 1
service:
  type: ClusterIP
  port: 80

volumeMounts:
- mountPath: /etc/ssl/certs/ca-certificates.crt
  subPath: ca-certificates.crt
  name: ca-certs
  readOnly: true

volumes: 
- hostPath:
    path: /etc/ssl/certs
    type: Directory
  name: ca-certs

config:
  oidc:
    clientID: "headlamp"
    clientSecret: <SECRET>
    issuerURL: "https://iam.example.org/realms/<REALM>"
    scopes: "email,profile,groups"
    secret:
      create: true
      name: headlamp-oidc

ingress:
  enabled: true
  ingressClassName: internal
  hosts:
    - host: headlamp.example.org
      paths:
        - path: /
          type: Prefix
  tls:
    - secretName: eso.default-wildcard-tls-assets
      hosts:
        - headlamp.example.org

serviceAccount:
  create: true
  name: headlamp

clusterRoleBinding:
  create: true
@deshifcodes deshifcodes added the bug Something isn't working label Dec 5, 2024
@dosubot dosubot bot added helm Related to helm and app-catalog keycloak Keycloak the Identity and Access Management app labels Dec 5, 2024
@zivcex
Copy link

zivcex commented Dec 5, 2024

Hi @deshifcodes one question did you setup that kuberenetes API server configs as well? I mean have you done these configs as well: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#configuring-the-api-server ?
We failed to set it up just with configs in values.yaml (getting constant re-logins and 403s)..

@zivcex
Copy link

zivcex commented Dec 5, 2024

getting these issues: #2614

@deshifcodes
Copy link
Author

Hi @deshifcodes one question did you setup that kuberenetes API server configs as well? I mean have you done these configs as well: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#configuring-the-api-server ? We failed to set it up just with configs in values.yaml (getting constant re-logins and 403s)..

I added this line to the kube-apiserver manifest

- --authentication-config=/etc/kubernetes/pki/auth-oidc.conf

and created the file /etc/kubernetes/pki/auth-oidc.conf`

auth-oidc.conf

apiVersion: apiserver.config.k8s.io/v1beta1
kind: AuthenticationConfiguration
jwt:
- issuer:

    # Same as --oidc-issuer-url
    url: https://iam.example.org/realms/k8s

     # Same as --oidc-client-id
    audiences:
    - kubernetes
    - headlamp
    - kiali
    audienceMatchPolicy: MatchAny

  claimMappings:
    # Same as --oidc-username-claim
    username:
      claim: "email"
      prefix: ""

    # Same as --oidc-groups-claim
    groups:
      claim: "groups"
      prefix: ""

ClusterRoleBinding

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: oidc-cluster-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: Group
  name: /kubernetes-admin

@zivcex
Copy link

zivcex commented Dec 6, 2024

Cool yeah we had this ClusterRoleBinding already it's just that this oidc.conf was missing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working helm Related to helm and app-catalog keycloak Keycloak the Identity and Access Management app
Projects
Development

No branches or pull requests

2 participants