Commit Graph

297 Commits (37428e4e46409c9f3dfd4cc3ee8836d950ddbc91)

Author SHA1 Message Date
che-bot bd3d5eae49
Merge branch 'pr-master-to-7.25.0-SNAPSHOT' of github.com:eclipse/che into pr-master-to-7.25.0-SNAPSHOT (#18760)
* [release] Bump to 7.25.0-SNAPSHOT in master

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

* [release] Bump to 7.25.0-SNAPSHOT in master

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2021-01-11 09:25:22 +02:00
Sergii Kabashniuk 3b9601c6c4
Rename root artifactId to che-server (#18639)
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-12-17 12:35:39 +02:00
Oleksandr Andriienko 7ee6ef3d42
Fix che-server when used external oidc provider. (#18563)
* Fix che-server when used external oidc provider. Refactor code related to internal network. Add more tests, java docs.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-12-16 18:02:10 +02:00
che-bot 46dc9ac8ad
[release] Bump to 7.24.0-SNAPSHOT in master (#18595)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-12-14 08:55:15 -05:00
Sergii Kabashniuk f817a510e4
Used images that moved from docker hub to quay for db integration testing (#18410)
* Used images that moved from docker hub to quay for db integration testing

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-12-09 08:06:57 +02:00
Ilya Buziuk 6d19631635 Fixing NPE in the 'KeycloakSettings'
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2020-12-04 15:43:43 +01:00
Sergii Kabashniuk 84f83abfc7
Allow to replace backslash in usernames during first login (#18425)
* Allow replacing backslash in usernames during the first login

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-12-02 16:25:26 +02:00
Oleksandr Andriienko 4100db3053
Add ability to use internal network for keycloak. (#18225)
* Add ability to use internal network for keycloak.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-11-26 17:27:18 +02:00
che-bot 60aa069746
[release] Bump to 7.23.0-SNAPSHOT in master (#18418)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-11-23 14:20:16 +02:00
che-bot 0af5ef8954
[release] Bump to 7.22.0-SNAPSHOT in master (#18246)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-10-30 12:26:31 +02:00
Vitalii Parfonov 9204dce1e9
Fixing import in MultiuserWorkspaceJpaModule: should be RemoveWorkspaceBeforeAccountRemovedEventSubscriber from MultiuserJpaWorkspaceDao (#18203)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-10-27 10:25:35 +02:00
Vitalii Parfonov 0558b9eba2
Stop and remove running workspaces instead of failing on remove user event (#18136)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-10-23 00:05:28 +03:00
Max Shaposhnik 1e4be63410
Remove installers entity 2020-10-19 19:25:03 +03:00
che-bot 577bf2955c
[release] Bump to 7.21.0-SNAPSHOT in master (#18091)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-10-13 02:55:44 +03:00
Sergii Kabashniuk f703f6fe1c
REST APIs that allows saving/edit/delete/search/share devfiles (#17843)
* REST APIs that allows saving/edit/delete/search/share devfiles

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-10-06 13:00:55 +03:00
Vitalii Parfonov fb8c94a614
Remove user from keycloak server on BeforeUserRemovedEvent (#17858)
* Remove user from Keycloak server on BeforeUserRemovedEvent

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-10-01 15:01:38 +03:00
che-bot ee55d0e66e
[release] Bump to 7.20.0-SNAPSHOT in master (#17900)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-09-24 15:27:20 +03:00
Sergii Kabashniuk e5475206db
Removed WorkspaceConfig related REST API (#17682)
* Removed WorkspaceConfig related REST API

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-09-01 16:29:12 +03:00
che-bot cc302641fe
[release] Bump to 7.19.0-SNAPSHOT in master (#17708)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-08-27 16:04:22 +03:00
Vitalii Parfonov 3d27158968
Shutdown Asynchronous Pod after some idle time (#17615)
* Shutdown Asynchronous Pod after some idle time

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>

Co-authored-by: Ilya Buziuk <ibuziuk@redhat.com>
2020-08-13 17:17:06 +03:00
Mykhailo Kuznietsov 90548b2d33 [release] Bump to 7.18.0-SNAPSHOT in master
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-08-07 18:24:10 +02:00
che-bot 14aaa7530f
[release] Bump to 7.17.0-SNAPSHOT in master (#17422)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-07-16 13:20:27 +03:00
Vitalii Parfonov 3dd86e856d
Prepare environment for async storage of project sources (#16972)
* Prepare environment for async storage of project sources

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-07-15 18:50:36 +03:00
Tom George cfb2cf4a9b
Merge pull request #17323 from tomgeorge/che-17231
Add workspace maximum time
2020-07-14 10:20:33 -05:00
Max Shaposhnik 5d51b28d83
Use proxy authenticator on Keycloak Settings retrieval; 2020-07-10 13:55:51 +03:00
Tom George 97faa8d1b4
Fix name
Signed-off-by: Tom George <tgeorge@redhat.com>
2020-07-07 18:17:13 -05:00
Tom George a379daf78e
Add workspace maximum time che property
Signed-off-by: Tom George <tgeorge@redhat.com>
2020-07-07 18:03:40 -05:00
che-bot 9bbb5eab8e
[release] Bump to 7.16.0-SNAPSHOT in master (#17249)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-06-26 18:10:09 +03:00
che-bot 5c580b1875
[release] Bump to 7.15.0-SNAPSHOT in master (#17085)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-06-04 13:24:48 +03:00
che-bot 0419084717
[release] Bump to 7.14.0-SNAPSHOT in master (#16931)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>

Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-05-18 12:41:27 +03:00
Sergii Kabashniuk 5ca582e95c
Used version docker-maven-plugin:0.22.1 that is defined in parent-pom and fixed issue with auth in some cases (#16880)
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-05-12 10:59:27 +02:00
Sergii Kabashniuk 93ba5ef2f3
Rebalancing maven module execution order (#16497)
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-05-06 14:54:38 +02:00
Mykhailo Kuznietsov fa9f6d5eba
[release] bump master to 7.13.0-SNAPSHOT (#16739)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-04-24 14:40:41 +03:00
Sergii Kabashniuk af4465f04e
Independent metric: Total workspace count (#16640)
Independent metric: Total workspace count 

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-04-20 14:13:52 +02:00
Mykhailo Kuznietsov 07eafb32a3
[release] Bump to 7.12.0-SNAPSHOT in master (#16562)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-04-08 13:13:48 +03:00
Igor Vinokur 5c20e0ee26
Apply web application that can make authentication requests with user token (#16488)
Currently oAuth requests are not allowed to use machine token, so this web app loads a keycloak token on start and opens the oauth authenticate popup with the help of the keycloak token. If we need to get the oauth provider's token the web app send a user token to the window which opened the app. Then the client that opened the app will receive a user token which can be used for other oAuth requests like getToken().
2020-04-08 11:48:13 +03:00
Max Shaposhnik f9b6949353
Prevent ArrayIndexOutOfBoundsException in HeaderRequestTokenExtractor 2020-04-03 11:04:10 +03:00
Vitalii Parfonov 55ac5964dd
Set next development version (#16309)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-03-13 21:34:45 +02:00
Michal Vala bffe11e227
Watch and provide startup logs (workspace + broker pods) (#16126)
* collect logs first

* very very rough log watching implementation, does not even work

Signed-off-by: Michal Vala <mvala@redhat.com>

* ok this should work

Signed-off-by: Michal Vala <mvala@redhat.com>

* cleanup

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* simplify, get rid of custom input stream

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* start watching for logs later, when we know the machines we're interested in

Signed-off-by: Michal Vala <mvala@redhat.com>

* make waiting for containers to get the logs rather time based

Signed-off-by: Michal Vala <mvala@redhat.com>

* block closing only when workspace failure, reusing kubernetes threadpool... can this thing get any better?

Signed-off-by: Michal Vala <mvala@redhat.com>

* just some refactoring and cleanup

Signed-off-by: Michal Vala <mvala@redhat.com>

* and format

Signed-off-by: Michal Vala <mvala@redhat.com>

* reading log input stream moved to LogWatcher and PodLongHandler is now responsible for handling just single log messages

Signed-off-by: Michal Vala <mvala@redhat.com>

* more precise checking for log error

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* make it possible to start the workspace in debug mode

Signed-off-by: Michal Vala <mvala@redhat.com>

* debug mode in devfile attributes

Signed-off-by: Michal Vala <mvala@redhat.com>

* get rid of inconsistent executor in KubernetesDeployments#watchLogs method

Signed-off-by: Michal Vala <mvala@redhat.com>

* log and javadoc fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* nullcheckcs for the devfile and fix tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* better logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* add few tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* LogWatcher tests first batch

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove unused imports

Signed-off-by: Michal Vala <mvala@redhat.com>

* bit reworked container logwatch

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix missing license headers

Signed-off-by: Michal Vala <mvala@redhat.com>

* equals, hashCode and toString

Signed-off-by: Michal Vala <mvala@redhat.com>

* that's not probably needed

Signed-off-by: Michal Vala <mvala@redhat.com>

* review fixes, simplify code, better variable names

Signed-off-by: Michal Vala <mvala@redhat.com>

* we don't need distinct on Set

Signed-off-by: Michal Vala <mvala@redhat.com>

* add rest param to watch the workspace pod logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix and add tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* return when finish with watching logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* test successful ended container log watch

Signed-off-by: Michal Vala <mvala@redhat.com>

* simplify

Signed-off-by: Michal Vala <mvala@redhat.com>

* comment up

Signed-off-by: Michal Vala <mvala@redhat.com>

* tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* PodLogHandlerToEventPublisherTest

Signed-off-by: Michal Vala <mvala@redhat.com>

* make debug workspace start query param lowercase

Signed-off-by: Michal Vala <mvala@redhat.com>

* hold sharedpool object in namespace/project factories

Signed-off-by: Michal Vala <mvala@redhat.com>

* watch plugin broker logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* synchroinze closing and adding container log watchers, wait before close on error

Signed-off-by: Michal Vala <mvala@redhat.com>

* synchronize new logwatch with closing

Signed-off-by: Michal Vala <mvala@redhat.com>

* add missing license header

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix logwatch close test

Signed-off-by: Michal Vala <mvala@redhat.com>

* get startOptions down to broker deploy to tell wether we want to watch the logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* Update infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesDeployments.java

Co-Authored-By: Angel Misevski <amisevsk@redhat.com>

* Update infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/log/LogWatcher.java

Co-Authored-By: Angel Misevski <amisevsk@redhat.com>

* review fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* aaand format

Signed-off-by: Michal Vala <mvala@redhat.com>

* timeoutes to constants

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove unnecessary AtomiBoolean, synchronize creating LogWatch, and few more review fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* limit log inputstream size to be safe

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove logwatch TODO, which is fixed now

Signed-off-by: Michal Vala <mvala@redhat.com>

* don't need AtomicBoolean, extra options isEmpty check, some javadoc

Signed-off-by: Michal Vala <mvala@redhat.com>

Co-authored-by: Angel Misevski <amisevsk@redhat.com>
2020-02-27 15:16:37 +01:00
Sergii Kabashniuk c88df786e1
Make embedded OAuth authentication model default for both singe and multiuser che && allow to get OAuth token with machine token (#15705)
* Make embedded OAuth authentication model default for both singe and multiuser che
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>

* Allow to get oauth tokens with machine tokens

Co-authored-by: Oleksii Kurinnyi <okurinny@redhat.com>
2020-02-25 08:13:03 +01:00
Michal Vala 0c474ad679
genclass package typo (#16099)
Signed-off-by: Michal Vala <mvala@redhat.com>
2020-02-24 12:48:22 +01:00
Mykhailo Kuznietsov c3f09baac0
[release] Bump to 7.10.0-SNAPSHOT in master branch (#16081)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-02-20 12:28:58 +02:00
Max Shaposhnik f2e95158ce
Update testNG to more actual version (7.0.0) 2020-02-07 12:00:28 +02:00
Vitalii Parfonov 987e484c06
Set new development version in master branch (#15880) 2020-01-30 15:38:59 +02:00
Max Shaposhnik 4705694009 fixup! fixup! Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:23:47 +02:00
Max Shaposhnik 925e94ed7e fixup! Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:20:17 +02:00
Max Shaposhnik 8718f61b3d Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:06:50 +02:00
Vitalii Parfonov dcf2e1ee5f
RELEASE: Set next development version (#15632) 2020-01-09 13:51:20 +02:00
Vitalii Parfonov fce1fe9e2c
RELEASE: Set next development version (#15528) 2019-12-19 11:07:35 +02:00
Max Shaposhnik ce64b1966e
Restructurize auth modules and remove reduntant one 2019-12-11 11:19:54 +02:00