WIP: Draft: fix(#3): Harden ops security — auth /update_terms, ADMIN_TOKEN, redirect allowlist, trusted XFF #21
No reviewers
Labels
No labels
agent:implement
agent:ready
api
bot
bug
ci
enhancement
ready
security
terra-classic
testing
ux
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-ecosystem-legal!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "3-security-ops-auth-update-terms-harden-admin-token-redirect-uri-allowlist-trusted-xff"
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?
Summary
Closes the portal/API ops security bundle from issue #3 / gap items 4–7:
POST /update_termswithADMIN_TOKENBearer (POST-only; auth before 1 req/s limit)ADMIN_TOKEN(no silentdev-admin-token;ALLOW_INSECURE_DEFAULTSlocal opt-in)subtle) shared by admin + update_termsredirect_uriallowlist (VITE_REDIRECT_URI_ALLOWLIST/ localhost flag); SDKsanitizeRedirectUriTRUSTED_PROXY_CIDRSenables XFF (rightmost hop)GET /healthfor readiness (e2e/CI); docs +skills/security-ops/SKILL.mdTest plan
cd api && cargo test(unit + integration auth)/health→ okADMIN_TOKENset;TRUSTED_PROXY_CIDRSonly if behind reverse proxy; setVITE_REDIRECT_URI_ALLOWLISTfor real dapp originsAcceptance criteria (issue #3)
/update_terms→ 401; authenticated still syncsredirect_uri.env.example+ CI/e2e updatedCloses #3
Closes #3
Pull request closed