Ship MIT notices with published outputs and keep runtime credentials, configuration and history out of source archives. Audit working files, staged blobs and reachable history before publication. Refs #19
73 lines
3.8 KiB
Markdown
73 lines
3.8 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 \
|
|
--domain usage.example.com --email [email protected]
|
|
```
|
|
|
|
For a later update, refresh and deploy the clean checkout with one command:
|
|
|
|
```bash
|
|
bash tools/proxmox-update.sh 201
|
|
```
|
|
|
|
Here `--email` is the intended **provider account identity**, not a Git login. The installer
|
|
reads the local checkout; the separate updater fetches its tracking branch first. 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.
|