创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
centos7.7
Kubernetes版本信息
Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.3”, GitCommit:“c92036820499fedefec0f847e2054d824aea6cd1”, GitTreeState:“clean”, BuildDate:“2021-10-27T18:35:25Z”, GoVersion:“go1.16.9”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: v1.5.5
RuntimeApiVersion: v1alpha2
KubeSphere版本信息
例如:v3.2.1,在线安装。在已有K8s上安装。
问题是什么
创建user,或者修改user密码后,对应的cr文件里面密码是明文,导致用户无法登陆。
apiVersion: iam.kubesphere.io/v1alpha2
kind: User
metadata:
annotations:
iam.kubesphere.io/uninitialized: "true"
kubesphere.io/creator: admin
kubesphere.io/description: hr
creationTimestamp: “2022-03-17T11:43:45Z”
finalizers:
finalizers.kubesphere.io/users
generation: 2
labels:
kubefed.io/managed: “false”
name: hr-zhang
resourceVersion: “2938364”
uid: 438279c2-75d7-4bc8-8c22-f67173481713
spec:
email: hr@user.com
password: 123abcGA!@hh