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
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