navid/veinsforge / commit
f01606a53246
Navid M <navidmomtahen@gmail.com> · 2026-11-27
parents: 57e732992849
Browse files at this commit · Download source
--- a/DEPLOY.md+++ b/DEPLOY.md@@ -99,6 +99,18 @@ The native server authenticates every push with the Ed25519 keys registered in the web UI. Public repositories also allow anonymous read. Private repositories only include keys for users/teams with access.++After registering a key, clients can select it once for every repository on this+server:++```sh+vn auth use your-key+# or scope it to one host:+vn auth use your-key forge.example.com:7419+```++`vn clone`, `vn fetch`, `vn push`, and `vn whoami` then fall back to that key+when a repository has no explicit `remote.<name>.key`. ## 6. Firewall and basic DDoS posture --- a/internal/web/templates/home.html+++ b/internal/web/templates/home.html@@ -5,7 +5,7 @@ <h2>Clone</h2> <pre><code>vn clone veins://your-host:7419/owner/repo -key:your-key</code></pre>-<p class="small">Register an Ed25519 public key in <a href="/settings">settings</a> before pushing. Public repositories can be cloned anonymously.</p>+<p class="small">Register an Ed25519 public key in <a href="/settings">settings</a>, then select it once with <code>vn auth use your-key</code>. Public repositories can be cloned anonymously.</p> {{if .Data.UserRepos}} <h2>Your repositories</h2>--- a/internal/web/templates/repo.html+++ b/internal/web/templates/repo.html@@ -68,7 +68,7 @@ <h2>Clone</h2> <pre><code>vn clone {{.Data.NativeURL}}{{if .Data.NativePin}} -pin:{{.Data.NativePin}}{{end}}</code></pre> {{if .Data.NativePin}}<p class="small muted">TLS pin <code class="break">{{.Data.NativePin}}</code></p>{{end}}-<p class="small">Use <code>-key:your-key</code> to push. Keys are managed in <a href="/settings">settings</a>.</p>+<p class="small">Use <code>-key:your-key</code> to push, or select a default once with <code>vn auth use your-key</code>. Keys are managed in <a href="/settings">settings</a>.</p> {{if .Data.Activity}} <h2>Activity</h2>--- a/internal/web/templates/settings_user.html+++ b/internal/web/templates/settings_user.html@@ -32,6 +32,9 @@ <h2>SSH keys</h2> <p class="small muted">Ed25519 keys used by <code>vn clone</code>, <code>vn fetch</code>, and <code>vn push</code>.</p>+<p class="small">To use one key for every repository on this server, run once:</p>+<pre><code>vn auth use work</code></pre>+<p class="small muted">For a single server instead: <code>vn auth use work forge.example.com:7419</code></p> {{if .Data.Keys}} <table class="table"> <thead><tr><th>Name</th><th>Fingerprint</th><th>Public key</th><th>Added</th><th></th></tr></thead>