Skip to content

Creating CKS Cluster on 4.20 fails when using strong password settings #11626

Description

@jgotteswinter

problem

We are using password settings which require 2 special characters. So far we had no problems, but when i started testing cks it seems like this password policy also applies to the cks clusters.

Image

versions

4.20.1
CKS Image from packages.cloudstack.org 1.33.1

The steps to reproduce the bug

  1. enforce password policy (2 special characters)
  2. create cks cluster

What to do about it?

No response

Activity

  1. kiranchavala commented on Sep 12, 2025

    @kiranchavala
    Member

    @jgotteswinter

    Could you please share the settings of your environment

    Image
  2. added this to the 4.20.2 milestone on Sep 12, 2025
  3. weizhouapache commented on Sep 12, 2025

    @weizhouapache
    Member

    this seems to be a real issue

    when CKS create kubeadm user for account or project, it just uses the password generated by

    UUID.randomUUID().toString()
    

    which contains only number, letter and hyphen (-)

  4. SviridoffA commented on Sep 12, 2025

    @SviridoffA

    same issue 4.19.3

  5. jgotteswinter commented on Sep 15, 2025

    @jgotteswinter
    Author

    Setting the password policy to non-default password length also ends in an error when creating a cks cluster. In my case i tested it with a min length of 12.

  6. weizhouapache commented on Sep 15, 2025

    @weizhouapache
    Member

    Setting the password policy to non-default password length also ends in an error when creating a cks cluster. In my case i tested it with a min length of 12.

    can you change to 8 and retry ?
    it seems to be a bug

  7. weizhouapache commented on Sep 15, 2025

    @weizhouapache
    Member

    @jgotteswinter
    did you create CKS cluster in project or not ?

  8. jgotteswinter commented on Sep 15, 2025

    @jgotteswinter
    Author

    Yes, this was tested inside a project which belongs to a domain admin. As a temporary workaround i modified the domains password policy to a length of 8 and no enforcement of special characters. After that i was able to create a cks cluster successfully.

  9. weizhouapache commented on Oct 1, 2025

    @weizhouapache
    Member

    fixed by #11639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions