Groundwork for the app gate (item 1): before anything can enforce authentication on app ports, the node has to know which ports are *supposed* to be reachable without it. `PortMapping` grows `auth` (PortAuth::Session | None, defaulting to Session) and `auth_rationale`. The default is deliberately the protected one. Every app port on this node answered with no credential at all over LAN, Tailscale, Tor and the FIPS mesh alike — reproduced 2026-08-03 — precisely because exposure was what you got by saying nothing. Inverting the default means a new app is protected unless its manifest argues for an exemption. Validation makes the argument mandatory: `auth: none` without a rationale is rejected, and so is a rationale without `auth: none` (that combination means the author wrote an exemption and did not get one — shipping it silently would leave them believing otherwise). 17 ports across 12 apps are declared exempt, each with its reason. They are the ports that cannot sit behind an HTTP login page at all: Lightning p2p (BOLT-8 noise), LND gRPC/REST and CLN gRPC (macaroon / mutual TLS — Zeus and remote wallets dial these directly), Bitcoin p2p gossip, electrum wire protocol, Wyoming voice streams, git-over-SSH, and the UDP discovery protocols (mDNS, SSDP, STUN). Everything else — 39 published ports — now defaults to gated. Bitcoin's RPC 8332 is deliberately NOT exempted: it is already `bind: 127.0.0.1`, so the gate never sees it, and claiming an exemption it does not need would put a line in the audit list that means nothing. If the loopback bind is ever dropped, it fails closed. Two corpus tests keep this honest: every shipped manifest must parse under the new rules, and the exempt set is pinned at 17 so any change to the node's unauthenticated surface has to be a deliberate edit. Tests: 73/73 archipelago-container, workspace builds clean. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
91 lines
2.1 KiB
YAML
91 lines
2.1 KiB
YAML
app:
|
|
id: gitea
|
|
name: Gitea
|
|
version: "1.23"
|
|
description: Self-hosted Git service with built-in container registry, CI/CD, and package hosting.
|
|
category: development
|
|
|
|
container:
|
|
image: docker.io/gitea/gitea:1.23
|
|
pull_policy: if-not-present
|
|
|
|
dependencies:
|
|
- storage: 500Mi
|
|
|
|
resources:
|
|
memory_limit: 256Mi
|
|
disk_limit: 500Mi
|
|
|
|
security:
|
|
capabilities: [CHOWN, FOWNER, SETUID, SETGID, DAC_OVERRIDE, NET_BIND_SERVICE]
|
|
readonly_root: false
|
|
no_new_privileges: false
|
|
network_policy: bridge
|
|
|
|
ports:
|
|
- host: 3001
|
|
container: 3000
|
|
protocol: tcp
|
|
- host: 2222
|
|
container: 22
|
|
protocol: tcp
|
|
auth: none
|
|
auth_rationale: >-
|
|
Git over SSH, authenticated by the user's own SSH keypair. Not HTTP, so the gate cannot serve a login page here.
|
|
|
|
volumes:
|
|
- type: bind
|
|
source: /var/lib/archipelago/gitea/data
|
|
target: /data
|
|
options: [rw]
|
|
- type: bind
|
|
source: /var/lib/archipelago/gitea/config
|
|
target: /etc/gitea
|
|
options: [rw]
|
|
|
|
environment:
|
|
- GITEA__database__DB_TYPE=sqlite3
|
|
- GITEA__server__SSH_PORT=2222
|
|
- GITEA__server__SSH_LISTEN_PORT=22
|
|
- GITEA__server__LFS_START_SERVER=true
|
|
- GITEA__packages__ENABLED=true
|
|
- GITEA__repository__ENABLE_PUSH_CREATE_USER=true
|
|
- GITEA__repository__ENABLE_PUSH_CREATE_ORG=true
|
|
|
|
health_check:
|
|
type: http
|
|
endpoint: http://localhost:3000
|
|
path: /
|
|
interval: 120s
|
|
timeout: 30s
|
|
retries: 5
|
|
|
|
interfaces:
|
|
main:
|
|
name: Web UI
|
|
description: Gitea web interface
|
|
type: ui
|
|
port: 3001
|
|
protocol: http
|
|
path: /
|
|
|
|
metadata:
|
|
icon: /assets/img/app-icons/gitea.svg
|
|
repo: https://gitea.com
|
|
tier: optional
|
|
launch:
|
|
open_in_new_tab: true
|
|
features:
|
|
- Git repositories with web UI
|
|
- Built-in container/package registry
|
|
- Issue tracking and pull requests
|
|
- CI/CD via Gitea Actions
|
|
- Lightweight SQLite deployment
|
|
|
|
nginx_proxy:
|
|
listen: 3000
|
|
proxy_pass: http://127.0.0.1:3001
|
|
extra_headers:
|
|
- proxy_hide_header X-Frame-Options
|
|
- proxy_hide_header Content-Security-Policy
|