gates / gates (push) Successful in 3m34s
- Golden 0.352.0: bake, publish, one fresh install, the operator's vouch (R-468). - No clone holds a login in its address; the credential helper script is in the repository (R-925, R-1390). - N100 clock: a stale cached AppArmor profile stops chrony (R-1301, new R-1388). Read only. - Certificate pin spike on demo-hp (R-1380): the break, the proven hand repair (runbook), the CA-file test, 03-host-agent.md 12a, decision D80. - Rulings of 13:17 written down (09 decisions 297-302). Register 245 -> 248 (R-1388, R-1389, R-1390). - Docs, evidence and one helper script. No release, no floor change, no hub deploy. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
42 lines
2.6 KiB
Bash
42 lines
2.6 KiB
Bash
main() {
|
|
echo "== $(hostname) $(date -u +%FT%TZ) pve $(pveversion | head -1)"
|
|
echo "== served certificate (network read, 127.0.0.1:8006)"
|
|
echo | openssl s_client -connect 127.0.0.1:8006 2>/dev/null | openssl x509 -noout -subject -issuer -dates -fingerprint -sha256 -ext subjectAltName 2>/dev/null
|
|
echo "== files"
|
|
ls -la --time-style=full-iso /etc/pve/local/ /etc/pve/pve-root-ca.pem /etc/pve/priv/pve-root-ca.key 2>&1 | cut -c1-140
|
|
for f in /etc/pve/local/pve-ssl.pem /etc/pve/pve-root-ca.pem; do echo "-- $f"; openssl x509 -in $f -noout -subject -issuer -dates -fingerprint -sha256; done
|
|
ls /etc/pve/local/pveproxy-ssl.pem 2>&1
|
|
echo "== agent"
|
|
/usr/local/bin/felhom-agent --version; systemctl is-active felhom-agent; systemctl show felhom-agent -p ActiveEnterTimestamp -p NRestarts -p Restart
|
|
python3 - <<'PY'
|
|
import json
|
|
c=json.load(open('/etc/felhom-agent/agent.json'))
|
|
p=c.get('proxmox',{})
|
|
print('proxmox keys:',sorted(p.keys()))
|
|
for k,v in p.items():
|
|
if k=='tls': print('tls:',v)
|
|
elif 'secret' in k.lower() or 'token' in k.lower(): print(k,': <present>' if v else ': <empty>')
|
|
else: print(k,':',v)
|
|
PY
|
|
ls -la --time-style=full-iso /etc/felhom-agent/ | cut -c1-120
|
|
systemctl cat felhom-agent | grep -i -n 'Environment\|ExecStart\|User='
|
|
echo "== agent log, last proxmox lines"
|
|
journalctl -u felhom-agent --since '-20 min' --no-pager -o cat | grep -i -c .
|
|
journalctl -u felhom-agent --since '-20 min' --no-pager -o cat | cut -c1-230 | tail -8
|
|
echo "== who calls port 8006 (pveproxy access log, client addresses, last 2 days)"
|
|
for f in /var/log/pveproxy/access.log /var/log/pveproxy/access.log.1; do [ -f $f ] && awk '{print $1}' $f; done | sort | uniq -c | sort -rn | head
|
|
echo "-- users seen"
|
|
for f in /var/log/pveproxy/access.log /var/log/pveproxy/access.log.1; do [ -f $f ] && awk '{print $1, $3}' $f; done | sort | uniq -c | sort -rn | head
|
|
echo "== listening / other TLS users of this cert"
|
|
ss -ltnp | grep -E ':8006|:3128|:8007|:85 ' | cut -c1-150
|
|
echo "== in flight"
|
|
pvesh get /cluster/tasks --output-format json 2>/dev/null | python3 -c "import json,sys; t=json.load(sys.stdin); r=[x for x in t if not x.get('endtime')]; print('running tasks:',[(x['type'],x.get('id')) for x in r])"
|
|
qm list; pct list
|
|
echo "== tools' own help"
|
|
pvecm help updatecerts 2>&1 | head -20
|
|
pvenode help cert 2>&1 | head -30
|
|
echo "== renew rule in code"
|
|
grep -n -i 'expir\|renew\|check_expiry\|2 \* 365\|730\|days' /usr/share/perl5/PVE/Cluster/Setup.pm | head -30
|
|
grep -rn -i 'renew\|check_expiry\|updatecerts' /usr/share/perl5/PVE/Service/pveproxy.pm /usr/bin/pve-daily-update /usr/share/perl5/PVE/CLI/pveupdate.pm /usr/bin/pveupdate 2>/dev/null | head -20
|
|
}; main </dev/null
|