Auto-sync: 2026-04-22 19:20

This commit is contained in:
2026-04-22 19:20:32 +08:00
parent 72f3673978
commit 772cbf2051
85 changed files with 2919 additions and 53 deletions

33
wiki/entities/Gitea.md Normal file
View File

@@ -0,0 +1,33 @@
---
title: "Gitea"
type: entity
tags: [git, self-hosted, github-alternative, devops]
sources: [self-healing-home-server]
last_updated: 2026-04-22
---
## Aliases
- Gitea
- gitea
## Definition
Gitea 是一个开源、轻量级的自托管 Git 服务GitHub/GitLab 替代方案),使用 Go 语言编写最低硬件要求极低512MB RAM。支持 Git 仓库管理、Issue 追踪、Pull Request、Wiki、CI/CDActions等完整功能。
## In Home Lab Context
在 [[self-healing-home-server]] 安全架构中Gitea 作为**本地优先 Git 仓库**
- 作为私有代码中转站(推送到公共 GitHub 前的 CI 扫描_gate
- CI pipeline 运行 TruffleHog 等 secrets scanning 工具
- Human review required before main branch merges
- 防止 Agent 直接暴露 API keys 到公共仓库
## Security Role
Gitea 在 [[Local-first Git]] 工作流中的位置:
```
Agent → commits → Gitea (private) → CI scan (TruffleHog) → Human review → GitHub (public)
```
## Connections
- [[Local-first Git]] — Gitea 作为私有中转的核心基础设施
- [[OpenClaw]] — Agent 代码托管和工作流编排平台
- [[TruffleHog]] — Gitea CI pipeline 中运行的 secrets scanning 工具
- [[Defense-in-Depth]] — Gitea 是多层安全防御架构的一环