Commit Graph

76 Commits (5179594fb235be41a21deaefb3f5c679d5b7ebec)

Author SHA1 Message Date
Mykola Morhun 3e8585c220
[Workspace Loader] Add missing async keyword (#15154)
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2019-11-11 10:01:10 +02:00
Mykola Morhun a1bc6e18da
[Workspace Loader] Add strict checks for typescript (#15147)
* [Workspace Loader] Add strict checks for typescript

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2019-11-08 15:26:55 +02:00
Vitalii Parfonov e5d31ff913
RELEASE: Set next development version (#15141) 2019-11-07 17:14:27 +02:00
Mykola Morhun 98e2487cc4
Improve docs and devfile on workspace loader development flow (#15125)
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2019-11-06 17:10:53 +02:00
Vitalii Parfonov 41d48bf2de
RELEASE: Set next development version (#14904) 2019-10-17 15:45:06 +03:00
Oleksii Kurinnyi 87a0ad308d
prevent workspace restarting if user intentionally stopped it (#14728)
* prevent workspace restarting if user intentionally stopped it

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

* fixup! prevent workspace restarting if user intentionally stopped it
2019-10-09 11:18:40 +03:00
Vitalii Parfonov 4e1492b08f
RELEASE: Set next development version (#14690) 2019-09-27 22:52:26 +03:00
Oleksii Kurinnyi 18344675e7
Fix potential security vulnerabilities (#14313)
* upgrade dependencies

lodash to 4.17.15
angularJS to v1.6.10

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

* fix unit tests

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

* fix tests for Che Multiuser

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

* restore dialogs controllers initialization

* fixup! fix tests for Che Multiuser
2019-09-16 16:16:12 +03:00
Roman Iuvshyn 87056fe29e RELEASE: Set next development version 2019-09-05 14:54:52 +02:00
Oleksii Kurinnyi 208c4fb918
Fix handling of error status of a workspace (#13804)
* fixed handling of error status of a workspace after it has been started.

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

* workaround for devserver proxy to replace header 'origin' with target host

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

* use string interpolation instead of concatenation

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2019-09-05 12:59:49 +03:00
Vitalii Parfonov ae8fedc411
RELEASE: Set next development version (#14238) 2019-08-14 19:32:18 +03:00
Vitalii Parfonov 03da1e24e4
RELEASE: Set next development version (#14026) 2019-07-25 15:43:30 +03:00
Vitalii Parfonov ccc8e38823
RELEASE: Set next development version (#13711) 2019-07-05 13:08:59 +03:00
Oleksii Kurinnyi 46345a9448 Revert "fixed handling of error status of a workspace after it has been started." (#13699)
This reverts commit edfda1398c.
2019-07-04 14:48:01 +03:00
Oleksii Kurinnyi edfda1398c fixed handling of error status of a workspace after it has been started.
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2019-07-02 16:46:57 +03:00
Vitalii Parfonov 385c21284d
Set version 7.0.0-rc-3.0-SNAPSHOT (rc in lowercase) (#13655)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 17:40:14 +03:00
Vitalii Parfonov 65bb7943a0
Set new version 7.0.0-RC-3.0-SNAPSHOT (#13651)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 14:02:19 +03:00
Oleksii Kurinnyi 462b06b25d
Apply TS formatter and linter to workspace-loader (#13532)
* Added linter and formatter for Typescript.

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

* Fixed linting warnings.

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

* Fixed formatting.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2019-06-21 10:14:10 +03:00
Vitalii Parfonov 70c3e5b091
RELEASE: Set next development version (#13564) 2019-06-19 12:55:16 +03:00
Lukas Krejci caae00e21b
K8s-like devfile naming (#13490)
`specVersion` is now `apiVersion` and is bumped to 1.0.0
`name` is now nested under the new `metadata` element.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-06-10 23:23:45 +02:00
Vitalii Parfonov 64129a8d44
RELEASE: Set next development version (#13460) 2019-06-03 16:28:42 +03:00
Roman I dd1d9b5a58
switch to RC version scheme (#13424) 2019-05-28 13:52:49 +03:00
Roman I ffb8a3e013
RELEASE: Set next development version (#13377) 2019-05-22 09:52:28 +03:00
Oleksii Kurinnyi 8bd2736c93 added devfile.yaml for workspace-loader
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2019-05-13 17:55:42 +09:00
Oleksandr Andriienko 9a4678ea98
CHE-12063: Fix WorkspaceLoader hanging when Che Server is unreachable (#13282)
* CHE-12063: Fix WorkspaceLoader hanging when Che Server is unreachable

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Fix formatting.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Small fix up.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2019-05-08 12:55:47 +03:00
Roman Iuvshyn 53cb2c53fa
RELEASE: Set next development version (#13264) 2019-05-05 12:24:42 -04:00
Oleksandr Andriienko 80162ea6d2
Notify user about workspace 'stopped event' if previous state was 'starting.' (#13192)
* Workspace loader notify user about workspace 'stopped event' if previous state was 'starting.'

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Simplify error message.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2019-04-25 10:19:12 +03:00
Roman Iuvshyn e60598bdaf
RELEASE: Set next development version (#13102) 2019-04-10 17:13:01 +03:00
Gerben Oolbekkink fd9c74c806
Remove npm from native workspace loader build.
The workspace loader uses yarn since #10694, but this was not added to
the native build.

Uses npx to not have a dependency on an installed yarn version, specify
the same yarn version as the Dockerfile does.

Signed-off-by: Gerben Oolbekkink <g.j.w.oolbekkink@gmail.com>
2019-03-20 23:52:44 +01:00
Roman Iuvshyn 0abdc77ea0
RELEASE: Set next development version (#12922) 2019-03-19 15:56:30 +02:00
Vitaliy Gulyy 27a5f27394
Don't restart workspace in case of errors (#12860)
Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
2019-03-13 12:31:57 +02:00
Yevhen Vydolob 734230b07f
Try to fix loader (#12802)
* #11773 try to fix loader

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-03-04 16:42:57 +02:00
Roman Iuvshyn 0881493644
RELEASE: Set next development version (#12777) 2019-02-27 16:02:33 +02:00
Roman Iuvshyn 3778f01220
RELEASE: Set next development version (#12768) 2019-02-27 11:50:40 +02:00
Masaki Muranaka ef600e2c6c Fix a potentially bug. (#12043)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-02-20 09:28:13 +02:00
Roman Iuvshyn a694c4f971
RELEASE: Set next development version (#12596) 2019-02-06 18:22:35 +02:00
Yevhen Vydolob c3dc3aa5d4
Update version of 'webpack-dev-server', migrate to webpack 4 (#12580)
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-02-06 10:33:27 +02:00
Masaki Muranaka f02d8af1e5 Fix browser crashing issues on workspace loader. (#12421)
* Use `const` instead of `let` if it can.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Use updated authentication tokens always (refs #12042).

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Wait for the reconnection established. (refs #11893)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Catch the unhandled Promise.reject().

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-28 10:31:41 +02:00
Roman Iuvshyn 4ad10f2218
RELEASE: Set next development version (#12441) 2019-01-16 11:51:02 +02:00
Roman Iuvshyn b872b317cb
RELEASE: Set next development version (#12277) 2018-12-26 13:04:51 +02:00
Roman Iuvshyn 45490d2a3b
RELEASE: Set next development version (#12115) 2018-12-05 18:33:02 +02:00
Sergii Leshchenko 83f7236354
CHE-11572 Make Workspace Loader listen to installer output and print it (#12064) 2018-11-28 17:14:39 +02:00
Masaki Muranaka d309ef4b83 Remove redundant <version> elements. (#12023)
As they will be inherited from `parent.version`.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2018-11-25 21:17:08 +02:00
Roman Iuvshyn 99afaef87f
RELEASE: Set next development version (#11930) 2018-11-14 12:29:03 +02:00
David Festal 9560a437ab
Reuse the Dashboard Keycloak instance in IDE frames when possible (#11794)
* Reuse the Dashboard Keycloak instance in IDE frames when possible

This avoids one or 2 authentication flows between the real IDE loading,
and decrease the overall IDE loading process by 5 seconds or more.

(5-6 seconds out of 10-12s in my case)

Signed-off-by: David Festal <dfestal@redhat.com>
2018-11-05 12:13:20 +01:00
Roman Iuvshyn 365d25f275
RELEASE: Set next development version (#11710) 2018-10-24 16:38:03 +03:00
Thomas Mäder 4343ca272c Removed jdt (#10587)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00
Anatoliy Bazko 86aefabbea Fix workspace-loader application build (#10578)
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
2018-10-17 15:05:02 +02: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
Sergii Leshchenko a11bd54bbc Make Workspace Loader listen to runtime log instead of machine log 2018-10-04 21:12:36 +03:00