fix(homelab-wiki): per-host tokens via X-DokuWiki-Token, password-file unlock #19
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ai-collab/agents!19
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/homelab-wiki-per-host-tokens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the homelab-wiki helper failing with 401 on every call.
Why the helper got 401s: the helper sent
Authorization: Beareror fell back to HTTP Basic. theboss dropsAuthorization, and the vault item had no token field, so every call went out with Basic auth and failed. Each wiki (hlw.valleygeek.net, hlw.loopcamp.win) also issues its own tokens, so one token cannot serve both hosts.Helper (
skills/homelab-wiki/scripts/wiki.py):--wiki-base:api_tokenor/home/box/.secrets/dokuwiki-hlw-tokenapi_token_loopcampor/home/box/.secrets/dokuwiki-hlw-loopcamp-token--token-source auto|file|vault; auto uses the host token file when it exists, else the vault fieldX-DokuWiki-Token, always with a browser User-Agent; Bearer and Basic are removedBW_PASSWORD/VAULTWARDEN_PASSWORD, or silently from a 0600 file named byBW_PASSWORDFILE/BW_PASSWORD_FILE/VAULTWARDEN_PASSWORD_FILE(the same convention aswith-secrets)validatechecks identity withcore.whoAmI(must be grok); newwhoamisubcommand that prints no emailDocs:
configs/_shared/homelab-wiki.md(vault item name was stale; now has the per-host token table and operator setup),loopcamp.md, grok-build README, and the skills and configs READMEsskills/homelab-wiki/env.exampleTests (Bot box, no secrets printed):
Also tested: an env using the
BW_PASSWORDFILEkey works; an env with no password key, an unknown host, and an http base all fail cleanly.