question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gitea Workspace Service documentation

See original GitHub issue

Describe the bug The documentation for setting up Gitea as a Workspace Service is not very detailed and is out of date.

I am trying to set up Gitea but there are steps within the docs that no longer apply. Such as:

“The Gitea workspace service container image needs building and pushing: make build-gitea-workspace-service-image push-gitea-workspace-service-image

There is also not enough information or it is incorrect as following the steps gives a 403 error when trying to connect to the service.

Steps to reproduce

  1. Run make bundle-build bundle-publish DIR=templates/workspace_services/gitea
  2. Run make bundle-register DIR=templates/workspace_services/gitea/ BUNDLE_TYPE=workspace_service
  3. Go to the TRE UI and Deploy Gitea
  4. When Deploying fill in the required information: 2.1 Enter the OpenID Client ID is the Workspace App registration Application (client) ID. This can be found in the KeyVault for the Workspace and on the Overview page of the App registration 2.2 Enter the OpenID Client Secret. This can only be found in the KeyVault for the Workspace. 2.3 Enter the OpenID Authority: https://login.microsoftonline.com/{tenant_id}/v2.0
  5. Within the App registration, go to the Authentication tab in the blade on the left-hand side and add the Gitea redirect URI. In the form https://<gitea_url>/user/oauth2/oidc/callback (gitea_url can be found by clicking on the details tab of the deployed service)
  6. Deploy the Workspace Service This is where it fails
  7. Press Connect on the Workspace Service.
  8. I see a 403 error
Screenshot 2022-10-31 at 16 01 40

In the documentation it says Navigate to the Gitea workspace service and from the menu click the Sign in button. Does this mean press Connect and it should ask you to sign in?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
marrobicommented, Nov 7, 2022

Thanks @JaimieWi we will try and find time later this week to verify this.

cc @anastasiakuzn

0reactions
JaimieWicommented, Nov 15, 2022

@marrobi

I did check and I cannot access github.com from within the VM. But to be safe, I have moved the rule over to the web_app_subnet and it works just as well.

The goal was so that researchers could have their private repositories in Gitea kept private and only accessible by logging in with their credentials. The shared service doesn’t allow this as any repository has to be kept public to all within the TRE.

It would also be beneficial as researchers in a particular workspace may have a repository they would be happy to share within their project (workspace). But not across workspaces/projects.

Just to clarify, what is the purpose of the Gitea Workspace Service vs the Gitea Shared Service?

There isn’t anything in the documentation that helps us understand the distinction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docs - Gitea
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. See the...
Read more >
Gitea — Generic service & computer documentation ...
Gitea . A community managed fork of gogs. This provides a github-like service for private repository use. Can be exposed and used publicly...
Read more >
Better Session Provider Documentation · Issue #14016 - GitHub
After searching in the code I found out that Gitea uses a library for that and the library has a wonderfull documentation. Maybe...
Read more >
Host on Gitea - D2iQ Docs
How to host git repositories on Gitea for air gapped deployments. ... Set the TARGET_NAMESPACE to the workspace (or project) namespace in which...
Read more >
Import your project from Gitea to GitLab
You can also choose a different name for the project and a different namespace, if you have the privileges to do so. Help...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found