Files
schmidt.florian 284e692993 web: allow direct IP dashboard and worker access (#26)
Support direct HTTP IP access on port 5187 without hostname registration or a required proxy. Preserve dashboard/machine authentication and CSRF checks. Update Proxmox setup, D14, tests and documentation for 1.2.3.

Closes #25
2026-11-15 16:42:12 +01:00

72 lines
3.7 KiB
Markdown

# Preparing a public repository
The repository uses the [MIT license](../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](../CONTRIBUTING.md#get-the-source).
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:
```bash
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**:
```bash
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:
```text
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](https://github.com/gitleaks/gitleaks).
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.