Igor Vinokur
12a3a8a8e7
Remove devfile validation schema mechanism ( #640 )
...
Remove devfile validation schema mechanism and related stuff.
2024-01-17 09:21:44 +02:00
Igor Vinokur
d077bdd93d
Add new devfile versions support ( #637 )
...
Add missing devfile versions to the list of supported devfile versions
Add corresponding jsons.
2024-01-09 18:16:34 +02:00
Ilya Buziuk
188c722dae
chore: Adding @Deprecated annotation to the unused services that will be removed in the future versions
...
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2023-04-03 15:40:13 +02:00
Igor Vinokur
45e9d18d22
Fix vuOAlnerable dependencies
...
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
2023-03-29 19:04:50 +02:00
Igor Vinokur
b9ededf339
Support Basic authentication for devfile factory URL ( #451 )
...
Add a parsing rule to detect credentials in factory URLs if it is in a format https://<username>:<pasword>@hostname.
Extract the credentials from factory URLs and pass them to the devfile content request.
2023-02-23 15:05:55 +02:00
Nick Boldt
0337316203
chore: CRW-3802 CRW-3803 update to com.fasterxml.jackson 2.14.1 to fix CVEs ( #415 )
...
* chore: CRW-3802 CRW-3803 udpate to com.fasterxml.jackson 2.14.1 to fix CVEs
Change-Id: I4b146c16536741751146a9700eea1027064015f0
Signed-off-by: Nick Boldt <nboldt@redhat.com>
* add missing version for junit:junit:jar ==> 4.12
Change-Id: I21c6b53f6df37e684659e9d9604bc15271bc7e3a
Signed-off-by: Nick Boldt <nboldt@redhat.com>
* use eq(DevfileImpl.class); update copyright date; thanks to @vinokurig for the fix!
Change-Id: I436df0c7f9e9557d348fc7faab44379fe510d643
Signed-off-by: Nick Boldt <nboldt@redhat.com>
* fix junit dependency issue
Change-Id: Iec554595866649c7480209463eaa64c12a2f6e96
Signed-off-by: Nick Boldt <nboldt@redhat.com>
* ridiculous pom sorting rules
Change-Id: I6d72fc133bbedb99875051041e221af5892f3323
Signed-off-by: Nick Boldt <nboldt@redhat.com>
* remove junit version
Change-Id: I9bfa72bec71c5b8a009f4a4ac22012aa4b47038d
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-01-11 15:04:36 -04:00
Nick Boldt
a97e6eec90
chore: update license headers to 2023 because we still use that annoying license header checker for some reason ( #412 )
...
To update next year:
find . -name "*" -exec sed -i -r -e "s@-2023 Red Hat@-2024 Red Hat@g" {} \;
Change-Id: I2167da69ac584e743e61f4bbe699f06296911857
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-01-04 10:33:06 -04:00
Ilya Buziuk
642732668b
chore: Removing deprecated devfile endpoints. Updating the 2.2 schema to the latest version
...
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2022-11-22 09:32:32 +01:00
Andrew Obuchowicz
8c7c008831
chore: remove che.workspace.server.ping_success_threshold & che.workspace.server.ping_interval_milliseconds properties
...
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2022-11-02 10:38:35 +01:00
Andrew Obuchowicz
2ae602980c
chore: remove che.workspace.probe_pool_size property
...
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2022-11-02 10:38:35 +01:00
Andrew Obuchowicz
5a932eeba6
chore: remove che.workspace.pool.type, che.workspace.pool.exact_size, che.workspace.pool.cores_multiplier properties
...
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2022-11-02 10:38:35 +01:00
Andrew Obuchowicz
9f9dce1bf5
chore: remove che.workspace.auto_start property
...
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2022-11-02 10:38:35 +01:00
Andrew Obuchowicz
f3700dba05
chore: remove che.workspace.projects.storage property
...
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2022-11-02 10:38:35 +01:00
Igor Vinokur
bd9cd9db44
chore: Apply authentication status in the callback url ( #338 )
...
When processing an authentication callback request set additional error query patameter to the callback url.
How it works:
1. User creates a factory form dashboard.
2. Dasboard requests che-server factory API with no error param in the request url. See https://github.com/eclipse-che/che-dashboard/pull/599
3. Che-server create factory API parses the url for the error param. No error query param means `skipAuthentication=false`. Authentication in progress.
74eb0a333d/wsmaster/che-core-api-factory-github/src/main/java/org/eclipse/che/api/factory/server/github/GithubFactoryParametersResolver.java (L104-L106)
4. GitHub shows the authentication page. If User rejects the authentication, authentication status is set to `access_denied`.
5. The error status is added to the redirect url as a query param.
74eb0a333d/wsmaster/che-core-api-auth/src/main/java/org/eclipse/che/security/oauth/EmbeddedOAuthAPI.java (L85-L93)
6. Dasboard is loaded from the redirect url. Dashboard requests the che-server to create factory by an api request with the error status query param from the redirect url.
e2849d9d21/packages/dashboard-frontend/src/containers/Loader/Factory/Steps/FetchDevfile/index.tsx (L208-L213)
7. Che-server create factory API parses the url for the status param. If `skipAuthentication=true` the authentication flow is skiped and factory creation progress goes further. If `skipAuthentication=false` factory is created in a regular way.
74eb0a333d/wsmaster/che-core-api-factory/src/main/java/org/eclipse/che/api/factory/server/scm/AuthorizingFileContentProvider.java (L70-L81)
2022-08-11 17:14:30 +03:00
Ilya Buziuk
efbe6f3d2c
fix: NPE fixup in the SshKeysConfigurator + bumping devfile 2.2 schema to teh latest version
...
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2022-04-04 14:09:12 +02:00
Sergii Kabashniuk
d8bed4006a
feat: Upgrade kubernetes client to 5.12.1 ( #257 )
2022-03-21 16:25:33 +02:00
Ilya Buziuk
893e7273ca
fix: updating devfile 2.2 schema to the latest version ( #251 )
...
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2022-02-02 09:01:35 +02:00
Sergii Kabashniuk
ce7c300eb9
build: Upgrade of maven plugins ( #222 )
...
* build: Upgrade of maven plugins
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2021-12-23 14:54:46 +02:00
Florent Benoit
adc6c51a5b
feat: bump schema of the 2.2.0 specification
2021-12-04 21:31:25 +01:00
Ilya Buziuk
62b66707fc
feat: #20631 Stopping all che-server based workspaces when DevWorkspace engine is enabled
...
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2021-11-10 17:54:30 +01:00
Florent Benoit
f2bceb8b26
fix: allow to override devfileFilename
2021-10-19 07:34:26 +02:00
Michal Vala
3a99240d2f
fix: devfile endpoint with single-host exposure ( #157 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-10-06 18:35:15 +02:00
Sergii Kabashniuk
359ebb32bc
build: Transition from Java EE to Jakarta EE ( #80 )
...
* Upgrade swagger-ui-3.51.2
* Upgrade tomcat 10.0.10
* changed only imports
* changed imports in service loader
* changed swagger jaxrs deployment
* Changed swagger annotations + basic imports
* Changed imports and minimal key length for jsonwebtoken
* Restassured API changes + imports
* Removed trailing slash from CHE_HOME
* Migrate to jakarta schema in web.xml
* Disable tracing
* New artifacts and maven build upgrade
* Removed jackson-jaxrs-json-provider from wsmaster war
* Fixed KeycloakServletModuleTest and forked TracingFilter
* Removed unused dependecies
2021-09-13 08:20:09 +03:00
Max Shaposhnik
74ebf45ec0
fix: Do not accept devfiles v2.x if DevWorkspaces feature is disabled ( #90 )
2021-08-27 10:34:18 +03:00
Oleksandr Andriienko
629cc75716
fix: If internal links are not specified, the external one should be used ( #45 )
...
* Don't set public url value to internal url settings.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-08-03 10:23:34 +03:00
Sergii Kabashniuk
46ce6a74e5
test: Upgrade of the testing dependencies ( #40 )
2021-07-19 10:56:11 +03:00
Max Shaposhnik
69c8ed28ac
feat: Introduce SCM file resolving service
2021-06-15 21:30:01 +03:00
Sergii Leshchenko
dfc27d85ae
feat: get rid of -alpha suffix in schemaVersion for unreleased version
2021-06-15 09:52:59 +03:00
Serhii Leshchenko
14734b6098
Fix devfile 2.0.0 and 2.1.0 versions & add 2.2.0-alpha ( #25 )
...
* fix: fix devfile 2.0.0 and 2.1.0 versions
* feat: add devfile 2.2.0-alpha schema
* fix: patch devfile 2.2.0-alpha schemaVersion
* Adapt java tests to newer devfile schemas
* Cleanup in test
Co-authored-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2021-06-09 12:06:13 +03:00
Sergii Kabashniuk
6670c6986b
Upgrade license
2021-05-20 17:05:45 +03:00
Sergii Kabashniuk
98b66ff1f6
Upgrade maven plugin configuration. Made pom.xml independent from che-parent
2021-05-20 16:53:16 +03:00
Florent Benoit
709542bbb3
feat(devfile): Update devfile 2.1 schema to the revision used by DevWorkspace Operator
...
(attributes being available at the root level)
https://github.com/devfile/devworkspace-operator/issues/406
Change-Id: I5d8ee432aeaf62a9453cc23d443394776eb633ee
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2021-05-20 13:16:37 +02:00
Sergii Kabashniuk
14107b5c20
Remove code that supports namespace strategies other than per-user ( #19763 )
...
* Remove code that supports namespace strategies other than per-user
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2021-05-12 12:45:55 +03:00
Pavol Baran
880adbdec0
Include JSON schema for devfile 2.1.0-alpha ( #19552 )
...
Signed-off-by: Pavol Baran <pbaran@redhat.com>
2021-04-12 14:46:15 +02:00
Florent Benoit
aaf2403edd
feat(machine-exec): Remove default machine-exec component as it is provided by che-theia meta/devfile now
...
Change-Id: I98ca453e305db71f9e947b9611a42df80b7d6776
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2021-03-22 08:59:28 +01:00
Pavol Baran
d3f27d2c03
Include che.devworkspaces.enabled property ( #19193 )
...
* Added che.devworkspaces.enabled property
Signed-off-by: xbaran4 <pbaran@redhat.com>
2021-03-04 12:38:53 +02:00
Michal Vala
794273d7c2
add devfile version parameter on REST API method providing devfile schema ( #19043 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
Co-authored-by: Serhii Leshchenko <sleshche@redhat.com>
2021-02-12 10:17:26 +01:00
Michal Vala
ccbf9cebaf
Gh18948 devfile v2 validation ( #19012 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-02-11 16:20:23 +01:00
Michal Vala
6fc67f2b41
update justify library to 3.1.0 ( #19010 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-02-11 16:19:38 +01:00
Michal Vala
4245b646c9
include default editor and plugins in /workspace/settings ( #18996 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-02-08 10:20:20 +01:00
Sergii Kabashniuk
d9f4f8411b
Set ProxyAuthenticator during workspace start up checks ( #18997 )
...
* Set ProxyAuthenticator during workspace start-up checks
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2021-02-08 09:51:20 +02:00
Michal Vala
ef05a7c9eb
Gh18838 factory devfile2 ( #18868 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-02-03 10:23:13 +01:00
Max Shaposhnik
7efc8c68b7
Bitbucket authorizing using personal access token ( #18709 )
2021-01-14 12:36:06 +02:00
Michal Vala
6c987dadac
Gh17540 memory request dockerimage ( #18592 )
...
Signed-off-by: Michal Vala <mvala@redhat.com>
2020-12-11 13:11:47 +01:00
Oleksandr Andriienko
b562d092c6
Use internal network url for plugin, devfile registry and fix CHE_API_INTERNAL env. ( #17945 )
...
* Use internal network url for plugin, devfile registry and fix CHE_API_INTERNAL env.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-11-26 13:54:42 +02:00
Lukas Krejci
25a7d7f24e
Provides direct access to the kubernetes API ( #18367 )
...
Fixes #18326 - Provides direct access to the kubernetes API on /api/unsupported/k8s.
Restricted to OpenShift with OpenShift OAuth.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2020-11-24 16:12:44 +01:00
Serhii Leshchenko
2f2113b9a7
Add debug logs for server checks ( #18083 )
2020-11-24 16:10:48 +02:00
Sergii Kabashniuk
7007453a11
Distinct interrupted from failed to start workspace metric ( #18258 )
...
* Distinct interrupted from failed to start workspace metric
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2020-11-05 12:25:59 +02:00
Max Shaposhnik
aba053e341
Prevent inconsistency when allowed user namespaces is false and namespace contains random part.
2020-10-27 11:36:18 +02:00
Lukas Krejci
af6c52e6e6
Fixes #18065 - Handle the mixed endpoints correctly with singlehost strategy (attempt 2) ( #18174 )
...
* Fixes #18065 - Handle the mixed endpoints correctly with singlehost
strategy (attempt 2)
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2020-10-23 15:06:31 +02:00