Files
FinalToken/docs/publication.md
T
Florian Schmidt 480b73d899
agent-review agent review: pass
web: allow direct IP dashboard and worker access
Remove fixed-host and HTTPS-only deployment requirements so the dashboard
works at the container IP on HTTP port 5187. Validate browser mutations
against the actual request host and retain access keys and CSRF protection.
Ignore legacy public-origin settings and make Proxmox setup hostname-free.
Update D14 and regression coverage for version 1.2.3.

Refs #25
2026-11-15 16:38:19 +01:00

3.7 KiB

Preparing a public repository

The repository uses the MIT license. Build/runtime dependencies keep their own licenses. MIT licensing does not change authentication to providers or the running dashboard.

Anonymous Git reads

After the repository host enables anonymous read access, HTTPS clone/fetch/pull need no login, email, password or Git token. Use the public URL in contributing. Pushes and maintainer API operations still require their own authorization.

For the Proxmox workflow, clone the published source on the host, then run its installer:

git clone https://git.finalfactory.de/FinalFactory/FinalToken.git
cd FinalToken
bash tools/proxmox.sh install --ctid 201 --storage local-lvm --email [email protected]

For a later update, run as root inside the LXC:

finaltoken-update

Here --email is the intended provider account identity, not a Git login. The installer reads the local checkout only during creation; the in-container updater fetches public master itself. The branch being cloned must contain the web/worker/installer changes. A public visibility setting alone does not publish uncommitted work.

Files to keep local

The ignore rules exclude live deployment configuration, service keys, provider profiles, usage history, build outputs and screenshots/logs. Keep real configuration outside the checkout when possible. Example files must use reserved example domains and explicit placeholders. Ignoring a file does not remove a copy that was already committed.

The dashboard and client still authenticate their transport. Provider authorization goes through the official CLI on its machine; making source public does not make your running instance or CLI credentials public. Do not remove dashboard/client authentication to simplify Git downloads.

Read-only audit

From the repository root:

python -B tools/check_public.py --history

This checks Git-listed source files (including non-ignored untracked files), the actual staged index blobs and reachable local history (source, commit and tag text) for sensitive runtime filenames and recognizable private-key/provider-token patterns. It reports paths, line numbers and pattern names, never matching values. Credential/config files are reported by filename without opening them. Binary/oversized objects are reported as skipped. The check is a targeted pattern check, not proof that arbitrary secrets are absent. Index blobs are checked even when the working copy is clean or different. Historical trees are checked for private filenames even when the same blob also appeared under a harmless name. The shared path policy in tools/source_policy.py also keeps recognized runtime files out of Proxmox source archives; .gitignore alone does not filter a custom deployment archive.

For an independent secret-detector check, use a verified Gitleaks release. Scan the candidate source snapshot, staged index and reachable Git history with full redaction. Keep reports outside the published source, review every finding, and never paste secret values into issues. A clean detector report is limited to its rules and scanned inputs.

Git author/committer identities and old source remain in history. Review whether those identities are suitable for publication. Do not silently rewrite attribution/history or delete branches to hide findings. Any real credential exposure needs revocation and a separately authorized history cleanup. Re-run the audit after that work and on the actual refs intended for publication.

Publication is a separate action: review the local changes, commit/push with authorization, and enable anonymous access on the intended host. This cleanup does not change repository visibility.