Restriction on Cloning from Git Repo
Summary
Hi Everyone, I'm trying out Eclipse Che and I have couple of questions. In my case, I want to restrict user to run only certain projects on Eclipse Che.
Example Scenario
- The users shouldn't be able to provide a repo url that EclipseChe could clone. I noticed a feature to restrict URLs that developers could clone on global level,
- Admin prior to the user access the Worskspace, creates repos nd DevFiles and assigns them to certain users. These user can only access and create project with this and the repository URL is also restricted.
Restrictions:
- Users cannot start workspace with a different repo URL.
- Instead of manually providing the Clone URL. By default the Clone URL is present with a template in the Dashboard itself.
Is there anyway on how to achieve this ?
Thanks
Relevant information
No response
Instead of manually providing the Clone URL. By default the Clone URL is present with a template in the Dashboard itself.
@maheshrajrp It's possible to configure Che by adding new sample into the Dashboard with proper repository: https://eclipse.dev/che/docs/stable/administration-guide/configuring-getting-started-samples/. It will be visible in the Dashboard Create Workspace tab. Like this one:
Also you can configure Che to have only your sample in the Dashboard.
Regarding the restriction to prevent users from starting workspaces from specific URLs - I don't believe that's currently possible. @dkwon17 @ibuziuk do you know if it's possible?
@maheshrajrp hello, please take a look at the following options:
- https://eclipse.dev/che/docs/stable/administration-guide/configuring-allowed-urls-for-cloud-development-environments/
- https://che.eclipseprojects.io/2024/10/28/@tolusha-boosting-cde-security-on-kubernetes-cluster.html
In combination with the custom list of samples on the User Dashboard it should be possible to setup this flow:
- https://eclipse.dev/che/docs/stable/administration-guide/configuring-getting-started-samples/
Hi @ibuziuk and @svor , Thanks for the response. Went through both the documentation, however, it doesn't fit my case. In my case, I don't want the Users to input any URLs entirely. I'm expecting the Import from Git to be removed,
In my case, the Users are assigned to specific projects. Hence, I'm just thinking of creating a new sample with repository URL, and just showing them those.
This feature is probably not available I think. Let me know your thoughts.
Thanks
@maheshrajrp correct, removing Import from Git on the UI level is not possible. Contributions are most welcome if you would like to contribute this functionality and make the Dashboard more customizable.
Hi @ibuziuk , I was initially thinking of forking the repo and bringing those changes. But I would be very much happy to contribute to the Che Repo.
Will go through the repo and comeback with a plan for you guys to validate .