-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factories for private Gitlab repository with pre-created personal access token #19351
Factories for private Gitlab repository with pre-created personal access token #19351
Conversation
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
...re-api-factory-gitlab/src/main/java/org/eclipse/che/api/factory/server/gitlab/GitlabUrl.java
Show resolved
Hide resolved
...ory/src/main/java/org/eclipse/che/api/factory/server/scm/AuthorizingFileContentProvider.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, few minor comments
new StringJoiner("/") | ||
.add(hostName) | ||
.add("api/v4/projects") | ||
.add(username + "%2f" + project) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this needs to be encoded as %2f
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...re-api-factory-gitlab/src/main/java/org/eclipse/che/api/factory/server/gitlab/GitlabUrl.java
Outdated
Show resolved
Hide resolved
...ory/src/main/java/org/eclipse/che/api/factory/server/scm/AuthorizingFileContentProvider.java
Outdated
Show resolved
Hide resolved
...ory/src/main/java/org/eclipse/che/api/factory/server/scm/AuthorizingFileContentProvider.java
Outdated
Show resolved
Hide resolved
...i-factory/src/main/java/org/eclipse/che/api/factory/server/urlfactory/DefaultFactoryUrl.java
Outdated
Show resolved
Hide resolved
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
[crw-ci-test] |
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
What does this PR do?
This PR allows to accept factories to private Gitlab repositories using pre-created personal access tokens stored as a secret inside the user namespace. Secret example is provided below:
Screenshot/screencast of this PR
What issues does this PR fix or reference?
#19170
How to test this PR?
Prepare private Gitblab repository;
Create and save personal access token on Gitlab side;
Configure Che server to use Gitlab instance and prepare secret in user namespace;
Run factory to prevate repo. Factory should work.
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.