8000 Bootstrap admin account does not work · Issue #40688 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Bootstrap admin account does not work #40688

Closed

Description

@rpartapsing

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

authentication

Describe the bug

Having installed keycloak on k8s, we wish to disable login in as admin through username and password and only use a oauth2 SSO option.
For us to be able to login still as admin when the SSO option fails, we wish to be able to set the bootstrap admin account. However when doing so, login fails.

> k exec -n keycloak-primary -it keycloak-primary-2  -- /bin/bash
keycloak@keycloak-primary-2:/$ echo $KC_BOOTSTRAP_ADMIN_PASSWORD
myverysecurepassword
keycloak@keycloak-primary-2:/$ echo $KC_BOOTSTRAP_ADMIN_USERNAME
temp-admin
keycloak@keycloak-primary-2:/$ cd /opt/bitnami/keycloak/bin
keycloak@keycloak-primary-2:/opt/bitnami/keycloak/bin$ ./kcadm.sh config credentials --server http://localhost:8080/auth/ --realm master --user temp-admin --password myverysecurepassword --config /tmp/kcadm.config
Logging into http://localhost:8080/auth/ as user temp-admin of realm master
Invalid user credentials [invalid_grant]
keycloak@keycloak-primary-2:/opt/bitnami/keycloak/bin$ 

What could be the issue?

Version

26.2.2

Regression

  • The issue is a regression

Expected behavior

Being able to login with the admin bootstrap account

Actual behavior

Invalid user credentials

How to Reproduce?

Install the bitnami keycloak version on k8s

Anything else?

No response

Activity

  1. 95E9
  2. locked and limited conversation to collaborators on Jun 24, 2025
  3. converted this issue into a discussion #40693 on Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/authenticationAuth flows, authenticators, required actions, OTP, password policies, brute forcekind/bugCategorizes a PR related to a bugteam/cloud-native

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0