Commit Graph

9664 Commits (4842e1c227c69ca71ed2f14ea2fef65668071134)

Author SHA1 Message Date
Anatolii Bazko 4842e1c227 Update che.properties
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:54 +01:00
Anatolii Bazko abaefe32d2 fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:54 +01:00
Anatolii Bazko e205e855f5 Formatting
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:54 +01:00
Anatolii Bazko 086f3bd601 Formatting
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:54 +01:00
Anatolii Bazko 46378282c7 fixes
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:53 +01:00
Anatolii Bazko d382f47b5e feat: Support enabling Github enterprise and SaaS simultaneously on Dev Spaces
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-06 15:30:53 +01:00
Shmaraiev Oleksandr 2c198333ef
Fix up tests in the PR checks on Openshift CI
* Update 'devworkspace-test.yaml' file
2023-11-06 16:21:37 +02:00
Mykhailo Kuznietsov 26cf509ea7 chore: Bump to 7.77.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-11-06 09:39:16 +01:00
Igor Vinokur cb0c9f9d39
Fix update token on workspace start (#597)
Change the getHostName() function to getProviderUrl() in order to fix an error while updating an oauth token on workspace start.
Throw ScmUnauthorizedException if an oAuth token is not valid, for the dashboard to open the authorisation page and update the token.
2023-11-04 19:12:12 +02:00
Samantha Dawley c4156b61f5
Merge pull request #593 from eclipse-che/22616
chore: comment out node10 (updated to node18) and maven 3.6 (updated to 3.8) installs, as we likely don't need them (either not required or handled by GH action) #22616
2023-10-19 13:16:52 -04:00
Igor Vinokur ba49012fb2
Move dockerfiles to build/dockerfiles (#573)
Moves dockerfiles from dockerfiles/che to build/dockerfiles
Removes the endpoint-watcher, postgres and keycloak images.
Adds brew.Dockerfile from downstream.

Coauthored with @SDawley
2023-10-19 14:49:31 +03:00
Nick Boldt 270be77cc7 support building with podman too
Change-Id: I83fc89be6ad2411b64a4bf4e2308c048a9ab2ff4
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-10-18 18:31:17 -03:00
Nick Boldt bfb531761d use maven 3.8 for typescript-dto build too
Change-Id: Ie70fa428ba1a68bbe663577947f05b6a2c4fe3a6
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-10-18 18:25:24 -03:00
Nick Boldt 6e67a3b492 comment out node10 (updated to node18) and maven 3.6 (updated to 3.8) installs, as we likely don
't need them (either not required or handled by GH action) #22616

Change-Id: I5d0920b58e413247fd5466a269fb26b1af60578c
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-10-18 17:38:57 -03:00
Samantha Dawley 473f67db7e
Update release.yml to install hub (#591)
Adding hub so the release workflow can run successfully.
I don't know where it came from previously, but if it was in Ubuntu by default it likely got taken out due to issues with the previous recommended install method:
https://github.com/mislav/hub/issues?q=is%3Aissue+snap
2023-10-18 17:06:34 -03:00
dependabot[bot] b2284aecee
chore(deps): bump maven-antrun-plugin from 3.0.0 to 3.1.0 (#484)
* chore(deps): bump maven-antrun-plugin from 3.0.0 to 3.1.0

Bumps [maven-antrun-plugin](https://github.com/apache/maven-antrun-plugin) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/apache/maven-antrun-plugin/releases)
- [Commits](https://github.com/apache/maven-antrun-plugin/compare/maven-antrun-plugin-3.0.0...maven-antrun-plugin-3.1.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-antrun-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pom.xml

* Update pom.xml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Igor Vinokur <ivinokur@redhat.com>
2023-10-12 16:40:32 +03:00
dependabot[bot] 2adb6f6bee
chore(deps): bump maven-install-plugin from 3.0.0-M1 to 3.1.1 (#488)
* chore(deps): bump maven-install-plugin from 3.0.0-M1 to 3.1.1

Bumps [maven-install-plugin](https://github.com/apache/maven-install-plugin) from 3.0.0-M1 to 3.1.1.
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.0.0-M1...maven-install-plugin-3.1.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-install-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pom.xml

* Update pom.xml

* Update pom.xml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Igor Vinokur <ivinokur@redhat.com>
2023-10-12 16:00:18 +03:00
Igor Vinokur 148415c691
Respect authorisation request opt-out on workspace start (#576)
If user rejects an scm provider authorisation request while creating or starting existed workspace store the name of the scm provider in the workspace-preferences config-map. The workspace create/start step must proceed without token fetch step. If user creates another workspace or starts existed workspace from an scm provider which name is stored in the config-map, do not ask the authorisation as it was already rejected once.
2023-10-12 15:59:42 +03:00
dependabot[bot] 386f84962d
chore(deps): bump mockito-testng from 0.4.13 to 0.5.2 (#509)
* chore(deps): bump mockito-testng from 0.4.13 to 0.5.0

Bumps [mockito-testng](https://github.com/mockito/mockito-testng) from 0.4.13 to 0.5.0.
- [Release notes](https://github.com/mockito/mockito-testng/releases)
- [Changelog](https://github.com/mockito/mockito-testng/blob/master/docs/release-notes.md)
- [Commits](https://github.com/mockito/mockito-testng/compare/v0.4.13...v0.5.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-testng
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pom.xml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Igor Vinokur <ivinokur@redhat.com>
2023-10-12 15:42:17 +03:00
Igor Vinokur f27f8b1589
Update minor maven dependencies (#577) 2023-10-12 14:38:05 +03:00
Igor 5d645e1d3c Update contributing.md file 2023-09-29 18:07:57 +02:00
Igor ea9bb95f7c Add CONTRIBUTING.md file 2023-09-29 18:07:57 +02:00
Mykhailo Kuznietsov 2f2a939823 chore: Bump to 7.76.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-09-28 10:13:22 +02:00
Igor Vinokur b2ff110da5
Encode the authentication reject error to build a proper callback url (#568)
Encode the &error_code=access_denied query param for the callback url in order to fix the bug when the authentication request appears again if it was rejected.
2023-09-27 14:20:27 +03:00
Nick Boldt 46592e65ce
chore: update to latest com.fasterxml.jackson 2.14.z (CRW-4790, #22548) (#571)
Change-Id: Iacdbd86ccc1480c8badbbc15ffe48bdb01206e44

Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-09-25 16:53:30 -03:00
che-bot 9a553b6344
chore: Update from ubi8-minimal:8.8-1037 to ubi8-minimal:8.8-1072 (#570)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-09-25 10:17:02 -03:00
Anatolii Bazko a28e1553d2
chore: Add tests to start a workspace from raw devfile and ssh urls f… (#569)
* chore: Add tests to start a workspace from raw devfile and ssh urls for GITEA provider

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-25 14:54:49 +02:00
Igor Vinokur b1da9ef121
Add an SSH Factory parameter resolver for unsupported SCM providers (#567)
Return the SSH factory resolver in order to handle SSH urls from unsupported SCM providers.
Add a priority value for all factory resolvers to be able to control resolver's priority.

---------

Co-authored-by: Aleksandr Shmaraiev <oshmarai@redhat.com>
2023-09-22 17:09:48 +03:00
Igor Vinokur 261be8f99d
Add a null check before reading GitHub response (#563)
Add a null check to prevent NullPointer exception while reading body from the GitHub API response. response.body() should not return null according to the java documentation, but the NullPointer exception was found in the customer debug logs
2023-09-21 10:48:32 +03:00
Anatolii Bazko a3cceea640
chore: Add tests to start a workspace from raw devfile and ssh urls when PAT configured (#566)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-18 11:18:37 +02:00
Anatolii Bazko e337edc50f
chore: Add Eclipse Che server azure and gitlab providers tests (#564)
* chore: Add Eclipse Che server azure and gitlab providers tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-15 15:01:10 +02:00
Anatolii Bazko 3bac40d2a3
chore: Add PR checks to test workspace startup from raw devfile and s… (#562)
* chore: Add PR checks to test workspace startup from raw devfile and ssh urls for GitHub provider

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-14 10:12:58 +02:00
Anatolii Bazko f67bbbd52a
chore: Add PR check for BitBucket to start a workspace from a raw and… (#558)
* chore: Add PR check for BitBucket to start a workspace from a raw and ssh urls

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-12 15:45:41 +02:00
Nick Boldt 74924f84ae
chore: tweak dockerfile; (#560)
use latest ocp 4.12 oc binary;
fix typo in pom.xml
bump to latest mavn 3.9.4

Change-Id: Ie9d9aea49e7e46bec4814477489450b277f926b4

Signed-off-by: Nick Boldt <nboldt@redhat.com>
2023-09-12 09:17:48 -03:00
che-bot 033d310b0d
chore: Bump to 7.75.0-SNAPSHOT in main (#554)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-09-11 19:17:12 -03:00
Shmaraiev Oleksandr 8731ac153a
Add tests to check 'Azure DevOps' provider in PR checks (#552)
* Add tests to check git-flow on 'azure-devops' git-provider

* Refactor methods

* Upfdate tests

* Update 'pat-secret.yaml' file

* Update the '.ci/openshift-ci/Dockerfile'

* Exclude 'testFactoryResolverNoPatOAuth' from the test

* Fix variable name

* Refactor '<testClone>' methods to handle errors more informative
2023-09-11 15:15:17 -03:00
Shmaraiev Oleksandr a6ea66285f
Update command 'dnf install' (#556) 2023-09-08 10:27:14 +03:00
Shmaraiev Oleksandr 7686dab07a
Update Dockerfile to fix an error 'node is not installed' (#555)
* Update Dockerfile to fix an error

* Fix the image
2023-09-07 13:53:32 +03:00
Igor Vinokur 9d43803100
Simplify the Raw devfile filename check (#548)
Do not check the Raw devfile file name but check if the url ends with .yaml before using the Raw devfile url resolver.
2023-09-06 14:15:11 +03:00
Igor Vinokur ea67092cbc
Fix failing unit tests (#553)
Signed-off-by: Igor <ivinokur@redhat.com>
2023-09-06 12:48:04 +03:00
Igor Vinokur 6edfa3910f
Apply permanetn `ref` query param to the GitLab raw file location request (#545)
A user claims that he couldn't start a workspace form GitLab repository because of the raw file location request doesn't contain the ref query parameter. Rework the way of generating the GitLab raw file location function to permanently add the ref query param.
2023-09-05 12:51:27 +03:00
Igor Vinokur da5174bf17
Duplicate creating a git-credentials secret on token fetch (#551)
Duplicate the git-credentials secret creation step on create personal access token secret. Currently this step is performed on workspace provision step but in this case the PAT secret might be initialised when the provision is finished. In order to synchronise the personal access token secret and git credentials secret creation step duplicate the git credentials secret creation step after the PAT secret creation step.
Refactor the get(scmServerUrl) function in the KubernetesPersonalAccessTokenManager class
2023-09-05 12:49:09 +03:00
Igor Vinokur afd7cad8b8
Set original message and stack trace to a Runtime Exception DTO (#550)
In order to extend the predefined error message in the dashboard, pass original message and stack trace to a Runtime Exception DTO
2023-08-30 09:35:08 +03:00
Igor Vinokur ce6ed7e9c0
Update io.fabric8.kubernetes-client version to latest (#549) 2023-08-29 16:38:31 +03:00
Igor Vinokur 7d0cfb306c
Support SSH urls (#539)
Extend each SCM provider implementation to support SSH urls.
2023-08-27 16:17:13 +03:00
Mykhailo Kuznietsov 8d19ea8046 chore: Bump to 7.74.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-08-23 15:09:29 +02:00
Anatolii Bazko ff90b44018
fix: Improve BitBucket token scope validation (#547)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-08-22 09:17:54 +02:00
Igor Vinokur f5a70d0f9a
Do not return secret token in the Oauth API (#538)
Remove the personalAccessTokenManager.get() call from the OAuth API getToken() method. The OAuth API must not know anything about PAT secrets. It should get tokens only by requesting an SCM provider OAuth API.
Fix validating the Bitbucket-Server PAT method by requesting user instead of requesting.
This prevents the code execution going to a recursive loop: bitbucketServerApiClient.getPersonalAccessToken() calls oauthApi.getToken() which referred to personalAccessTokenManager.getToken() which validated the token by calling scmPersonalAccessTokenFetcher.getScmUsername() -> bitbucketServerApiClient.getPersonalAccessToken().
2023-08-17 16:29:24 +03:00
Samantha Dawley d96e67252a
22407 - Remove Mattermost notification (#544)
https://github.com/eclipse/che/issues/22407
Comment out the mattermost notification so it doesn't fail the release workflow, but leaving it in the file so I remember to replace it.
2023-08-17 09:28:20 +02:00
Igor Vinokur b2dfdb0c84
Update guava, http-client, squareup.okio to the latest versions (#543)
Update guava, http-client, squareup.okio to the latest versions in order to fix security issues according to the trivy report
2023-08-16 12:45:32 +03:00