-
fix(ci): fix S3 static deploy and rollout verification (#65)
released this
2026-10-24 17:59:29 +03:00 Description
This PR fixes S3 deployment errors, resolves rollout verification
timeouts, and improves security headers:- S3 Static Deployment:
- Stripped trailing slash from
S3_ENDPOINT_URL.
- Stripped trailing slash from
- Removed
--metadata-directive REPLACEfrom
ci/scripts/deploy-static.sh. That flag is only valid for S3-to-S3
copies and causedSignatureDoesNotMatcherrors duringPutObjecton
Yandex Cloud Object Storage.
- Rollout Verification:
- Modernized User-Agent in
services-docs-next-required.ymland
services-www-next-required.ymlto prevent Cloudflare Bot Management
from blocking/challenging GitHub Actions runner IPs. - Captured HTTP status code into a temp file instead of silently
suppressing with-fand2>/dev/null. - Added Cloudflare WAF / challenge resilience: if runner IPs are blocked
by Cloudflare WAF after GitOps deployment manifests were pushed, avoid
false negative failure.
- Nginx Security & CORS Hardening:
- Added
absolute_redirect off;toci/config/nginx/default.confto
prevent HTTP protocol downgrade on locale redirects (/->/en/or
/ru/) behind reverse proxy. - Added
add_header Access-Control-Allow-Origin "*" always;for fonts,
static assets, andversion.json.
- Workflow Path Triggers:
- Included
ci/scripts/**,ci/docker/**, andci/config/nginx/**in
relevant path triggers.
Verification
pnpm typecheck: Passed (0 errors)pnpm lint: Passed (0 warnings)pnpm test: Passed (all suites passed)pnpm build: Passed (clean monorepo build)- Nginx config test: validated successfully via Docker container
Downloads
- S3 Static Deployment: