Commit Graph

9635 Commits (9b32f58114b8678047975c5efd5b510b10930461)

Author SHA1 Message Date
Anatolii Bazko 9b32f58114 Project checking
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-12 13:49:34 +02:00
Anatolii Bazko 0b7b9d9b3b Fix keys encoding
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-12 13:37:07 +02:00
Anatolii Bazko d06033b4d2 Fix keys encoding
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-12 13:37:07 +02:00
Anatolii Bazko d16c6e5431 Fix remarks
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-09-12 13:37:07 +02:00
Anatolii Bazko 77e5a08a78 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 13:37:07 +02: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
Igor Vinokur 73dbac0c44
Do not substring `.git` while parsing Azure DevOps Urls (#541)
Do not substring .git while parsing Azure DevOps Urls. Azure doesn't add the .git suffix neither to the generated clone URLs nor to the browser repository URLs.
2023-08-15 14:37:13 +03:00
che-bot cb5c8aa4d2
chore: Update from ubi8-minimal:8.8-1014 to ubi8-minimal:8.8-1037 (#542)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-08-14 14:47:03 -07:00
Igor Vinokur 0ea20e687b
Use `login` instead of `name` in the GitHub scopes/username request (#537)
Change user.getName() to user.getLogin() in the GitHub getTokenScopes() API request, in order to fix a bug where NullPointer exception is appeared when a GitHub user request returns a user with null in the name field.
2023-08-01 21:36:14 +03:00
Mykhailo Kuznietsov 29ff3f3e75 chore: Bump to 7.73.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-07-31 10:50:12 +02:00
Igor Vinokur df3fc9965a
Omit scm-username annotation from the PAT secret (#533)
Ignore the che.eclipse.org/scm-username annotation when fetching token from a PAT secret. Instead fetch the username from the isValid(<token>) request.
2023-07-25 18:52:54 +03:00
Igor Vinokur 00675893ff
Update openjdk version from 11 to 17 (#535)
Update openjdk version from 11 to 17 in order to fix the che-server sturtup error
2023-07-25 11:04:22 +03:00
Mykhailo Kuznietsov 2cd1bb2b46 chore: Bump to 7.72.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-07-24 12:10:57 +02:00
Igor Vinokur c5963e0de7
Pass string to ObjectMapper instead of InputStream (#531)
Pass string to ObjectMapper instead of InputStream in order to avoid No content to map due to end-of-input error caused by jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream.
An error was discovered in our customers environment
2023-07-12 10:33:56 +03:00
Igor Vinokur aee2079322
Use hardcoded string as username for Azure git credentials (#529)
Since Azure git provider do not support username for its user object, use username string as username in the git credentials file if the PAT is related to Azure Devops: https://username:<token>@dev.azure.com
2023-07-06 09:37:33 +03:00
che-bot 21323d1b12
chore: Update from ubi8-minimal:8.8-860 to ubi8-minimal:8.8-1014 (#530)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-07-04 11:27:14 -03:00
Mykhailo Kuznietsov 454bc7304f chore: Bump to 7.71.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-06-30 09:45:41 +02:00
Igor Vinokur 287b903010
Provision git credentials secrets on workspace start (#527)
On workspace start iterate user PAT secrets. If a PAT secret is not included to the devworkspace-merged-git-credentials secret, create a git credentials secret based on the PAT secret.
Remove the redundant logic of creation an empty workspace-credentials-secret secret.
2023-06-26 17:18:32 +03:00
Igor Vinokur ab83bee400
Omit extracting subfolder from a workspace URL (#523)
sparce-checkoutis no longer available from devfile 2.1, so omit the subfolder mechanism in order to support branch names with a / sign.
2023-06-15 13:41:43 +03:00
Ilya Buziuk fbea05f0cc chore: devfile update 2023-06-15 10:19:20 +02:00
Mykhailo Kuznietsov c23792c7b1 chore: Bump to 7.70.0-SNAPSHOT in main
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2023-06-15 10:18:24 +02:00
Igor Vinokur afedaeed90
Add .vscode/settings.json with java settings (#524) 2023-06-14 10:14:24 +03:00
Anatolii Bazko 7c598014a2
fix: Cloning projects from Azure DevOps (#522)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-06-08 12:44:06 +03:00
Igor Vinokur 98c2cc79eb
Update devfile to version 2, add extensions.json (#520) 2023-06-07 13:11:46 +03:00
Igor Vinokur 32c67ed032
Return the default resolver if the factory URL refers directly to a devfile (#519)
Check if the factory URL is a raw devfile URL. If so, use the devfile URL resolver, which resolves factories from a direct URL to a devfile content.
2023-06-06 10:38:03 +03:00
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 b68fa97aa2
chore: update CODEOWNERS file (#513) 2023-05-31 11:24:24 +03:00
Anatolii Bazko dd873a597b
chore: Use CheServer client factory to handle Kubernetes operation in a user namespace (#516)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-05-25 17:20:59 +03:00
che-bot ae4f6a33a5
chore: Update from ubi8-minimal:8.7-1107 to ubi8-minimal:8.8-860 (#515)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-05-25 10:51:18 -03:00
Shmaraiev Oleksandr 3b74041d5d
Create tests to check 'Git zero-config' flow as PR checks (#494)
* Create 'Dockerfile' file to configure ci-operator
* Update 'build-pr-check.yml' github action
* Add tests to check git  flow without PAT setup
* Add tests to check git flow with PAT setup
---------
Co-authored-by: artaleks9 <artaleks9@users.noreply.github.com>
Co-authored-by: Igor Vinokur <ivinokur@redhat.com>
2023-05-22 11:22:03 +03: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
David Kwon eac9cef22b feat: allow che-operator to detect user-profile secret
Signed-off-by: David Kwon <dakwon@redhat.com>
2023-05-09 13:04:42 -04: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