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

[chectl] Add server:login command #16415

Closed
tolusha opened this issue Mar 21, 2020 · 3 comments
Closed

[chectl] Add server:login command #16415

tolusha opened this issue Mar 21, 2020 · 3 comments
Assignees
Labels
area/chectl Issues related to chectl, the CLI of Che kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2020

Is your task related to a problem? Please describe.

In multi-user installation every chectl commands require access-token.
It is better to get it once, store it and use.

Describe the solution you'd like

Add server:login command to login into Eclipse Che, retrieve token as store it.

@tolusha tolusha added kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. area/chectl Issues related to chectl, the CLI of Che labels Mar 21, 2020
@tolusha tolusha added this to the Backlog - Deploy milestone Mar 21, 2020
@sleshchenko
Copy link
Member

Also, please consider the ability to have different contexts, like kubectl, oc have.
For example,

> chectl server:start --platform=kubernetes --installer=helm --multiuser -n che-helm
...
Started and accessible https://che-helm...
> chectl context
K8s                                                           Che                              User
192.168.0.101(minikube)#che-helm         https://che-helm...        -
> chectl server:stop
https://che-helm... is suspended # Note the namespace is got from context
> oc login https://my-openshift.com
> chectl server:start --platform=openshift --installer=operator --multiuser
...
Started and accessible https://che-che...
> chectl login -u admin -p admin
> chectl context
K8s                                                           Che                              User
192.168.0.101(minikube)#che-helm         https://che-helm...        -
* my-openshift.com#che                           https://che-che...          Admin

@tolusha tolusha mentioned this issue Mar 26, 2020
43 tasks
@tolusha tolusha mentioned this issue Apr 16, 2020
50 tasks
@tolusha
Copy link
Contributor Author

tolusha commented Apr 22, 2020

@sleshchenko
the only problem is that a token does not live long

@sleshchenko
Copy link
Member

you're are talking about accessToken, right? Don't refresh token has longer lifetime?

BTW asking a user to type username and password is better than fails with requiring set environment variable with token and retry.

@tolusha tolusha removed this from the Backlog - Deploy milestone May 6, 2020
@tolusha tolusha modified the milestone: Backlog - Deploy Jul 8, 2020
@tolusha tolusha added this to the Backlog - Deploy milestone Sep 8, 2020
@tolusha tolusha mentioned this issue Sep 8, 2020
48 tasks
@tolusha tolusha modified the milestones: Backlog - Deploy, 7.20 Sep 11, 2020
@mmorhun mmorhun self-assigned this Sep 24, 2020
@tolusha tolusha mentioned this issue Oct 1, 2020
50 tasks
@tolusha tolusha modified the milestones: 7.20, 7.21 Oct 2, 2020
@tolusha tolusha closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chectl Issues related to chectl, the CLI of Che kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants