The Simplest Way to Make Gitea and Opslevel Work Like They Should
Integrating gitea and opslevel links your self-hosted Git repos to a single service catalog. This workflow tracks code ownership, checks service health, and enforces production standards across your team. Many engineering teams host their own source code to keep full control over network rules. At the same time, they need a clear map of every microservice running in production. When you pair these two tools, repo files update your central catalog on every push. How gitea and opslevel share da
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Integrating gitea and opslevel links your self-hosted Git repos to a single service catalog. This workflow tracks code ownership, checks service health, and enforces production standards across your team.
Many engineering teams host their own source code to keep full control over network rules. At the same time, they need a clear map of every microservice running in production. When you pair these two tools, repo files update your central catalog on every push.
How gitea and opslevel share data and permissions
First, you need a dedicated user account inside your Git server for the catalog tool. This account needs read permissions on the repos you want to track in your catalog. You generate an API token for this user and save it in your catalog settings.
Next, the catalog tool sets up webhooks on your repos to watch for new commits. When a developer pushes a change, your Git server sends an event over the network. The catalog reads your service metadata file from the main branch and updates its records.
Teams also run periodic scans to catch missed webhook events or network drops. During a scan, the catalog uses its API key to read branch names and files. It checks if a repo has a valid owner, a readme file, or updated dependencies.
These checks feed into service maturity rubrics that show which apps meet your production rules. Platform engineers see which teams own which repos without digging through old spreadsheets. Developers get clear feedback on what they need to fix before their next release.
Common failure modes and how to scope roles
The biggest mistake teams make is using a personal admin token for this integration. If that engineer leaves the company, you revoke their account and break the entire sync. Even worse, an admin token gives the catalog write rights it never needs.
A leaked admin token lets an attacker change source code or delete production branches. You should always create a service account with read-only rights on specific repo groups. Never grant write or admin permissions when the tool only needs to read files.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Network exposure is another common trouble spot for self-hosted Git servers. Your Git server often sits inside a private network while the catalog runs in the cloud. Opening your firewall to the whole internet puts your source code at high risk.
Instead, restrict inbound traffic so only known catalog IP addresses can reach your Git API. You should also log every API call made by the service account token. Good logs show you which repos were read and when each check ran.
Unlogged queries make it hard to debug rate limits or slow webhook deliveries. When your team audits access, you need clear records of both human and machine requests. Rotating the integration token every ninety days also keeps your source code safe from leaks.
Keeping service metadata clean as teams grow
Once the integration runs, teams often struggle with stale metadata files in their repos. A developer might copy a metadata file from an old project and forget to update it. Now the catalog shows the wrong team owner for a brand new service.
You can prevent this by adding a quick check to your build pipeline. Have your build runner check the metadata file before allowing a merge to main. If the owner tag is missing or invalid, the build stops right away.
It also helps to review your service catalog during regular team meetings. Check for orphaned repos that have no active team assigned to them. Archiving dead repos in your Git server keeps your catalog clean and fast.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
What permissions does Opslevel need in Gitea?
It only needs read permissions for the repos and teams you want to catalog. Create a dedicated bot user with read-only rights instead of using an admin account.
How do webhooks work between a private Git server and the catalog?
Your Git server sends an outbound HTTPS POST request whenever code changes on your main branch. If the catalog needs to pull file data back, allowlist its IP ranges in your firewall.
What happens if our integration API token expires?
Webhook deliveries will still fire, but file scans and rubric checks will fail to read repo data. Set a calendar reminder to rotate the token and update your settings before it expires.
Related guides
In this post