Commit Graph

840 Commits (fc2f76bc5c8a6146cdaca34eb2bb60ca8e30aaee)

Author SHA1 Message Date
Sergii Leshchenko c77ce15e46 Formatted pom.xml in dashboard module (PR #11570) 2018-10-17 00:11:58 +03:00
Oleksii Orel eab323deb1 Fix create factory flow
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel 4171adaa50 Fix import git project service
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel 4d7d24b5c0 CHE-10732 Fix empty 'Edit the machine' form error
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Oleksii Orel d2e7bc9eb9 CHE-10659 Fix the regular expression for a workspace name
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-11 15:09:05 +03:00
Anna Shumilova d4e98b624e Split editors and plugins, and disable installers, when any plugin is selected
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-10-11 11:08:43 +03:00
David Festal 534a961e84
Provide better compatibility with alternate OIDC providers (#11090)
Currently in Che there are still a number of requirements in upstream that are not required by the OIDC specification, so that Che still cannot be used with a number of OIDC compliant providers.
For example, in order to have Che working with the [`node-oidc-provider`](https://github.com/panva/node-oidc-provider), the following changes were necessary:

- Remove the requirement to have the email as a claim in the JWT access
token: this is not required the specification and is not supported by a
number of OIDC providers. Normally, the Id token contains such claims.

  So now if the email is not in the JWT token the first time the user connects to Che, ten the email is retrieved from the OIDC provider through its `user-profile` endpoint.

- Explicitely specify the the `openid email profile` scope when requesting the access token. Because OIDC providers, when answering to the `userInfo` endpoint, are expected to return claims that corresponds to the scopes of the access token. So if an access token has the `openid` scope only, the `userinfo` might return no claim at all (according to the specification).

  Until now it was working since keycloak allows adding claims to the returned tokens anyway.

- Allow supporting fixed redirect Uris: most OIDC providers support having a list of redirect URIs to come back to after the authorization step.  But these authorized Uris don't necessarily support wildcards or prefix. Che doesn't support this currently, and these changes introduce 2 fixed callback HTML pages that redirect to the Dashboard / IDE URL of the final page we want to come back to after authentication. This makes Che compatible with more OIDC providers

  We introduced a new boolean property to enable / disable fixed redirect URLs:
  `che.keycloak.use_fixed_redirect_urls` 
  whose default value is `false`

- The previous points required some light changes in the Keycloak Javascript adapter file, that we will submit as a PR to the Keycloak project. I, the meantime the `OIDCKeycloak.js` file is still used, but has been updated to be now based on the `keycloak.js` file of the last `4.5.0-final` Keycloak release. This will make this Keycloak PR easier to get accepted.

  Please keep in mind that this version upgrade only impacts the alternate OIDC provider case: when using a real Keycloak server, Che *always uses the `keycloak.js` file provided by the Keycloak server*. 


Signed-off-by: David Festal <dfestal@redhat.com>
2018-10-10 20:52:35 +02:00
Oleksii Orel 923b0b7a48
Fix webpack config (#11532)
* Fix webpack config

Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-09 15:35:08 +03:00
Oleksii Orel 01c9ded99f add sources for UD
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-08 16:01:28 +03:00
Oleksii Orel d3a608bb1d Upgrade the version of jQuery to 3.3.1
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-05 11:51:44 +03:00
Sergii Leshchenko 2a1f20452f Make Dashboard listen to runtime log instead of machine log 2018-10-04 21:12:36 +03:00
Roman Iuvshyn 63b389c2fe
RELEASE: Set next development version (#11434)
* RELEASE: Set next development version
2018-10-04 18:25:39 +03:00
Oleksii Orel 29818c2c0c CHE-10883 migrate from bower to yarn
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-10-04 16:17:38 +03:00
Anna Shumilova 3737893af5 Add plugins widget on workspace creation
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-09-25 10:17:31 +03:00
Anna Shumilova 432e3ac441 Fix the plugins registry location
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-09-13 13:53:40 +03:00
Anna Shumilova d63304edf8 Manage the list of plugins from Che plugins registry
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-09-13 09:56:28 +03:00
Roman Iuvshyn ea410c3340
RELEASE: Set next development version (#11169) 2018-09-12 11:53:42 +03:00
Roman Nikitenko 0c0f69d259 CHE-10403. Fix 'onOpen' websocket handlers
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2018-09-11 13:55:22 +03:00
Oleksii Kurinnyi 4e5725fbd4
CHE-9709: fix ability to create a factory from a Git URL (#10843)
* CHE-9709: fix ability to create a factory from a Git URL

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-9709: fix ability to create a factory from a Git URL
2018-08-27 08:43:10 +03:00
Max Shaposhnik 409c389eb4
Show meaningful message when we cannot authenticate user (due to absend email or other error) (#10889) 2018-08-24 08:39:35 +03:00
Oleksii Orel f9ab7b7760 CHE-10775 Upgrade lodash to version 4.17.10
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-08-22 12:38:50 +03:00
Roman Iuvshyn d99b2ed73d
RELEASE: Set next development version (#10867)
* RELEASE: Set next development version
2018-08-22 12:06:38 +03:00
Oleksii Kurinnyi 0d27a2c527
Make clickable the whole workspace item row in workspaces list of an organization (#10814)
For workspace item in the organization's workspaces list added ng-click
directive to columns 'RAM', 'Projects' and 'Stack' to redirect to
Workspace Overview page.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-08-17 15:51:58 +03:00
Oleksii Kurinnyi ccf7171896
CHE-10121: fix behavior of "Create" factory button (#10778)
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-08-17 14:50:34 +03:00
kkanova 31a2f49117 Fixing of letters cut-off in left menu.
Signed-off-by: kkanova <kkanova@redhat.com>
2018-08-17 14:28:45 +03:00
Oleksii Kurinnyi f9a2c4bd33
CHE-5650: set fixed sorting order for prioritized stacks (#10760)
* CHE-5650: fix stacks' order after sorting

This fix sets fixed sorting order for some prioritized stacks. These
stacks are marked by a 'thumb-tack' icon.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-5650: fix stacks' order after sorting

* fixup! fixup! CHE-5650: fix stacks' order after sorting
2018-08-16 17:03:23 +03:00
Oleksii Kurinnyi 7c37b74de1
CHE-9148: fix workspace item in organization's workspaces list (#10750)
- make workspace name clickable to redirect to workspace overview page
- add workspace action button to be able to start/stop a workspace
- add workspace status indicator

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-08-14 10:08:44 +03:00
Sergii Leshchenko 74cde67f3e
Merge pull request #10721 from sleshchenko/wsConfigAttributes
Removed duplicated declaration of che-core-api-core dependency
Added attributes field to workspace config object
Fetch Che plugins from WorkspaceConfig's attributes instead of Workspace's ones
Remove duplicated declarations in pom file of postgresql-tck module
2018-08-13 10:47:19 +03:00
Oleksii Kurinnyi 8cb2d7eb8e
CHE-10544: prevent Dashboard to become broken after deleting a workspace (#10716)
* CHE-10544: prevent Dashboard to become broken after deleting a workspace

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* update license headers

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-08-10 17:22:40 +03:00
Sergii Leshchenko de1459c52b Add attributes field to workspace config object 2018-08-10 14:06:41 +03:00
Igor Ohrimenko e5779976ed
Selenium: Cover "Dashboard / Workspace Details / Projects" part of test plan by selenium test (#10691) 2018-08-09 10:42:43 +03:00
Roman Iuvshyn 60da580c92
RELEASE: Set next development version (#10603) 2018-08-02 12:38:48 +03:00
Mykhailo Kuznietsov 07263f1e30
Fix license header text (#10629) 2018-08-02 11:18:04 +03:00
Mykhailo Kuznietsov 83ffdcf330
Fix remaining notes about old EPL 1.0 license (#10607) 2018-08-01 09:48:15 +03:00
Mykhailo Kuznietsov 15d23edc91
Update license to EPL 2.0 (#10531) 2018-07-31 11:24:36 +03:00
Oleksii Kurinnyi 3bd86ee6e6
CHE-10097, CHE-10098, CHE-256: fix bugs related to installers on Stack Details page (#10367)
* CHE-10098: fix multiple installers

replace the obsolete installers list with the currently used one

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fix a bug regarding saving installer states

switching several installers in a row causes a bug when only the last
installer's state is stored in a stack configuration.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* CHE-10256: fix overlay

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* add unit tests for stack-details directive

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* CHE-10097: fix unexpected page scroll

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! CHE-10097: fix unexpected page scroll

* fixup! fixup! CHE-10097: fix unexpected page scroll

* fixup! fixup! fixup! CHE-10097: fix unexpected page scroll
2018-07-20 12:29:05 +03:00
Oleksii Kurinnyi b0eab79dfc
CHE-10335: update the flow for adding a new stack (#10393) 2018-07-18 10:24:10 +03:00
Roman Iuvshyn 985d368f2d
RELEASE: Set next development version (#10345)
* RELEASE: Set next development version
2018-07-10 15:56:52 +03:00
Oleksii Orel a1d160cbdf CHE-10215 fix factory templates
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-07-02 10:45:16 +03:00
Roman Iuvshyn d7e1c73cf8
RELEASE: Set next development version (#10110) 2018-06-19 17:24:50 +03:00
Oleksii Orel fa15dee53a CHE-9563 fix switcher bug for UD
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-06-13 14:45:05 +03:00
Oleksii Orel 4269341b53 CHE-9547 fix RAM changes for editing the machine dialog for UD
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-05-31 20:25:44 +03:00
Roman Iuvshyn 7231585f4b
RELEASE: Set next development version (#9862) 2018-05-30 12:01:54 +03:00
David Festal e0890235fa
Allow creating OpenShift objects under the current user account on OCP (#9577)
* Support identity provider token retrieval in both JSON or URL formats.

That's required because some identity providers (such a `openshift-v3`)
correctly return the token information in JSON, as expected. So
switching to the url-based syntax should only used when the returned
json is invalid.

Signed-off-by: David Festal <dfestal@redhat.com>

* Introduce an `OpenShiftClientConfigFactory` to allow customizing the OpenShift config returned according to the current context (workspace ID, current user)

Signed-off-by: David Festal <dfestal@redhat.com>

* Openshift Infra + Multi-user => allow using OpenShift identity provider to connect to openshift with the OS oauth token of the current Che user.

This introduces a new property:

`che.infra.openshift.oauth_identity_provider`

Signed-off-by: David Festal <dfestal@redhat.com>

* Notify the user when a workspace cannot be started from the nav bar.

Signed-off-by: David Festal <dfestal@redhat.com>

* Add the ability to install the Openshift certificate into Keycloak

Signed-off-by: David Festal <dfestal@redhat.com>

* Add a yaml file to provide the openshift certificate as a secret,

in case it has to be installed into the dedicated Keycloak server.

Then the commands to install Che multiuser on Minishift with this
certificate are:

```
oc new-project che

oc process -f multi/openshift-certificate-secret.yaml -p
CERTIFICATE="$(minishift ssh docker exec origin /bin/cat
./openshift.local.config/master/ca.crt)" | oc apply -f -; \
oc new-app -f multi/postgres-template.yaml; \
oc new-app -f multi/keycloak-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io; \
oc apply -f pvc/che-server-pvc.yaml; \
oc new-app -f che-server-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io -p CHE_MULTIUSER=true -p
CHE_INFRA_OPENSHIFT_OAUTH__IDENTITY__PROVIDER=openshift-v3; \
oc set volume dc/che --add -m /data --name=che-data-volume
--claim-name=che-data-volume
```

Of course it's still needed to register the `openshift-v3` identity
provider in the Keycloak server, as well as, add the corresponding
`OAuthClient` object in Minihshift.

Signed-off-by: David Festal <dfestal@redhat.com>
2018-05-28 11:39:44 +02:00
Oleksii Kurinnyi 963234af5d
CHE-8931: fix blank screen on project details page (#9771)
* check WebSocket connection

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* check workspace and workspace agent for they to be existing

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-05-23 14:35:48 +03:00
Anna Shumilova 576ce4743a Fix installers version confusing by displaying only the latest version
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-05-22 12:10:50 +03:00
Anna Shumilova 504fae4b93 Fix wsagent clientId passing, fix diagnostics recipe to work both on ocp and docker
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-05-21 15:34:57 +03:00
Anna Shumilova 0139788632 che-9234: fix diagnostics by reworking websocket usage to jsonrpc
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-05-16 10:54:39 +03:00
Oleksii Orel f2ff0f8e1a CHE-9523 improve flow to creating a new stack for OpenShift/K8S
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-05-15 11:08:23 +03:00
Anna Shumilova a7f86b3c1b che-9537: fix machine name editing
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2018-05-14 12:15:33 +03:00