Commit Graph

109 Commits (c19ccdcdee48d99437e15155612427417a638dcf)

Author SHA1 Message Date
Mykhailo Kuznietsov db0644505c
Set correct response for non-working services in Multi User Che (#9237) 2018-03-30 06:45:55 +00:00
Max Shaposhnik 02504d2470
Make workspace expiration data persistent & shareable. 2018-03-28 12:11:06 +03:00
Roman Iuvshyn e006334aad
RELEASE: Set next development version (#9268) 2018-03-28 10:58:30 +03:00
David Festal ff3459d2d3
Support alternate OIDC providers, to prepare for the switch from Keycloak to `fabric8_auth` (#8650)
Allow switching to an alternate OIDC provider (provided that it emits access tokens as JWT tokens).

This is the implementation required in upstream Che, for issues
redhat-developer/rh-che#502 and
redhat-developer/rh-che#525

Signed-off-by: David Festal <dfestal@redhat.com>
2018-03-23 14:44:23 +01:00
Florent BENOIT f051b7f5d4
Introduce logger REST API to manage log level at runtime (#9161)
* Introduce logger REST API to manage log level at runtime

It's possible to create new logger with log level, list all loggers defined with log level, change level on a given logger, etc

Change-Id: I1c105aca33cc88f90270ade4d792d3a75191740a
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2018-03-21 15:17:36 +01:00
Mykhailo Kuznietsov 66150852c0
Add indexes for reference side of foreign keys (#9146) 2018-03-21 08:38:30 +00:00
Mykhailo Kuznietsov cc25126d24
Add authentication for ws connections (#9043) 2018-03-14 09:47:17 +02:00
Roman Iuvshyn dbdac2a604
RELEASE: Set next development version (#9038) 2018-03-07 17:53:03 +07:00
Anton Korneta 806a6da184 Make start of OpenShift machines parallel 2018-02-26 11:53:12 +02:00
Max Shaposhnik d2fcdb772a
Improve functionality of identity provider token retrieval 2018-02-23 10:33:45 +02:00
Mykhailo Kuznietsov 48d516cad5
Fix machine token generation on workspace start (#8710) 2018-02-15 15:28:29 +02:00
Roman Iuvshyn e2762411b3
RELEASE: Set next development version (#8773) 2018-02-14 15:00:52 +02:00
Sergii Kabashniuk 247f81b519
Allow to call system state without permissions (#8607) 2018-02-05 14:52:43 +02:00
Max Shaposhnik 06b32260db
Protect installer service modifying methods with permissions 2018-02-02 12:26:34 +02:00
Roman Iuvshyn f50c2ebbf5
RELEASE: Set next development version (#8496) 2018-01-31 17:53:10 +02:00
Vitaliy Guliy 9abfec7c5f
CHE-7581 Improved keycloak initialization (#8425)
* Initialize keycloak before loading the IDE javascript

* Fix formatting

* Add explanation in error message
2018-01-26 12:35:42 +02:00
Mykhailo Kuznietsov 72b21e971b
Remove "source" field from stack object (#8407) 2018-01-25 15:53:33 +02:00
Max Shaposhnik 2902fc75a4
Refactor remaining everrest websocket endpoints to use Json RPC (#8388) 2018-01-24 16:17:00 +02:00
Anton Korneta 5c68c90a0b Move license to resource details 2018-01-24 13:44:36 +02:00
Oleksandr Garagatyi 9d75f3e219
Rework default memory limit setting (#8422)
Extract default machine memory limit setting from
InternalEnvironmentFactory to recipe specific environment
factories.
Make memory limit attribute optional by respecting it by
resource API subsystem.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-24 12:47:06 +02:00
Anton Korneta 8ab59e1ece Add setting of RAM limit attribute to env factories and converters for specific recipes 2018-01-17 16:28:51 +02:00
Mykhailo Kuznietsov 2c2bd6637c
Set new year in license headers (#8244) 2018-01-11 16:04:49 +02:00
Sun Tan ec77e22046 Adding identity_id from keycloak to the logs through MDC Context
Signed-off-by: Sun Tan <sutan@redhat.com>
2018-01-05 13:46:28 +01:00
Oleksandr Garagatyi 9e0a4f2095
Add continuous servers liveness checks (#8088)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-04 17:33:14 +02:00
Roman Iuvshyn 71704ab3a7
RELEASE: Set next development version (#8135) 2018-01-03 14:13:25 +02:00
Mykhailo Kuznietsov 93b974d1e0
Change worskpace project files storage path (#7844)
- Workspace projects are now stored in folders, named after their workspace id, rather than name,
to prevent issues with workspace renaming. Applies to Docker infrastructure only.
- Add migration, that would move workspace projects to their new location. Occurs on Che startup.
- Added configuration property to enable/disable this migration.
- Improved Workspace DAO/Manager to use pagination for methods, that return lists of workspaces
2017-12-22 15:55:28 +02:00
Max Shaposhnik 8ff1be36f5
Added support of Idenvity brokering mechanism of Keycloak for Multi-user Che 2017-12-21 17:50:03 +02:00
Max Shaposhnik db9b1667d4
Reflect changing user email on Keycloak to the Che database (#7895)
* Add check for user email if tokens does not match
* Add tests
2017-12-15 15:21:25 +02:00
Roman Iuvshyn 5a6d3910b2
RELEASE: set next dev version (#7882) 2017-12-14 15:51:34 +02:00
Oleksandr Garagatyi 6b7b1c6468 CHE-7561: add internal server concept into workspace API
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-12-11 11:41:11 +02:00
Sergii Leshchenko 6f0ab7894b
CHE-7502 Make it possible to bind only one RuntimeInfrastructure (#7655) 2017-12-01 12:01:44 +02:00
Roman Iuvshyn 506210325a
RELEASE: set next dev version (#7523) 2017-11-23 12:50:56 +02:00
Oleksandr Garagatyi ba7a1e2e51 CHE-7010: Add volumes into machine model object
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-11-20 16:14:47 +02:00
Sergii Leshchenko e7843db2de Add tests for new classes and fix existing tests in api-workspace module 2017-11-20 11:02:48 +02:00
Sergii Leshchenko 0f1ca700df Move objects related to InternalEnvironment into separate package 2017-11-20 11:02:48 +02:00
Gennady Azarenkov eb90e43cf3 Replace RuntimeInfrastructure#estimate with InternalEnvironmentFactory
It is done for decoupling runtime from environment configuration
2017-11-20 11:02:47 +02:00
Artem Zatsarynnyi 1e4a702724
Make it possible to tell IDE to use a different "wsagent" server (#7392)
* Make it possible to tell IDE to use a different "wsagent" server passing server's ref prefix through query parameter

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2017-11-17 10:27:30 +02:00
Anton Korneta f8d8511641 Fixed domain in set stack permissions while 'manageSystem' action check 2017-11-15 13:54:38 +02:00
Max Shaposhnik c74bad367c
Remove snapshotting mechanism; 2017-11-13 14:25:40 +02:00
Max Shaposhnik 7474054027
Build fix 2017-11-07 12:45:58 +02:00
Max Shaposhnik ea7e071b3a
Use same assembly for single- and multiuser Che 2017-11-07 12:27:02 +02:00
Roman Iuvshyn 19f5fd1f5a
RELEASE: Set next development version (#7112) 2017-10-31 16:46:30 +02:00
Artem Zatsarynnyi f15fbf1cb1
IDE agnostic way to launch GWT Super DevMode (#7084)
Adapted modules to gwt-lib/gwt-app lifecycle;
shared libs have been cleaned up from the GWT related stuff;
enabled launching Super DevMode with a reactor goal gwt:codeserver;
enabled launching Super DevMode inside a dev-machine (for Che in Che development);
separate compiling IDE GWT app from packaging IDE Web app.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2017-10-31 15:27:22 +02:00
Sergii Leshchenko 4a4a4eb271 CHE-6577 Add usage of machine token while connecting to exec, terminal, workspace agents via websocket 2017-10-30 17:50:12 +02:00
Max Shaposhnik 57aa4400e4 Make /system/status service public to allow liveness checks by it 2017-10-25 12:53:43 +03:00
Max Shaposhnik c1bb1621a0 Group all DB migrations related to Che6 into 6.0.0 version; (#6945) 2017-10-24 15:37:00 +03:00
Florent BENOIT 3f262e620e Cleanup some Mockito deprecated usage (che6) (#6864)
* Cleanup some Mockito deprecated usage
org.mockito.Matchers —> org.mockito.ArgumentMatchers
org.mockito.runners.MockitoJUnitRunner —> org.mockito.junit.MockitoJUnitRunner

Change-Id: Icf7351cb58e0f42fa95885c2d2cf6b5e98206c35
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-21 09:07:43 +02:00
Florent BENOIT 6a95b6d74a Apply google format v1.4 https://github.com/google/google-java-format/releases/tag/google-java-format-1.4
Change-Id: I5df30c23165df1fd39eef4c57893bebd1d681c1d
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-19 22:23:04 +02:00
Max Shaposhnik 42e56b399c Fix workpsace-permissions module dependencies; 2017-10-19 14:52:41 +03:00
Sergii Kabashniuk 3258a4bb3f Remove unexisted artifact 2017-10-19 14:10:25 +03:00