Commit Graph

1369 Commits (fdb2dbf163a02aff5e574ce29a8ba767dfce1f7b)

Author SHA1 Message Date
Mykhailo Kuznietsov fdb2dbf163 chore: Bump to 7.69.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-06-02 16:13:59 +02:00
Mykhailo Kuznietsov 559de5a7f1 chore: Bump to 7.68.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-05-18 10:44:15 +02:00
Igor Vinokur cefc638dad
Pass user slug instead of user id when creating a PAT for bitbucket-server (#512)
Pass user neme instead of user id when creating a PAT secret for bitbucket-server in order to fix the generation of thegit-credentials-secret secret which requires the user name: https://<user name>:<token>@<host name>.
2023-05-16 13:53:10 +03:00
Mykhailo Kuznietsov 1fb16e5b63 chore: Bump to 7.67.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-05-10 10:27:11 +02:00
Igor Vinokur 725506d26f
Fix provider name constant in the BitbucketServerUserDataFetcher calss (#511)
Change the OAUTH_PROVIDER_NAME constant from bitbucket to bitbucket-server in order to fix the git user data initialisation flow, when a PAT is initialised in a user namespace.
2023-05-09 16:14:38 +03:00
Mykhailo Kuznietsov b333b7bdb9 chore: Bump to 7.66.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-04-21 13:06:43 +02:00
Mykhailo Kuznietsov d0402f0b8e chore: Bump to 7.65.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-04-19 11:11:56 +02:00
Igor Vinokur 8d0d9ac5d8
Withdraw scm-userid value in PAT secrets and use scm-username instead (#496)
Withdraw the scm-userid annotation from the PAT secret structure.
Rework the PAT validation to check scm-username instead scm-userid.
2023-04-19 09:37:29 +03:00
Anatolii Bazko 8dda567e23
fix: Support Azure DevOps repository urls without project (#490)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-04-04 16:31:00 +03:00
Anatolii Bazko b24e3c7d95
feat: support retrieving Git user data when PAT is configured (#489)
* feat: support retrieving Git user data when PAT is configured

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-04-04 10:14:40 +03: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
Mykhailo Kuznietsov 63c72d2628 chore: Bump to 7.64.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-03-27 15:40:05 +02:00
Anatolii Bazko 76445656a9
feat: GitLab support nested repositories (#467)
* feat: GitLab support nested repositories

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

---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-20 08:32:05 +02:00
Igor Vinokur 5a04496ded
Return empty credentials from bitbucket URL with username (#466)
Override the getCredentials() method in the BitbucketUrl class to intercept bitbucket URL with username e.g. https://user@bitbucket.org/eclipse/che. Return empty credentials for such urls.
2023-03-17 13:24:14 +02:00
Igor Vinokur be757ec5a6
Check the devfile content before creating a factory (#463)
When Che creates a workspace from a repository URL, first we iterate and find a related git provider handler, then we gat a devfile location according to the handler rules. If we pass an unsupported git repository url we will have a default handler which will try find a devfile by the same url as the repository. In that case we will have an html content as a devfile.

We need to check the content before parsing the devfile, and throw a specific error in case if the content is not yaml.
2023-03-14 12:03:39 +02:00
Valeriy Svydenko 54827213f1
fix: extend pattern for BitBacket URL (#461)
Signed-off-by: Valerii Svydenko <vsvydenk@redhat.com>
2023-03-10 10:14:37 +02:00
Anatolii Bazko d9ad2fbd7e Remove scopes from AzureDevOpsApiClient
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-09 18:09:31 +01:00
Anatolii Bazko ea1ceb09ac fix: update the way how Azure OAuth2 token is validated
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-09 18:09:31 +01:00
Anatolii Bazko 04bf956751
feat: Support git+ssh urls (#458)
* feat: Support git+ssh urls

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-09 14:24:49 +02:00
che-bot 709d872d24
chore: Bump to 7.63.0-SNAPSHOT in main (#459)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-03-08 18:05:13 -04:00
Anatolii Bazko f36a6943fe fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-02 11:08:43 +02:00
Anatolii Bazko f22e52e519 fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-02 11:03:58 +02:00
Anatolii Bazko bd4c1812fb fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-02 10:53:41 +02:00
Anatolii Bazko b0514ce37c fix: typo in AzureDevOpsPersonalAccessTokenFetcher
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-02 10:31:05 +02:00
Anatolii Bazko 49773464e3 Fix remarks
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-27 16:32:29 +02:00
Anatolii Bazko a9507244a3 fixes
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-27 10:31:38 +02:00
Anatolii Bazko 426718a495 fix
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-23 15:20:20 +02:00
Anatolii Bazko 6e7e96873f fix typo
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-23 15:20:20 +02:00
Anatolii Bazko 7a84f92aee fix typo
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-23 15:20:20 +02:00
Anatolii Bazko 19d13edc7f feat: Azure DevOps Service OAuth2
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-02-23 15:20:20 +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
Ilya Buziuk 47184c4953 refactor: Deprecating api/user endpoint. Adding exta GET api/user/id endpoint for easily obtaining user ID
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2023-02-20 14:34:16 +01:00
Nick Boldt fbf318c0d6
chore: Bump to 7.62.0-SNAPSHOT in main (#447)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Co-authored-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-02-16 13:28:52 -04:00
Igor Vinokur cb3565dbf8
Support Bitbucket-server oAuth2 factory (#440)
Apply Bitbucket Server oAuth-2 configuration for the factory flow.
2023-02-15 16:43:27 +02:00
Ilya Buziuk 09e68d34a4 refactor: Removing dependency on UserManager from FactoryService
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2023-02-09 15:04:38 +01:00
Igor Vinokur 7323f4776f
Apply Bitbucket server url validation by testing an API request (#428)
Support factory from public Bitbucket-server repository without any oAuth configuration in the Che side. Add a new check that detects a Bitbucket-server url by testing it by a Bitbucket-server Api request.
2023-01-26 15:25:09 +02:00
Mykhailo Kuznietsov 9a003e2351 chore: Bump to 7.61.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-01-26 11:30:33 +01:00
Igor Vinokur 63517be522
Add "read:user" to the list of github token scopes (#422)
In order to be able to use the generated github token from the workspace pod in the github CLI tool, add the necessary token scope to the list of default scopes.
2023-01-21 13:01:27 +02:00
Igor Vinokur 756342b0c0
Apply Gitlab server url validation by testing an API request (#421)
Support factory from public Gitlab-server repository without any oAuth configuration in the Che side. Add a new check that detects a Gitlab server url by testing it by a Gitlab Api request.
2023-01-19 14:07:50 +02:00
Ilya Buziuk db249bf877 fixup! adressing review comments
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2023-01-12 17:28:48 +01:00
Ilya Buziuk a59cc49a7f feat: Removing dependency on the usr, account, profile db tables
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2023-01-12 17:28:48 +01: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
Mykhailo Kuznietsov 13a84d2943 chore: Bump to 7.60.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-01-09 14:10:06 +01: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
Igor Vinokur ef626cd6ee
Fix Delete oauth token API method (#408)
Rework the invalidate token oauth API method to send revoke token request to the git provider. After this request Che authorisation is unsynchronised so user is asked to re apply the authentication on new factory create step.
2023-01-04 10:06:25 +02:00
Igor Vinokur ab966cf9fe
Retry factory authentication when user rejects git service oauth (#405)
Currently when user rejects the oauth page for GitHub factory, Che tries to continue the factory flow without authentication (possible only for public repo). Apply the logic for the other git authentication providers.
2022-12-21 10:43:36 +02:00
Nick Boldt a0c25fe332
update integration tests to new root pom... (#402)
* update integration tests to new root pom version

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

* fix poms that point to obsolete version 7.58.0-SNAPSHOT

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

Signed-off-by: Nick Boldt <nboldt@redhat.com>
2022-12-16 11:03:12 -04:00
Mykhailo Kuznietsov 23e5b5f891 chore: Bump to 7.59.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2022-12-15 15:50:16 +01:00
Igor Vinokur ea76cda24c
fix: Override bitbucket content provider to use API request (#399)
bitbucket.org doesn't allow to fetch raw file content from private repositories using oAuth token any more. Override the common fetch content flow specifically for bitbucket.
2022-12-09 10:46:01 +02:00