Commit Graph

7 Commits

Author SHA1 Message Date
Marcos Paulo e2bcfff5ab feat: add reader vote widget and vote-service
The skills-review desk is static, so "which draft would you ship?" needs a
stateful counterpart. vote-service is a small Go API on its own pod backed by
a JSON file on a ReadWriteOnce PVC, with one active vote per skill per source
IP as the anti-abuse rule and CORS (ALLOWED_ORIGIN) as the caller boundary.

Deployment notes that differ from the obvious path, all confirmed against the
live cluster: the image is side-loaded with `ctr image import` plus
`imagePullPolicy: Never` because kubelet has no credentials for the Nexus ref;
the pod is pinned to `kubernets` because the hostpath PV takes a nodeAffinity
for whichever node first binds it; and public exposure is Caddy on the VPS,
not the cloudflared tunnel.

The ingress controller runs with `use-forwarded-headers` off, so nginx
overwrites X-Forwarded-For with its own peer — every visitor would collapse
into one voter and each skill would cap at one vote overall. Caddy stamps the
true remote address into X-Client-IP, which nginx forwards untouched, and
clientIP() reads that first. Scoped to this app rather than flipping the
global flag, which would change client-IP handling for every other ingress.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 23:49:55 +00:00
Marcos Silva 9557957698 feat: expand skills review navigation and catalog 2026-09-04 13:28:06 -03:00
Marcos Silva 355a0b5600 feat: add skill preview search and diff 2026-09-04 09:45:14 -03:00
Marcos Silva 76d83c9cf9 feat: review Gustavo and Marcos submitted skills 2026-09-04 09:11:53 -03:00
Marcos Paulo 6ccc692759 fix: redact operational skill review sources 2026-09-04 04:37:04 +00:00
Marcos Paulo 94f3491d7a feat: organize guide into focused chapters 2026-09-04 03:52:36 +00:00
Marcos Silva 82fff29571 feat: add submitted skills review desk 2026-09-04 00:34:53 -03:00