-
Notifications
You must be signed in to change notification settings - Fork 356
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: CLI allows and requires creating a user with a password DET-10184 #9112
feat: CLI allows and requires creating a user with a password DET-10184 #9112
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
7a7f601
to
3ddb7c3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9112 +/- ##
==========================================
+ Coverage 44.64% 44.68% +0.03%
==========================================
Files 1270 1270
Lines 155045 155132 +87
Branches 2443 2443
==========================================
+ Hits 69227 69324 +97
+ Misses 85582 85572 -10
Partials 236 236
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggested edits
@wes-turner Jerry brought up that I should probably get you involved since this is mostly a CLI design/UX concern. Happy to discuss in here or on Slack, whatever makes sense to you :) |
…r cannot log in with password
0e06f43
to
0b0f5ee
Compare
Description
BREAKING CHANGE: DET-10184 The command
det user create
allows passing a--password
flag; if neither--password
nor--remote
is specified, the command will interactively prompt twice for a password, as though setting a password viadet user change-password
. Additionally, whenever a password is changed by any CLI command or SDK method, it is checked to ensure the following criteria are met:Test Plan
Several e2e and integration tests have been modified to accommodate and cover this change.
The CLI should also be manually tested by exercising the
det user create
command in the various possible modes:--password <password>
should create a user with the provided password (assuming it fits the rules above).--remote
should create a "remote" user with no login option until SSO is configured for them (even if--password
is also given).--remote
nor--password
is provided, the CLI should prompt for a password; if no input pipe is available, this should produce an error.Commentary
This matches the requirements of passwords set via the Web UI.
This is my eighth week at HPE/Determined. There's no need to hold back or be overly delicate in critique, but I probably have not thought through every possible way a user could interact with the SDK or CLI. It's my understanding that we're basically aligned on the security needs taking precedence over disruption to any automated flows or scripts or whatever else may have previously depended on behaviors this change breaks, however, please try to think of whether there might be any other features that will outright stop working if/when this change lands; I'm not familiar enough with the product yet to be confident I'll have good intuition about that.
Checklist
docs/release-notes/
.See Release Note for details.
Ticket
DET-10184