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

Feat: add default user in dex #3753

Merged
merged 3 commits into from
Apr 27, 2022
Merged

Conversation

FogDong
Copy link
Member

@FogDong FogDong commented Apr 25, 2022

Signed-off-by: FogDong dongtianxin.tx@alibaba-inc.com

Description of your changes

add default user in dex

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

/cc @barnettZQG

@codecov
Copy link

codecov bot commented Apr 26, 2022

Codecov Report

Merging #3753 (c68c5d0) into master (8f127ce) will increase coverage by 36.34%.
The diff coverage is 71.42%.

@@             Coverage Diff             @@
##           master    #3753       +/-   ##
===========================================
+ Coverage   27.50%   63.84%   +36.34%     
===========================================
  Files         244      310       +66     
  Lines       19665    29343     +9678     
===========================================
+ Hits         5408    18735    +13327     
+ Misses      13290     8184     -5106     
- Partials      967     2424     +1457     
Flag Coverage Δ
apiserver-unittests 35.16% <71.42%> (?)
core-unittests 56.19% <ø> (?)
e2e-multicluster-test 26.46% <ø> (+0.08%) ⬆️
e2e-rollout-tests 23.70% <ø> (+<0.01%) ⬆️
e2etests 31.05% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/apiserver/model/system_info.go 100.00% <ø> (+75.00%) ⬆️
pkg/apiserver/rest/usecase/system_info.go 74.19% <50.00%> (ø)
pkg/apiserver/rest/usecase/authentication.go 49.63% <72.72%> (ø)
pkg/apiserver/rest/usecase/user.go 50.45% <83.33%> (ø)
pkg/apiserver/rest/usecase/workflow_model.go 74.35% <0.00%> (ø)
pkg/apiserver/rest/usecase/webhook.go 71.42% <0.00%> (ø)
pkg/apiserver/rest/usecase/rbac.go 74.93% <0.00%> (ø)
pkg/apiserver/rest/webservice/config.go 54.70% <0.00%> (ø)
pkg/apiserver/rest/webservice/workflow.go 0.00% <0.00%> (ø)
pkg/apiserver/rest/usecase/application.go 62.47% <0.00%> (ø)
... and 248 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f127ce...c68c5d0. Read the comment docs.

@@ -105,29 +93,6 @@ func (u *userUsecaseImpl) Init(ctx context.Context) error {
}); err != nil {
return err
}
// print default password of admin user in log
log.Logger.Infof("initialized admin username and password: admin / %s\n", pwd)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep print this log.

@@ -105,29 +93,6 @@ func (u *userUsecaseImpl) Init(ctx context.Context) error {
}); err != nil {
return err
}
// print default password of admin user in log
log.Logger.Infof("initialized admin username and password: admin / %s\n", pwd)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please keep it as users will read the old doc for the password.

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
@wonderflow wonderflow merged commit a1ada26 into kubevela:master Apr 27, 2022
@FogDong FogDong deleted the feat-dex-init-user branch June 30, 2022 03:56
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

Successfully merging this pull request may close these issues.

None yet

3 participants