Expand description
Embedded single-binary SSR Forge Web UI for arks serve (E8 — GitHub/GitLab common interface).
Compile-time embedded assets (include_str!), strict HTML entity escaping on every dynamic
value, and Content-Security-Policy: default-src 'self'; script-src 'self'.
Never interferes with Git smart/dumb HTTP (info/refs, git-upload-pack,
git-receive-pack, objects/, HEAD) or Git LFS (info/lfs/).
Spec: sot:root/v0-2-0-scope-expansion §2.8 (E8).
Structs§
- Loopback
Webhook Guard - RAII guard permitting loopback webhook delivery strictly for a single repository
common_dirwithout mutating process-wide environment variables.
Constants§
Functions§
- allow_
loopback_ webhooks_ for_ repo - Explicitly allow loopback webhook targets for
common_dirwhile the returned guard is alive. - handle_
web_ ui - Route browser
GET/POSTrequests to the embedded SSR Web UI (local Actions disabled). - handle_
web_ ui_ with_ actions - Route browser
GET/POSTrequests to the embedded SSR Web UI; returnsNonefor Git smart/dumb HTTP and LFS paths so protocol traffic passes through untouched. - html_
escape - Strictly escape HTML special characters to prevent XSS.
- init_
bare_ repo - Initialize a standards-compliant bare Git repository purely in Rust (zero
gitspawn). - is_
ssrf_ blocked_ url - Default SSRF check (fail-closed for loopback & private ranges unless explicitly allowed via
ARKS_WEBHOOK_ALLOW_LOOPBACK=1orARKS_WEBHOOK_ALLOW_PRIVATE=1). - multi_
repo_ page_ handler - Build a
PageHandlerserving multiple Git repositories underroot_dir. - multi_
repo_ page_ handler_ full - Build a
PageHandlerserving multiple Git repositories underroot_dirwith explicitdisable_lfs,disable_web_ui, and operatorhas_basic_authoptions. - multi_
repo_ page_ handler_ opts - Build a
PageHandlerserving multiple Git repositories underroot_dirwith explicitdisable_lfsanddisable_web_uioptions (INT-S04). - web_
ui_ page_ handler - Build a
PageHandlerserving the embedded SSR Web UI forgit_dir(local Actions runner disabled unlessARKS_SERVE_ALLOW_LOCAL_ACTIONS=1). - web_
ui_ page_ handler_ with_ actions - Build a
PageHandlerserving the embedded SSR Web UI with explicit opt-in control over local Actions workflow execution.