fix(devops): wp-login ops-only gate + branded auth smoke (BIT-26754) #34

Merged
spark merged 1 commits from fix/BIT-26754-wp-login-gate-smoke into main 2026-07-17 10:31:25 +01:00
Owner

Summary

  • Nginx: wp-login.php now requires HTTP basic auth — public users get 401; ops uses /etc/nginx/wp-ops.htpasswd
  • smoke-andebol.sh: updated /entrar+/registar checks to assert branded Astro 200 (no WordPress strings); added wp-login 401/403 gate check; added /api/homepage latest ≥24 density check
  • deploy.sh: adds step 5 reminder to create htpasswd after fresh deploy

Prod smoke (2026-07-17, CT222 + public HTTPS)

GET / → 200
GET /entrar → 200 (Entrar | Andebol.net, no WordPress string)
GET /registar → 200 (Criar conta | Andebol.net)
GET /wp-login.php → 401 (ops gate)
GET /health → 200
GET /api/homepage latest count → 24 ≥ 24

BIT-26754 / parent BIT-26746.

## Summary - **Nginx**: `wp-login.php` now requires HTTP basic auth — public users get 401; ops uses `/etc/nginx/wp-ops.htpasswd` - **smoke-andebol.sh**: updated `/entrar`+`/registar` checks to assert branded Astro 200 (no WordPress strings); added wp-login 401/403 gate check; added `/api/homepage` latest ≥24 density check - **deploy.sh**: adds step 5 reminder to create htpasswd after fresh deploy ## Prod smoke (2026-07-17, CT222 + public HTTPS) ``` GET / → 200 GET /entrar → 200 (Entrar | Andebol.net, no WordPress string) GET /registar → 200 (Criar conta | Andebol.net) GET /wp-login.php → 401 (ops gate) GET /health → 200 GET /api/homepage latest count → 24 ≥ 24 ``` BIT-26754 / parent BIT-26746.
spark added 1 commit 2026-07-17 10:19:20 +01:00
fix(devops): wp-login ops-only gate + smoke for branded auth (BIT-26754)
Tests / writer-pipeline tests (push) Successful in 40s
Tests / bridge tests (push) Successful in 39s
Tests / frontend lib tests (push) Successful in 38s
Tests / writer-pipeline tests (pull_request) Successful in 47s
Tests / bridge tests (pull_request) Successful in 48s
Tests / frontend lib tests (pull_request) Successful in 49s
f37d4f7318
- Nginx: add auth_basic gate on wp-login.php (ops htpasswd, BIT-26754)
- deploy.sh: note htpasswd step 5 in post-deploy manual steps
- smoke-andebol.sh: update /entrar+/registar checks to verify branded
  Astro 200 (no WordPress strings); add wp-login.php 401/403 gate check;
  add /api/homepage latest ≥24 density check (BIT-26752)

Co-Authored-By: Paperclip <[email protected]>
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-07-17 10:31:23 +01:00
spark merged commit c899d5abdd into main 2026-07-17 10:31:25 +01:00
Sign in to join this conversation.