The Simplest Way to Make Gitea and Portworx Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running gitea and portworx together gives your team a fast, safe Git host on Kubernetes. Gitea runs your code host, while Portworx keeps your code files and data safe across nodes. Teams choose this pair when they want full control over their source code. You do not have to rely on an outside cloud vendor to hold your repos. Your code stays inside your own cluster, and your storage layer handles disk failures with ease. How gitea and portworx handle logins, roles, and data flow Gitea needs t

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.

Running gitea and portworx together gives your team a fast, safe Git host on Kubernetes. Gitea runs your code host, while Portworx keeps your code files and data safe across nodes.

Teams choose this pair when they want full control over their source code. You do not have to rely on an outside cloud vendor to hold your repos. Your code stays inside your own cluster, and your storage layer handles disk failures with ease.

How gitea and portworx handle logins, roles, and data flow

Gitea needs two main places to store its state inside a cluster. It writes Git repo files to a disk volume and stores user records in a database. Portworx provides the storage pools that back both of these parts.

When a developer pushes code, Gitea checks their login key or user account first. After that check passes, the app writes the new Git objects to the mounted volume. Portworx takes that write and copies blocks to other nodes in the cluster.

The cluster uses storage classes and claims to link the Git pod to the right disk. Cluster roles decide which pods can claim and mount those storage volumes. Your identity provider maps team members to roles inside the Git app itself. Storage keys stay inside the cluster secret store so only the storage driver can read them.

Common failure modes and how to scope roles

Many teams rush the setup and give the Git pod broad cluster admin rights. Others use one shared service account for both app tasks and storage changes. If an attacker grabs a broad token, they can wipe snapshots or read all repos.

Unlogged database queries and direct shell sessions on the storage node also create blind spots. When an engineer mounts a volume by hand to fix a bug, no audit trail exists. You cannot tell who read a secret file or changed a repo branch.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your roles into small, clear sets of rights. Give the Git service account rights to mount its single claim and nothing else. Lock down the storage control plane so only storage admins can change copy rules or delete disks. Use network rules so only the Git pod can talk to its database port.

Keeping backups and day-two ops safe

Day-two tasks like snapshot restores and volume growth need strict rules too. Do not run backup scripts with a root key that never expires. Instead, bind backup jobs to a tight role that can only trigger volume snapshots.

Check your storage logs and Git audit logs on a regular schedule. Look for strange mount requests, failed login tries, or sudden volume clones. If you store test data with emails or card numbers, mask those fields in query results. Good role design and clean logs keep your code host running without risk.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why pair Gitea with Portworx on Kubernetes?

Gitea is light and fast, but it needs durable block storage to keep Git repos safe. Portworx copies your volume data across nodes so a dead node never breaks your Git host.

How do you prevent data loss during a node crash?

Set your storage pool to keep at least two or three copies of the Git volume. When a node goes down, Kubernetes starts the Git pod on a healthy node right away.

Who should have rights to manage the storage volumes?

Only cluster platform engineers and automated backup jobs should hold rights to change or snapshot volumes. Regular developers should only push and pull code through standard Git accounts.

The query runs. The emails stay hidden.