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

modify profile to user "default" will change password to "default" and cause other problems #282

Closed
xiaozzz opened this issue Mar 5, 2020 · 3 comments
Assignees

Comments

@xiaozzz
Copy link

xiaozzz commented Mar 5, 2020

Hi,
I want to change the permission of default user to forbid ddl, so I have the following config:

profiles:
  not_allow_ddl/allow_ddl: 0
users:
  default/profile: not_allow_ddl
  admin/password: admin
  admin/profile: default

but these codes change the password to "default" like this
https://github.com/Altinity/clickhouse-operator/blob/master/pkg/apis/clickhouse.altinity.com/v1/type_config.go#L267-L269

users.xml: |
<yandex>
    <users>
        <admin>
            <networks>
                <ip>::/0</ip>
            </networks>
            <password>admin</password>
            <profile>default</profile>
            <quota>default</quota>
        </admin>
        <default>
            <networks>
                <ip>::/0</ip>
            </networks>
            <password>default</password>
            <profile>not_allow_ddl</profile>
            <quota>default</quota>
        </default>

I am working on a shard env, then I have found this issue #265 which means I should not change the password, and I do not want to change it either

please help me.

@alex-zaitsev alex-zaitsev self-assigned this Mar 5, 2020
@alex-zaitsev
Copy link
Member

@xiaozzz
As a workaround, you can specify empty password for default user explicitly.

We will fix this in an upcoming hot fix release later today or tomorrow

@xiaozzz
Copy link
Author

xiaozzz commented Mar 5, 2020

@alex-zaitsev
I have tried leave the password blank like this

users:
      default/password:

or

users:
      default/password: ~

but the config map translate it to newline like this

<default>
    <networks>
        <ip>::/0</ip>
    </networks>
    <password>
    </password>
    <profile>not_allow_ddl</profile>
    <quota>default</quota>
</default>

and clickhouse still ask me for password.

Thank you for your quick apply, and i will wait for your hotfix

@alex-zaitsev
Copy link
Member

Fixed in 0.9.3

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

2 participants