Repository navigation
ci(qa): fetch login-email-password runtime credentials from Testbed via OIDC (#216) - #5509
Open
stamp-build[bot] wants to merge 2 commits into
Open
stamp-build[bot] wants to merge 2 commits into
stamp-build[bot] wants to merge 2 commits into
Conversation
…ia OIDC (#216) Replace the manual QA_LOGIN_ACCEPTANCE_EMAIL / QA_LOGIN_ACCEPTANCE_PASSWORD repository secrets with runtime credential delivery from Testbed's POST /api/agent/run-cases/{run_case_id}/login-acceptance-input endpoint using include_credential: true (Testbed #347). - Extend testbed_release_settings.mjs loginAcceptanceInput({ includeCredential }) and handle 503 LOGIN_ACCEPTANCE_CREDENTIAL_UNAVAILABLE fail-closed. - Update testbed_login_acceptance_input.mjs (--include-credential) to write only the six target fields to input.json and credential {email, password} separately to a runner-owned 0700/0600 file (/login-acceptance-credential/account), stopping fail-closed and cleaning both files if either field is absent/invalid. - Update visible_servers_probe.mjs to read --credential-file non-destructively so preflight and Android login_phase.mjs consume the exact same 0600 file with zero fallback to QA_TEST_* or legacy env vars; harden readCredentialFile with O_NOFOLLOW + uid ownership check. - Update secure_evidence.mjs (runGate) to re-fetch the runtime credential in memory via Testbed OIDC (never written to disk) when scanning login-email-password evidence, failing closed (UNKNOWN) if the credential cannot be obtained. - Remove all QA_LOGIN_ACCEPTANCE_* repository secret references and the static Stage login acceptance credential step from .github/workflows/qa-acceptance.yml and update scripts/ci/check_workflow_secret_env.py pins and mutants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ptance evidence scan (#216) Address Argus's review of #5509: - Pass redirect: 'manual' on both OIDC token acquisition (requestOidcToken) and Testbed POST calls in testbed_release_settings.mjs, failing immediately on any 3xx status (oidc_redirect_refused / <endpoint>_http_<3xx>) with zero retries, zero redirect following, and no files written. - Scan every non-empty runtime acceptance email and password in secure_evidence.mjs without the legacy >= 4 length filter, fail closed (UNKNOWN, secrets_checked: false) if either acceptance credential field is missing/uncheckable, and scan both raw bytes, JSON-literal-escaped strings, and parsed JSON/JSONL string trees so short passwords and JSON-escaped secrets in verdict.json are always caught. - Add loopback 3xx redirect tests in testbed_login_acceptance_input.test.mjs and short-password, JSON-escaped, and incomplete-credential tests in login_phase.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QA_LOGIN_ACCEPTANCE_EMAIL/QA_LOGIN_ACCEPTANCE_PASSWORDGitHub repository secrets with runtime credential retrieval from Testbed'sPOST /api/agent/run-cases/{run_case_id}/login-acceptance-inputendpoint (include_credential: true, aligned with botiverse/testbed#347).testbed_login_acceptance_input.mjs --include-credential: validates the 6 target fields +credential: { email, password }, writes ONLY the 6 target fields to$RUNNER_TEMP/testbed-login-acceptance/input.json(0700/0600) and writescredentialseparately to$RUNNER_TEMP/login-acceptance-credential/account(0700/0600). Stops fail-closed (removing any stale files) on missing/malformed fields or503 LOGIN_ACCEPTANCE_CREDENTIAL_UNAVAILABLE.visible_servers_probe.mjs: reads--credential-filenon-destructively (no fallback toQA_TEST_*or env) so preflight andlogin_phase.mjs --consume-credential-fileconsume the exact same 0600 file. HardensreadCredentialFilewithO_NOFOLLOW+fstatuid ownership checks.secure_evidence.mjs: forlogin-email-password, fetches the runtime credential in memory via Testbed OIDC (never written to disk) before scanning/redactingqa-evidence/(includingverdict.json), failing closed (UNKNOWN, deleting evidence) if unavailable..github/workflows/qa-acceptance.yml&scripts/ci/check_workflow_secret_env.py: removes theStage login acceptance credentialstep and allsecrets.QA_LOGIN_ACCEPTANCE_*references; pins and mutant-tests that neitherQA_LOGIN_ACCEPTANCE_*norQA_TEST_*can leak intologin-email-password.Verification
node --test scripts/qa/*.test.mjs: 433 passed, 0 failed (1 skipped)python3 scripts/ci/check_workflow_secret_env.py: passedpython3 scripts/ci/check_workflow_secret_env.py --self-test: 106 cases, 0 failedpython3 scripts/ci/check_source_constraints.py: passed🤖 Generated with Claude Code