Repository navigation
feat(verify): harden readonly browser verify and summary output - #2
Conversation
Co-authored-by: Antigravity <noreply@google.com>
|
Autoland: waiting: AI review evidence for this head |
AI Code Review (opencode /
|
AI assistance
What changed
scripts/sign_readonly_session.py(verify_readonly_token) to validate integeriat/exp, reject future-issued tokens (iat > now + 60), and enforce bounded token lifetime (0 < exp - iat <= MAX_TTL_SECONDS).scripts/playwright_readonly_verify.mjs:isUnexpectedLoginRedirect,sanitizePathName,buildSummaryPayload) with apathToFileURLCLI entrypoint guard.VERIFY_REJECT_LOGIN_REDIRECT(default"true") failing when a non-login path redirects to/loginor/auth/.VERIFY_SUMMARY_PATHemitting a sanitized JSON report (HTTP status, final path, selector match, load timing, error counts) with zero cookies or page text..github/workflows/live-readonly-verify.ymlto acceptpushonrefs/heads/main(supporting post-deploy chaining) alongsideworkflow_dispatch, and to upload the sanitized JSON summary artifact.tests/test_readonly_session.pyandtests/test_playwright_readonly_verify.mjs.How verified
python3 -m unittest discover -s tests -v-> all passed.node --test tests/test_playwright_readonly_verify.mjs-> all passed./usr/local/bin/gitleaks git --log-opts="origin/main..HEAD" --redact->no leaks found.Risk
Low: backward-compatible additions (
workflow_dispatchcontinues unchanged;reject_login_redirect&upload_summarycan be toggled per caller; only metadata counts leave the workflow summary).