Commit Graph

9689 Commits (dc7edf634eebb22b4eb7ea325e2da523befeaa20)

Author SHA1 Message Date
Dmytro Nochevnov dc7edf634e
Get more OpenShift CI image build command logs 2024-01-17 13:17:42 +02:00
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
Nick Boldt 3fb1df91f7 chore: Update from ubi8-minimal:8.9-1029 to ubi8-minimal:8.9-1108
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2024-01-15 14:40:57 +01:00
Nick Boldt 0e3b7c107c chore: Update from ubi8-minimal:8.9-1029 to ubi8-minimal:8.9-1108
Signed-off-by: Nick Boldt <nboldt@redhat.com>
2024-01-15 14:40:57 +01:00
Mykhailo Kuznietsov 978f2cdd21 chore: Bump to 7.81.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2024-01-11 15:35:09 +01:00
Igor Vinokur f547c681a8
Fix license headers (#638)
Fix maven build by updating corresponding license headers
2024-01-10 11:36:56 +02:00
Igor Vinokur 06e14c854d
Pass status code to Exception on Unauthorised to GitHub Error (#618)
Pass status code to Exception on Unauthorised to GitHub Error in order to be able to recognise GitHub Server url if oAuth is not configured and no PAT is present.
2024-01-10 10:46:02 +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
Shmaraiev Oleksandr 96ac9beb7f
Delete 'yq' from Dockerfile (#636) 2024-01-09 10:14:54 +02:00
Nick Boldt 4e067e94d7
Update README.md - add link to status badge (#575) 2023-12-28 22:34:36 +02:00
che-bot e3ccf70b64
chore: Bump to 7.80.0-SNAPSHOT in main (#628)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-12-28 02:23:26 +02:00
Shmaraiev Oleksandr 6b584db971
Create test to check 'git-oauth-setup-flow' as PR checks (#633)
* Add new components to implement 'git-oauth-setup-flow' test
* Update existing files to implement 'git-oauth-setup-flow' test
2023-12-27 17:44:40 +02:00
Mykhailo Kuznietsov cc4dac0922
fix: adapt to latest changes in build.sh that uses podman now (#629)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-12-21 15:38:22 +02:00
Igor Vinokur 151ef89772
Return oauth1 providers on registered oauth providers list request (#624)
Add the list of oauth1 providers to the list of registered oauth2 providers on get registered oauth providers API request.
2023-12-21 14:03:42 +02:00
Nick Boldt bda80f1d7b
chore(build): remove commented code that we didn't need for 7.77 release, as it's evidently safe to delete (#627)
Change-Id: I0d6db01942b35a1c5f31ad22718743dec8a90f23

Signed-off-by: RHDH Build (rhdh-bot) <rhdh-bot@redhat.com>
Co-authored-by: RHDH Build (rhdh-bot) <rhdh-bot@redhat.com>
2023-12-20 09:29:10 -04:00
Igor Vinokur 3ecfbcd8b1
Modify the `build.sh` script to work with podman (#559)
In order to be able to build images directly in a wotkspace container, add BUILDER variable to be able to execute the build.sh script not only with docker but with podman and buildah.
2023-12-11 16:11:05 +02:00
Anatolii Bazko f7a49f9fec
fix: work with Bitbucket users containing special characters in theirs names (#622)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-12-07 17:35:43 +01:00
Igor Vinokur ebca10356e
Throw the API exception with authorization URL on SCMunauthorised error (#621)
Fixes a bug with broken oauth flow caused by https://github.com/eclipse-che/che-server/pull/615
2023-12-04 20:57:25 +02:00
Anatolii Bazko 7fe2a4dd3f
feat: Advanced authorization (#619)
* feat: Advanced authorization

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Renames fields

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Address remarks

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Address remarks

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Address remarks

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-12-04 15:55:35 +01:00
Mykhailo Kuznietsov 7acf4cc2d9 chore: Bump to 7.79.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-11-30 12:24:39 +01:00
Igor Vinokur 5baa3a7ccf
Align the unreachable devfile exception message (#615)
Add a common exception message and use it for cases when:

The devfile location is unavailable.
The devfile content is is not valid: e.g the response content is an html content of an scm authorisation page.
2023-11-28 18:09:57 +02:00
Igor Vinokur f34e80450b
Expand the raw devfile url resolver pattern with token query parameter (#616)
Rework the accept() check in the raw devfile url resolver to respect token query parameters e.g. https://raw.githubusercontent.com/vinokurig/private/main/devfile.yaml?token=<token>
2023-11-28 18:08:57 +02:00
Igor Vinokur 974c1b1890
Add support for PATs in GitHub Enterprise server (#603)
Add necessary checks to the GithubURLParser and AbstractGithubURLParser classes in order to support PAT for GitHub Enterprise server without configuring oAuth.
2023-11-21 11:11:06 +02:00
che-bot 6ca7127939
chore: Update from ubi8-minimal:8.7-1085 to ubi8-minimal:8.9-1029 (#612)
* chore: Update from ubi8-minimal:8.7-1085 to ubi8-minimal:8.9-1029

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* chore: Update from ubi8-minimal:8.8-1072 to ubi8-minimal:8.9-1029

Signed-off-by: Nick Boldt <nboldt@redhat.com>

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-11-19 23:45:09 -04:00
Anatolii Bazko b9317fd1af
fix: Ignore PAT with emtpy SCM url (#610)
* fix: Ignore PAT with emtpy SCM url

Signed-off-by: Anatolii Bazko <abazko@redhat.com>


---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-17 16:37:19 +01:00
Anatolii Bazko b5e1e2a4a2
chore: Validate OAuth token secrets on namespace provisioning (#608)
* chore: Validate OAuth token secrets on namespace provisioning

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-15 15:08:48 +01:00
che-bot 92b37d2b6e
chore: Bump to 7.78.0-SNAPSHOT in main (#605)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-11-13 13:38:23 +02:00
Samantha Dawley 7192bf1302
Merge pull request #606 from eclipse-che/SDawley-patch-2
Update make-release.sh
2023-11-09 18:32:26 -05:00
Samantha Dawley c68b96d762
Update make-release.sh
I think we're missing a folder. Hopefully fix build.
2023-11-09 15:30:28 -05:00
Mykhailo Kuznietsov 77011bb3c8
fix: che-22646 use gh instead of hub (#604)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-11-09 14:43:43 +02:00
Anatolii Bazko 72f191bcda
feat: Allow to configure 2 github providers simultaneously (#598)
* feat: Support enabling Github enterprise and SaaS simultaneously on Dev Spaces

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-07 12:57:48 +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