auto: docs sync 2026-06-18T12:00:08+00:00

Files changed: .gitignore engine/.embcache.json engine/changelog.md engine/lib/__pycache__/__init__.cpython-312.pyc engine/lib/__pycache__/agent.cpython-312.pyc engine/lib/agent.py engine/lint-report.md engine/prompts/system.md engine/sweep.sh vault/.obsidian/graph.json vault/docs/software/authentik.md vault/docs/software/caddy.md vault/docs/software/recon.md vault/notes/echo6-landing-page-data-export.md vault/projects/argus.md vault/projects/meshtastic-headscale-runbook.md vault/runbooks/add-peertube-channel.md vault/runbooks/authentik-access-groups.md vault/runbooks/ct-runbook.md vault/runbooks/meshtastic-sidecar-node.md
This commit is contained in:
echo6-autocommit 2026-06-18 12:00:08 +00:00
commit c30ce9f1e3
20 changed files with 1490 additions and 703 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
engine/.embcache.json
engine/.last-sweep

File diff suppressed because one or more lines are too long

60
engine/changelog.md Normal file
View file

@ -0,0 +1,60 @@
## 2026-06-18T06:11:17Z — meshtastic-sidecar-node.md
- file: `/home/zvx/projects/.ref/vault/runbooks/meshtastic-sidecar-node.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'runbook'; tags: [] → ['mesh', 'vpn']
## 2026-06-18T06:11:27Z — authentik-access-groups.md
- file: `/home/zvx/projects/.ref/vault/runbooks/authentik-access-groups.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'runbook'; tags: [] → ['auth', 'mesh', 'matrix']
## 2026-06-18T06:11:36Z — add-peertube-channel.md
- file: `/home/zvx/projects/.ref/vault/runbooks/add-peertube-channel.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'runbook'; tags: [] → ['media', 'vpn', 'auth']
## 2026-06-18T06:11:44Z — ct-runbook.md
- file: `/home/zvx/projects/.ref/vault/runbooks/ct-runbook.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'runbook'; tags: [] → ['proxmox']
## 2026-06-18T06:12:04Z — authentik.md
- file: `/home/zvx/projects/.ref/vault/docs/software/authentik.md`
- action: applied
- confidence: 0.90
- changes: type: '' → 'reference'; tags: [] → ['auth', 'mesh', 'matrix']
## 2026-06-18T06:12:31Z — caddy.md
- file: `/home/zvx/projects/.ref/vault/docs/software/caddy.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'reference'; tags: [] → ['dns', 'mesh', 'auth']
## 2026-06-18T06:12:59Z — recon.md
- file: `/home/zvx/projects/.ref/vault/docs/software/recon.md`
- action: applied
- confidence: 0.90
- changes: type: '' → 'reference'; tags: [] → ['recon', 'ai', 'storage']
## 2026-06-18T06:13:09Z — argus.md
- file: `/home/zvx/projects/.ref/vault/projects/argus.md`
- action: applied
- confidence: 0.90
- changes: type: '' → 'project'; tags: [] → ['mesh', 'auth', 'recon']
## 2026-06-18T06:13:16Z — meshtastic-headscale-runbook.md
- file: `/home/zvx/projects/.ref/vault/projects/meshtastic-headscale-runbook.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'project'; tags: [] → ['mesh', 'vpn', 'auth']
## 2026-06-18T06:13:30Z — echo6-landing-page-data-export.md
- file: `/home/zvx/projects/.ref/vault/notes/echo6-landing-page-data-export.md`
- action: applied
- confidence: 0.95
- changes: type: '' → 'note'; tags: [] → ['auth', 'media', 'matrix']

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -1,17 +1,17 @@
# Vault Lint Report
Generated: 2026-06-18T05:49:07Z | Docs scanned: 98 | Elapsed: 0.0s
Generated: 2026-06-18T06:14:05Z | Docs scanned: 98 | Elapsed: 0.0s
## Summary
| Severity | Count |
|----------|-------|
| ERROR (dead links) | 0 |
| WARN (schema) | 106 |
| WARN (schema) | 96 |
| INFO (orphans) | 38 |
### WARN breakdown
- Missing frontmatter block: 95
- Missing frontmatter block: 85
- Invalid/missing frontmatter fields: 3
- Unknown tags: 8
@ -72,27 +72,18 @@ _None. All wikilinks resolve._
- `docs/services/ots-setup.md` — missing frontmatter block entirely
- `docs/services/services.md` — missing frontmatter block entirely
- `docs/services/usenet.md` — missing frontmatter block entirely
- `docs/software/authentik.md` — missing frontmatter block entirely
- `docs/software/caddy.md` — missing frontmatter block entirely
- `docs/software/dns.md` — missing frontmatter block entirely
- `docs/software/geo-tools.md` — missing frontmatter block entirely
- `docs/software/recon.md` — missing frontmatter block entirely
- `docs/software/searxng.md` — missing frontmatter block entirely
- `notes/echo6-landing-page-data-export.md` — missing frontmatter block entirely
- `notes/ia-download-queue.md` — missing frontmatter block entirely
- `plans/vaultwarden-plan.md` — missing frontmatter block entirely
- `projects/advbbs-project.md` — missing frontmatter block entirely
- `projects/argus.md` — missing frontmatter block entirely
- `projects/deploy-livesync.md` — missing frontmatter block entirely
- `projects/matrix-synapse-deployment.md` — missing frontmatter block entirely
- `projects/meshtastic-headscale-runbook.md` — missing frontmatter block entirely
- `projects/mmud-project.md` — missing frontmatter block entirely
- `runbooks/add-peertube-channel.md` — missing frontmatter block entirely
- `runbooks/authentik-access-groups.md` — missing frontmatter block entirely
- `runbooks/authentik-create-invitation.md` — missing frontmatter block entirely
- `runbooks/authentik-oidc-application.md` — missing frontmatter block entirely
- `runbooks/authentik-upgrade.md` — missing frontmatter block entirely
- `runbooks/ct-runbook.md` — missing frontmatter block entirely
- `runbooks/edge2-access-reference.md` — missing frontmatter block entirely
- `runbooks/expose-service-contabo.md` — missing frontmatter block entirely
- `runbooks/expose-service-edge2.md` — missing frontmatter block entirely
@ -105,7 +96,6 @@ _None. All wikilinks resolve._
- `runbooks/lxc-service-migration.md` — missing frontmatter block entirely
- `runbooks/mailcow-create-mailbox.md` — missing frontmatter block entirely
- `runbooks/meshmonitor-password-reset.md` — missing frontmatter block entirely
- `runbooks/meshtastic-sidecar-node.md` — missing frontmatter block entirely
- `runbooks/meshtasticd-sim-nodes-runbook.md` — missing frontmatter block entirely
- `runbooks/nordvpn-lxc.md` — missing frontmatter block entirely
- `runbooks/peertube-remote-runner.md` — missing frontmatter block entirely

View file

@ -28,7 +28,7 @@ Respond with ONLY a single valid JSON object. No prose, no markdown fences, no e
```
Field definitions:
- **tags**: tier-1 topic tags drawn exclusively from topic_categories
- **tags**: up to 3 tier-1 topic tags drawn exclusively from topic_categories, ordered most-relevant to least-relevant (primary topic first)
- **entities**: known names matched from entity_lexicon
- **glossary_proposals**: unknown acronyms or terms worth adding to the lexicon
- **type**: one of reference | runbook | project | note | index | session
@ -36,7 +36,7 @@ Field definitions:
## Rules — follow exactly
1. **Only use provided vocabulary.** `tags` must be a subset of `topic_categories`.
1. **Only use provided vocabulary.** `tags` must be a subset of `topic_categories`; return at most 3, ordered most-relevant to least-relevant.
`entities` must be a subset of the keys in `entity_lexicon`. Never invent new tags.
2. **Strict JSON only.** The output must parse with `json.loads()` with no preprocessing.

View file

@ -1,66 +1,221 @@
#!/usr/bin/env bash
# sweep.sh — Echo6 Vault Engine daily maintenance sweep
# sweep.sh — Echo6 Vault Engine orchestrator
#
# Invoked by cron (schedule: "0 9 * * *" from config.yaml).
# Also callable manually: ./sweep.sh
#
# What this does (when fully implemented):
# 1. GPU-busy guard: check VRAM usage; defer if > defer_if_gpu_busy_mib (6000 MiB default)
# 2. Run lint (lib/lint.py) over all vault docs — fix or flag frontmatter issues
# 3. Run agent (lib/agent.py) over changed/new docs since last run — tag + embed
# 4. Append a summary entry to changelog.md
#
# Configuration is read from config.yaml (engine_dir, vault_dir, thresholds, changelog path).
# Usage:
# ./sweep.sh # default: process docs changed since last sweep
# ./sweep.sh --all # process every non-archived vault doc
# ./sweep.sh --dry-run # pass --dry-run to agent.py (no writes)
# ./sweep.sh --all --dry-run # both
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VAULT_DIR="${SCRIPT_DIR}/../vault"
CONFIG="${SCRIPT_DIR}/config.yaml"
LAST_SWEEP="${SCRIPT_DIR}/.last-sweep"
CHANGELOG="${SCRIPT_DIR}/changelog.md"
LINT_REPORT="${SCRIPT_DIR}/lint-report.md"
echo "==> Echo6 vault sweep — $(date -u '+%Y-%m-%dT%H:%M:%SZ')"
# Parse args
OPT_ALL=0
OPT_DRY=0
for arg in "$@"; do
case "$arg" in
--all) OPT_ALL=1 ;;
--dry-run) OPT_DRY=1 ;;
*)
echo "[error] Unknown argument: $arg" >&2
echo "Usage: $0 [--all] [--dry-run]" >&2
exit 1
;;
esac
done
SWEEP_START="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "==> Echo6 vault sweep — ${SWEEP_START}"
if [ "$OPT_DRY" -eq 1 ]; then
echo " (DRY-RUN mode — no files will be modified)"
fi
# ---------------------------------------------------------------------------
# Step 1 — GPU-busy guard
# ---------------------------------------------------------------------------
# TODO: Query nvidia-smi for used VRAM; compare to defer_if_gpu_busy_mib from config.yaml.
# If busy, log a deferred entry to changelog and exit 0 (not an error, just deferred).
#
# Example skeleton:
# USED_MIB=$(nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits | head -1)
# THRESHOLD=6000 # read from config.yaml
# if [ "$USED_MIB" -gt "$THRESHOLD" ]; then
# echo "GPU busy (${USED_MIB} MiB > ${THRESHOLD} MiB threshold) — deferring sweep."
# exit 0
# fi
echo ""
echo "[1/4] GPU-busy guard..."
# Helper: run nvidia-smi, using docker exec ollama if host lacks it
_nvidia_smi() {
if command -v nvidia-smi &>/dev/null; then
nvidia-smi "$@" 2>/dev/null
elif command -v docker &>/dev/null && docker ps --format '{{.Names}}' 2>/dev/null | grep -q '^ollama$'; then
docker exec ollama nvidia-smi "$@" 2>/dev/null
else
return 1
fi
}
GPU_DEFERRED=0
DEFER_REASON=""
# Guard 1 — competing GPU processes (share the A4000)
if pgrep -fa 'peertube-runner|whisper|ffmpeg' >/dev/null 2>&1; then
COMPETING="$(pgrep -fa 'peertube-runner|whisper|ffmpeg' | head -1)"
DEFER_REASON="competing GPU process: ${COMPETING}"
GPU_DEFERRED=1
fi
# Guard 2 — sustained GPU utilization > 60 %
if [ "$GPU_DEFERRED" -eq 0 ]; then
GPU_UTIL="$(_nvidia_smi --query-gpu=utilization.gpu --format=csv,noheader,nounits 2>/dev/null | head -1 | tr -d '[:space:]' || true)"
if [ -n "$GPU_UTIL" ] && [[ "$GPU_UTIL" =~ ^[0-9]+$ ]]; then
echo " GPU utilization: ${GPU_UTIL}%"
if [ "$GPU_UTIL" -gt 60 ]; then
DEFER_REASON="GPU utilization ${GPU_UTIL}% > 60%"
GPU_DEFERRED=1
fi
else
echo " nvidia-smi not available or could not read utilization — skipping util guard."
fi
fi
# Guard 3 (safety cap) — very high VRAM usage (>14000 MiB) — not triggered by vault-tagger itself (~8-10 GB)
if [ "$GPU_DEFERRED" -eq 0 ]; then
GPU_USED_MIB="$(_nvidia_smi --query-gpu=memory.used --format=csv,noheader,nounits 2>/dev/null | head -1 | tr -d '[:space:]' || true)"
if [ -n "$GPU_USED_MIB" ] && [[ "$GPU_USED_MIB" =~ ^[0-9]+$ ]]; then
echo " GPU VRAM used: ${GPU_USED_MIB} MiB (safety cap: 14000 MiB)"
if [ "$GPU_USED_MIB" -gt 14000 ]; then
DEFER_REASON="VRAM ${GPU_USED_MIB} MiB > 14000 MiB safety cap"
GPU_DEFERRED=1
fi
fi
fi
if [ "$GPU_DEFERRED" -eq 1 ]; then
echo " GPU busy — deferring sweep. Reason: ${DEFER_REASON}"
if [ "$OPT_DRY" -eq 0 ]; then
printf "\n## %s — sweep deferred (%s)\n" "$SWEEP_START" "$DEFER_REASON" >> "$CHANGELOG"
fi
exit 0
fi
echo " GPU OK — proceeding."
echo "[1/4] TODO — GPU-busy guard not yet implemented."
# ---------------------------------------------------------------------------
# Step 2 — Run lint
# Step 2 — Lint
# ---------------------------------------------------------------------------
# TODO: Call lib/lint.py to validate/fix frontmatter across vault docs.
# Lint should be idempotent and log all changes to changelog.
#
# python3 "${SCRIPT_DIR}/lib/lint.py" --config "${CONFIG}"
echo ""
echo "[2/4] Running lint..."
echo "[2/4] TODO — lint.py not yet implemented (Step 2)."
python3 "${SCRIPT_DIR}/lib/lint.py" --report 2>&1 | tee /tmp/sweep-lint.log || {
echo "[warn] lint.py exited non-zero — continuing sweep"
}
echo " Lint complete. Report: ${LINT_REPORT}"
# ---------------------------------------------------------------------------
# Step 3 — Run agent over changed/new docs
# Step 3 — Select docs and run agent
# ---------------------------------------------------------------------------
# TODO: Call lib/agent.py to tag + embed documents modified since last sweep.
# Agent tracks last-run timestamp in a state file (e.g. engine/.last_sweep).
#
# python3 "${SCRIPT_DIR}/lib/agent.py" --config "${CONFIG}"
echo ""
echo "[3/4] Selecting documents..."
echo "[3/4] TODO — agent.py not yet implemented (Step 5)."
# Build file list
DOC_LIST=()
if [ "$OPT_ALL" -eq 1 ] || [ ! -f "$LAST_SWEEP" ]; then
if [ "$OPT_ALL" -eq 1 ]; then
echo " Mode: --all (full vault scan)"
else
echo " Mode: no .last-sweep marker found — treating as first run (full scan)"
fi
while IFS= read -r -d f; do
# Skip archive
if [[ "$f" == *"/archive/"* ]]; then
continue
fi
DOC_LIST+=("$f")
done < <(find "${VAULT_DIR}" -name "*.md" -print0 | sort -z)
else
LAST_TS="$(cat "$LAST_SWEEP")"
echo " Mode: incremental — docs modified since ${LAST_TS}"
# Compare file mtime to .last-sweep mtime (not contents)
while IFS= read -r -d f; do
if [[ "$f" == *"/archive/"* ]]; then
continue
fi
DOC_LIST+=("$f")
done < <(find "${VAULT_DIR}" -name "*.md" -newer "$LAST_SWEEP" -print0 | sort -z)
fi
TOTAL="${#DOC_LIST[@]}"
echo " ${TOTAL} document(s) selected."
if [ "$TOTAL" -eq 0 ]; then
echo " Nothing to process — vault is up to date."
if [ "$OPT_DRY" -eq 0 ]; then
date -u +%Y-%m-%dT%H:%M:%SZ > "$LAST_SWEEP"
printf "\n## %s — sweep complete (0 docs selected)\n" "$SWEEP_START" >> "$CHANGELOG"
fi
echo "==> Done."
exit 0
fi
echo ""
echo " Processing..."
N_PROCESSED=0
N_WRITTEN=0
N_FLAGGED=0
N_ERRORS=0
AGENT_DRY_FLAG=""
if [ "$OPT_DRY" -eq 1 ]; then
AGENT_DRY_FLAG="--dry-run"
fi
for doc in "${DOC_LIST[@]}"; do
echo ""
echo " --- $(basename "$doc") ---"
set +e
python3 "${SCRIPT_DIR}/lib/agent.py" $AGENT_DRY_FLAG "$doc" 2>&1
EXIT_CODE=$?
set -e
N_PROCESSED=$(( N_PROCESSED + 1 ))
if [ "$EXIT_CODE" -eq 0 ]; then
N_WRITTEN=$(( N_WRITTEN + 1 ))
else
echo " [warn] agent.py exited ${EXIT_CODE} for ${doc}"
N_ERRORS=$(( N_ERRORS + 1 ))
fi
done
# ---------------------------------------------------------------------------
# Step 4 — Append changelog summary
# Step 4 — Update marker + changelog summary
# ---------------------------------------------------------------------------
# TODO: agent.py and lint.py both append to changelog.md directly.
# This step adds a sweep-level summary entry.
echo ""
echo "[4/4] Finalising..."
echo "[4/4] TODO — changelog summary not yet implemented."
SWEEP_END="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "==> sweep.sh done."
if [ "$OPT_DRY" -eq 0 ]; then
date -u +%Y-%m-%dT%H:%M:%SZ > "$LAST_SWEEP"
{
printf "\n## %s — sweep run\n" "$SWEEP_START"
printf "- end: %s\n" "$SWEEP_END"
printf "- mode: %s\n" "$([ "$OPT_ALL" -eq 1 ] && echo "--all" || echo "incremental")"
printf "- docs selected: %d\n" "$TOTAL"
printf "- processed: %d | written: %d | flagged: %d | errors: %d\n" \
"$N_PROCESSED" "$N_WRITTEN" "$N_FLAGGED" "$N_ERRORS"
} >> "$CHANGELOG"
echo " .last-sweep updated. Changelog appended."
else
echo " [DRY-RUN] .last-sweep NOT updated. Changelog NOT written."
fi
echo ""
echo "==> Sweep complete."
echo " Docs selected : ${TOTAL}"
echo " Processed : ${N_PROCESSED}"
echo " Written/OK : ${N_WRITTEN}"
echo " Errors : ${N_ERRORS}"
if [ "$OPT_DRY" -eq 1 ]; then
echo " [DRY-RUN] No vault docs were modified."
fi

View file

@ -1,7 +1,7 @@
{
"collapse-filter": true,
"search": "",
"showTags": false,
"showTags": true,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,

View file

@ -1,3 +1,19 @@
---
title: Authentik SSO Configuration
type: reference
tags:
- auth
- mesh
- matrix
aliases: []
related:
- [[authentik-oidc-application]]
- [[caddy]]
- [[mailcow-create-mailbox]]
- [[proxmox-onboard-node]]
- [[services]]
updated: 2026-06-18
---
# Authentik SSO Configuration
## Location

View file

@ -1,3 +1,19 @@
---
title: "Caddy & DNS Reference"
type: reference
tags:
- dns
- mesh
- auth
aliases: []
related:
- [[services]]
- [[headscale-onboard-node]]
- [[ip-allocation]]
- [[expose-service-home]]
- [[INDEX]]
updated: 2026-06-18
---
# Caddy & DNS Reference
## Contabo Caddy

View file

@ -1,3 +1,19 @@
---
title: RECON — Knowledge Extraction Pipeline
type: reference
tags:
- recon
- ai
- storage
aliases: []
related:
- [[recon-operations]]
- [[INDEX]]
- [[ia-download-queue]]
- [[add-peertube-channel]]
- [[services]]
updated: 2026-06-18
---
# RECON — Knowledge Extraction Pipeline
## Overview

View file

@ -1,3 +1,19 @@
---
title: Echo6 Landing Page — Data Export
type: note
tags:
- auth
- media
- matrix
aliases: []
related:
- [[searxng]]
- [[authentik]]
- [[caddy]]
- [[INDEX]]
- [[services]]
updated: 2026-06-18
---
# Echo6 Landing Page — Data Export
## Echo6 Platform Reference — Infrastructure, Services & Brand Identity

View file

@ -1,310 +1,326 @@
# ARGUS - OSINT Intelligence Platform
**Status:** Container provisioned, baseline installed, awaiting application deployment
**Last Updated:** 2026-06-14
---
## Overview
ARGUS (Automated Reconnaissance & Gathering for Unified Situational-awareness) is an OSINT intelligence gathering platform combining SearXNG with local LLM analysis for automated threat intelligence collection and processing.
**Architecture:**
- Search backend: SearXNG (self-hosted)
- Analysis: Local LLM models (no cloud APIs)
- Scopes: Local, regional, national, global threat levels
- Privacy-first: No PII collection, focus on events/trends/policies
---
## Container Specifications
| Property | Value |
|----------|-------|
| **CTID** | 103 |
| **Hostname** | argus |
| **Host** | utility (192.168.1.241 / 100.64.0.5) |
| **Local IP** | 192.168.1.103 (static) |
| **Tailscale IP** | 100.64.0.25 |
| **Gateway** | 192.168.1.1 |
| **Container Type** | Privileged (unprivileged=0) |
| **Resources** | 4 cores, 8GB RAM, 30GB disk |
| **Storage** | local-lvm:vm-103-disk-0 |
| **Network** | vmbr0, eth0 |
| **Features** | nesting=1 (Docker support) |
| **Autostart** | Yes (onboot=1) |
| **OS** | Ubuntu 24.04 LTS |
**Why privileged:** Required for /dev/net/tun access (Tailscale). Attempted unprivileged initially but tailscaled failed with "CreateTUN failed; /dev/net/tun does not exist".
---
## Installed Software (Baseline)
- **Docker:** 29.5.3 + docker-compose plugin
- **Tailscale:** 1.98.4 (registered with Headscale at vpn.echo6.co)
- **User:** zvx (uid=1000, groups: sudo, docker)
- **Common tools:** curl, wget, vim, htop, git, jq, net-tools, dnsutils, sshpass
- **SSH:** OpenSSH server (password auth enabled)
---
## Tailscale Configuration
**Headscale server:** https://vpn.echo6.co
**User:** echo6 (user ID 1)
**Tailscale IP:** 100.64.0.25
**Registration:** `tailscale up --login-server=https://vpn.echo6.co --authkey=<key> --ssh --accept-routes`
**DNS Bootstrap Fix:**
Systemd drop-in at `/etc/systemd/system/tailscaled.service.d/dns-bootstrap.conf` ensures fallback DNS (1.1.1.1, 8.8.8.8) exists before tailscaled starts, preventing chicken-and-egg DNS resolution failures on reboot.
```bash
[Service]
# Ensure fallback DNS exists before tailscaled starts
# Prevents chicken-and-egg DNS resolution failures on reboot
ExecStartPre=/bin/sh -c "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 8.8.8.8 >> /etc/resolv.conf"
```
---
## Network Configuration
**Static IP:** Configured via Proxmox (`pct set 103 -net0 name=eth0,bridge=vmbr0,ip=192.168.1.103/24,gw=192.168.1.1`)
**Container config** (`/etc/pve/lxc/103.conf`):
```
arch: amd64
cores: 4
features: nesting=1
hostname: argus
memory: 8192
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:EA:8B:21,ip=192.168.1.103/24,gw=192.168.1.1,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-103-disk-0,size=30G
swap: 512
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
```
**TUN device:** Added manually via `lxc.cgroup2.devices.allow` and `lxc.mount.entry` to support Tailscale in privileged container.
---
## Access Methods
### SSH Access
```bash
# Local network (static IP)
ssh zvx@192.168.1.103
# Tailscale VPN
ssh zvx@100.64.0.25
ssh zvx@argus
# With password (for sshpass workflows)
sshpass -p '7redditGold' ssh zvx@192.168.1.103
```
**Credentials:**
- User: `zvx`
- Password: `7redditGold`
- Sudo: Enabled (no password prompt)
### From Proxmox Host
```bash
# Execute commands in container
pct exec 103 -- <command>
# Enter container shell
pct enter 103
# Container management
pct start 103
pct stop 103
pct reboot 103
pct status 103
```
---
## ARGUS Application Architecture (Planned)
### Geographic Scope Hierarchy
| Scope | Description | Update Frequency |
|-------|-------------|------------------|
| LOCAL | Idaho, immediate region | High |
| REGIONAL | Pacific Northwest, neighboring states | Medium |
| NATIONAL | US-wide threats, policy changes | Medium |
| GLOBAL | International, geopolitical | Low |
### Data Storage
- **Raw search results:** `data/raw/{scope}/{date}/`
- **Processed intel:** `data/processed/{scope}/`
- **Alerts:** `data/alerts/`
- **Timestamps:** All in UTC
### Privacy Rules
- No PII collection on individuals
- Focus on events, trends, policies — not people
- Scrub any inadvertent PII before storage
- Logs must not contain search queries with personal info
### LLM Analysis
- **Model hosting:** Local only (no cloud APIs)
- **Functions:** Summarization, threat classification, entity extraction, sentiment/threat scoring
- **Entities:** Locations, organizations (not individuals)
---
## Provisioning History
**2026-06-14 03:00 UTC** - Initial provisioning
1. **First attempt (unprivileged):** Failed - tailscaled couldn't access /dev/net/tun
2. **Second attempt (privileged):** Success
- Created CT 103 with `--unprivileged 0`
- Installed baseline (apt update/upgrade, common tools, Docker, Tailscale)
- DNS fix required post-restart (resolv.conf reset to 100.100.100.100)
- Added DNS bootstrap systemd drop-in to prevent future DNS failures
- Configured static IP 192.168.1.103 (originally got .142 via DHCP)
- Added TUN device support via lxc.cgroup2 and lxc.mount.entry
**Headscale registration:**
- Created preauth key via `docker exec headscale headscale preauthkeys create --user 1 --expiration 24h --reusable`
- Registered successfully after DNS fix
- Assigned Tailscale IP: 100.64.0.25
---
## Verification Checklist
Run inside container to verify baseline:
```bash
pct exec 103 -- bash -c '
echo "=== CT Provisioning Check ==="
echo ""
echo "Hostname: $(hostname)"
echo "User zvx: $(id zvx 2>/dev/null && echo OK || echo MISSING)"
echo "sudo: $(sudo -l -U zvx 2>/dev/null | grep -q ALL && echo OK || echo MISSING)"
echo "sshpass: $(which sshpass >/dev/null 2>&1 && echo OK || echo MISSING)"
echo "SSH: $(systemctl is-active ssh)"
echo "Docker: $(docker --version 2>/dev/null || echo MISSING)"
echo "Tailscale: $(tailscale status --self 2>/dev/null | head -1 || echo NOT CONNECTED)"
echo "Tailscale IP: $(tailscale ip -4 2>/dev/null || echo N/A)"
echo "Local IP: $(hostname -I | awk \"{print \$1}\")"
'
```
**Expected output:**
```
=== CT Provisioning Check ===
Hostname: argus
User zvx: uid=1000(zvx) gid=1000(zvx) groups=1000(zvx),27(sudo),990(docker) OK
sudo: OK
sshpass: OK
SSH: active
Docker: Docker version 29.5.3, build d1c06ef
Tailscale: 100.64.0.25 argus echo6 linux -
Tailscale IP: 100.64.0.25
Local IP: 192.168.1.103
```
---
## Known Issues & Resolutions
### Issue: DNS resolution fails after container restart
**Symptom:** `resolv.conf` gets reset to invalid nameserver (100.100.100.100), breaking apt and network connectivity.
**Root cause:** LXC containers sometimes reset DNS on boot before networking is fully initialized.
**Resolution:** Installed systemd drop-in (`/etc/systemd/system/tailscaled.service.d/dns-bootstrap.conf`) that sets fallback DNS before tailscaled starts. Prevents chicken-and-egg failure where Tailscale can't resolve vpn.echo6.co because DNS is broken.
### Issue: Tailscaled fails with "/dev/net/tun does not exist"
**Symptom:** Tailscaled crashes on startup with `CreateTUN("tailscale0") failed; /dev/net/tun does not exist`.
**Root cause:** Unprivileged LXC containers don't have access to /dev/net/tun by default.
**Resolution:** Recreated container as privileged (`--unprivileged 0`) and added TUN device to container config:
```
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
```
---
## Next Steps (Application Deployment)
1. **SearXNG deployment:** Docker container for self-hosted search aggregation
2. **LLM integration:** Local model for analysis (Ollama on cortex or self-hosted)
3. **Database:** SQLite for processed intel, possibly Qdrant for vector search (cortex:6333 available)
4. **Scheduler:** Cron or systemd timers for automated collection
5. **Web dashboard:** Flask/FastAPI for threat intel visualization
6. **Alerting:** Integration with Matrix/email for high-priority threats
---
## Operational Notes
- **Backup strategy:** TBD (Docker volumes + application data)
- **Log rotation:** TBD
- **Monitoring:** TBD (consider adding to WATCHTOWER ops dashboard)
- **Updates:** Standard Ubuntu + Docker update procedures
- **Resource scaling:** Can adjust cores/RAM via `pct set 103 -cores X -memory Y` (requires container restart)
---
## Related Documentation
- **CT provisioning:** `/home/zvx/projects/.ref/runbooks/ct-runbook.md`
- **ARGUS rules:** `~/.claude/rules/argus.md`
- **Environment:** `/home/zvx/projects/.ref/docs/hardware/environment.md`
- **Services:** `/home/zvx/projects/.ref/docs/services/services.md`
- **Headscale:** `/home/zvx/projects/.ref/docs/software/caddy.md` (dnsmasq split DNS)
---
## Quick Command Reference
```bash
# Container management (from Proxmox host)
pct start 103
pct stop 103
pct reboot 103
pct enter 103
# SSH access
ssh zvx@192.168.1.103
ssh zvx@argus # via Tailscale DNS
# Check Tailscale status
pct exec 103 -- tailscale status
pct exec 103 -- tailscale ip -4
# Docker commands (as zvx user)
ssh zvx@argus "docker ps"
ssh zvx@argus "docker compose up -d"
# View container config
cat /etc/pve/lxc/103.conf
# Check resource usage
pct status 103 --verbose
```
---
**Provisioned by:** Claude Code
**Container ready for:** ARGUS application deployment
---
title: ARGUS - OSINT Intelligence Platform
type: project
tags:
- mesh
- auth
- recon
aliases: []
related:
- [[ip-allocation]]
- [[caddy]]
- [[headscale-onboard-node]]
- [[ct-runbook]]
- [[environment]]
updated: 2026-06-18
---
# ARGUS - OSINT Intelligence Platform
**Status:** Container provisioned, baseline installed, awaiting application deployment
**Last Updated:** 2026-06-14
---
## Overview
ARGUS (Automated Reconnaissance & Gathering for Unified Situational-awareness) is an OSINT intelligence gathering platform combining SearXNG with local LLM analysis for automated threat intelligence collection and processing.
**Architecture:**
- Search backend: SearXNG (self-hosted)
- Analysis: Local LLM models (no cloud APIs)
- Scopes: Local, regional, national, global threat levels
- Privacy-first: No PII collection, focus on events/trends/policies
---
## Container Specifications
| Property | Value |
|----------|-------|
| **CTID** | 103 |
| **Hostname** | argus |
| **Host** | utility (192.168.1.241 / 100.64.0.5) |
| **Local IP** | 192.168.1.103 (static) |
| **Tailscale IP** | 100.64.0.25 |
| **Gateway** | 192.168.1.1 |
| **Container Type** | Privileged (unprivileged=0) |
| **Resources** | 4 cores, 8GB RAM, 30GB disk |
| **Storage** | local-lvm:vm-103-disk-0 |
| **Network** | vmbr0, eth0 |
| **Features** | nesting=1 (Docker support) |
| **Autostart** | Yes (onboot=1) |
| **OS** | Ubuntu 24.04 LTS |
**Why privileged:** Required for /dev/net/tun access (Tailscale). Attempted unprivileged initially but tailscaled failed with "CreateTUN failed; /dev/net/tun does not exist".
---
## Installed Software (Baseline)
- **Docker:** 29.5.3 + docker-compose plugin
- **Tailscale:** 1.98.4 (registered with Headscale at vpn.echo6.co)
- **User:** zvx (uid=1000, groups: sudo, docker)
- **Common tools:** curl, wget, vim, htop, git, jq, net-tools, dnsutils, sshpass
- **SSH:** OpenSSH server (password auth enabled)
---
## Tailscale Configuration
**Headscale server:** https://vpn.echo6.co
**User:** echo6 (user ID 1)
**Tailscale IP:** 100.64.0.25
**Registration:** `tailscale up --login-server=https://vpn.echo6.co --authkey=<key> --ssh --accept-routes`
**DNS Bootstrap Fix:**
Systemd drop-in at `/etc/systemd/system/tailscaled.service.d/dns-bootstrap.conf` ensures fallback DNS (1.1.1.1, 8.8.8.8) exists before tailscaled starts, preventing chicken-and-egg DNS resolution failures on reboot.
```bash
[Service]
# Ensure fallback DNS exists before tailscaled starts
# Prevents chicken-and-egg DNS resolution failures on reboot
ExecStartPre=/bin/sh -c "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 8.8.8.8 >> /etc/resolv.conf"
```
---
## Network Configuration
**Static IP:** Configured via Proxmox (`pct set 103 -net0 name=eth0,bridge=vmbr0,ip=192.168.1.103/24,gw=192.168.1.1`)
**Container config** (`/etc/pve/lxc/103.conf`):
```
arch: amd64
cores: 4
features: nesting=1
hostname: argus
memory: 8192
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:EA:8B:21,ip=192.168.1.103/24,gw=192.168.1.1,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-103-disk-0,size=30G
swap: 512
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
```
**TUN device:** Added manually via `lxc.cgroup2.devices.allow` and `lxc.mount.entry` to support Tailscale in privileged container.
---
## Access Methods
### SSH Access
```bash
# Local network (static IP)
ssh zvx@192.168.1.103
# Tailscale VPN
ssh zvx@100.64.0.25
ssh zvx@argus
# With password (for sshpass workflows)
sshpass -p '7redditGold' ssh zvx@192.168.1.103
```
**Credentials:**
- User: `zvx`
- Password: `7redditGold`
- Sudo: Enabled (no password prompt)
### From Proxmox Host
```bash
# Execute commands in container
pct exec 103 -- <command>
# Enter container shell
pct enter 103
# Container management
pct start 103
pct stop 103
pct reboot 103
pct status 103
```
---
## ARGUS Application Architecture (Planned)
### Geographic Scope Hierarchy
| Scope | Description | Update Frequency |
|-------|-------------|------------------|
| LOCAL | Idaho, immediate region | High |
| REGIONAL | Pacific Northwest, neighboring states | Medium |
| NATIONAL | US-wide threats, policy changes | Medium |
| GLOBAL | International, geopolitical | Low |
### Data Storage
- **Raw search results:** `data/raw/{scope}/{date}/`
- **Processed intel:** `data/processed/{scope}/`
- **Alerts:** `data/alerts/`
- **Timestamps:** All in UTC
### Privacy Rules
- No PII collection on individuals
- Focus on events, trends, policies — not people
- Scrub any inadvertent PII before storage
- Logs must not contain search queries with personal info
### LLM Analysis
- **Model hosting:** Local only (no cloud APIs)
- **Functions:** Summarization, threat classification, entity extraction, sentiment/threat scoring
- **Entities:** Locations, organizations (not individuals)
---
## Provisioning History
**2026-06-14 03:00 UTC** - Initial provisioning
1. **First attempt (unprivileged):** Failed - tailscaled couldn't access /dev/net/tun
2. **Second attempt (privileged):** Success
- Created CT 103 with `--unprivileged 0`
- Installed baseline (apt update/upgrade, common tools, Docker, Tailscale)
- DNS fix required post-restart (resolv.conf reset to 100.100.100.100)
- Added DNS bootstrap systemd drop-in to prevent future DNS failures
- Configured static IP 192.168.1.103 (originally got .142 via DHCP)
- Added TUN device support via lxc.cgroup2 and lxc.mount.entry
**Headscale registration:**
- Created preauth key via `docker exec headscale headscale preauthkeys create --user 1 --expiration 24h --reusable`
- Registered successfully after DNS fix
- Assigned Tailscale IP: 100.64.0.25
---
## Verification Checklist
Run inside container to verify baseline:
```bash
pct exec 103 -- bash -c '
echo "=== CT Provisioning Check ==="
echo ""
echo "Hostname: $(hostname)"
echo "User zvx: $(id zvx 2>/dev/null && echo OK || echo MISSING)"
echo "sudo: $(sudo -l -U zvx 2>/dev/null | grep -q ALL && echo OK || echo MISSING)"
echo "sshpass: $(which sshpass >/dev/null 2>&1 && echo OK || echo MISSING)"
echo "SSH: $(systemctl is-active ssh)"
echo "Docker: $(docker --version 2>/dev/null || echo MISSING)"
echo "Tailscale: $(tailscale status --self 2>/dev/null | head -1 || echo NOT CONNECTED)"
echo "Tailscale IP: $(tailscale ip -4 2>/dev/null || echo N/A)"
echo "Local IP: $(hostname -I | awk \"{print \$1}\")"
'
```
**Expected output:**
```
=== CT Provisioning Check ===
Hostname: argus
User zvx: uid=1000(zvx) gid=1000(zvx) groups=1000(zvx),27(sudo),990(docker) OK
sudo: OK
sshpass: OK
SSH: active
Docker: Docker version 29.5.3, build d1c06ef
Tailscale: 100.64.0.25 argus echo6 linux -
Tailscale IP: 100.64.0.25
Local IP: 192.168.1.103
```
---
## Known Issues & Resolutions
### Issue: DNS resolution fails after container restart
**Symptom:** `resolv.conf` gets reset to invalid nameserver (100.100.100.100), breaking apt and network connectivity.
**Root cause:** LXC containers sometimes reset DNS on boot before networking is fully initialized.
**Resolution:** Installed systemd drop-in (`/etc/systemd/system/tailscaled.service.d/dns-bootstrap.conf`) that sets fallback DNS before tailscaled starts. Prevents chicken-and-egg failure where Tailscale can't resolve vpn.echo6.co because DNS is broken.
### Issue: Tailscaled fails with "/dev/net/tun does not exist"
**Symptom:** Tailscaled crashes on startup with `CreateTUN("tailscale0") failed; /dev/net/tun does not exist`.
**Root cause:** Unprivileged LXC containers don't have access to /dev/net/tun by default.
**Resolution:** Recreated container as privileged (`--unprivileged 0`) and added TUN device to container config:
```
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
```
---
## Next Steps (Application Deployment)
1. **SearXNG deployment:** Docker container for self-hosted search aggregation
2. **LLM integration:** Local model for analysis (Ollama on cortex or self-hosted)
3. **Database:** SQLite for processed intel, possibly Qdrant for vector search (cortex:6333 available)
4. **Scheduler:** Cron or systemd timers for automated collection
5. **Web dashboard:** Flask/FastAPI for threat intel visualization
6. **Alerting:** Integration with Matrix/email for high-priority threats
---
## Operational Notes
- **Backup strategy:** TBD (Docker volumes + application data)
- **Log rotation:** TBD
- **Monitoring:** TBD (consider adding to WATCHTOWER ops dashboard)
- **Updates:** Standard Ubuntu + Docker update procedures
- **Resource scaling:** Can adjust cores/RAM via `pct set 103 -cores X -memory Y` (requires container restart)
---
## Related Documentation
- **CT provisioning:** `/home/zvx/projects/.ref/runbooks/ct-runbook.md`
- **ARGUS rules:** `~/.claude/rules/argus.md`
- **Environment:** `/home/zvx/projects/.ref/docs/hardware/environment.md`
- **Services:** `/home/zvx/projects/.ref/docs/services/services.md`
- **Headscale:** `/home/zvx/projects/.ref/docs/software/caddy.md` (dnsmasq split DNS)
---
## Quick Command Reference
```bash
# Container management (from Proxmox host)
pct start 103
pct stop 103
pct reboot 103
pct enter 103
# SSH access
ssh zvx@192.168.1.103
ssh zvx@argus # via Tailscale DNS
# Check Tailscale status
pct exec 103 -- tailscale status
pct exec 103 -- tailscale ip -4
# Docker commands (as zvx user)
ssh zvx@argus "docker ps"
ssh zvx@argus "docker compose up -d"
# View container config
cat /etc/pve/lxc/103.conf
# Check resource usage
pct status 103 --verbose
```
---
**Provisioned by:** Claude Code
**Container ready for:** ARGUS application deployment

View file

@ -1,3 +1,19 @@
---
title: IdahoMesh Tailnet Runbook
type: project
tags:
- mesh
- vpn
- auth
aliases: []
related:
- [[idahomesh-vpn-device-setup]]
- [[idahomesh-bridge-setup]]
- [[meshtastic-sidecar-node]]
- [[headscale-onboard-node]]
- [[caddy]]
updated: 2026-06-18
---
# IdahoMesh Tailnet Runbook
## Overview

View file

@ -1,3 +1,19 @@
---
title: Add PeerTube Channel
type: runbook
tags:
- media
- vpn
- auth
aliases: []
related:
- [[peertube-remote-runner]]
- [[ct-runbook]]
- [[recon-operations]]
- [[recon-service-integration]]
- [[proxmox-onboard-node]]
updated: 2026-06-18
---
# Add PeerTube Channel
## Overview

View file

@ -1,3 +1,19 @@
---
title: Authentik Access Groups
type: runbook
tags:
- auth
- mesh
- matrix
aliases: []
related:
- [[authentik-oidc-application]]
- [[authentik-create-invitation]]
- [[authentik]]
- [[deploy-livesync]]
- [[proxmox-onboard-node]]
updated: 2026-06-18
---
# Authentik Access Groups
Manage group-based application access via the Authentik API. No web UI interaction required.

View file

@ -1,3 +1,17 @@
---
title: Proxmox CT/LXC Provisioning Runbook
type: runbook
tags:
- proxmox
aliases: []
related:
- [[headscale-onboard-node]]
- [[proxmox-onboard-node]]
- [[proxmox-create-ubuntu-vm]]
- [[nordvpn-lxc]]
- [[meshtasticd-sim-nodes-runbook]]
updated: 2026-06-18
---
# Proxmox CT/LXC Provisioning Runbook
Every container gets the same baseline: local user, Tailscale, SSH, Docker, and common tools. No exceptions.

View file

@ -1,3 +1,18 @@
---
title: Meshtastic Sidecar Node — Modular Deployment Runbook
type: runbook
tags:
- mesh
- vpn
aliases: []
related:
- [[idahomesh-vpn-device-setup]]
- [[headscale-onboard-node]]
- [[meshtastic-headscale-runbook]]
- [[idahomesh-bridge-setup]]
- [[meshtasticd-sim-nodes-runbook]]
updated: 2026-06-18
---
# Meshtastic Sidecar Node — Modular Deployment Runbook
Deploy a Raspberry Pi node with a real Meshtastic radio and an operator-selected combination of software modules. Each module is self-contained — install only what the site needs.