Preflight checklist for auth-dependent work: verify the active credential lane, runtime environment, scopes, and smallest safe live probe before writing, dep...
---
name: auth-preflight-checklist
version: 1.0.0
description: "Preflight checklist for auth-dependent work: verify the active credential lane, runtime environment, scopes, and smallest safe live probe before writing, deploying, or debugging provider integrations."
author: nissan
tags:
- auth
- operations
- preflight
- security
metadata:
openclaw:
emoji: "🔐"
network:
outbound: false
---
# Auth Preflight Checklist
Use before auth-dependent docs, troubleshooting, cron jobs, deploys, API integrations, or any task where the result depends on a token, service account, OAuth session, 1Password item, gateway model route, deploy key, or approval flag.
## Rule
Do not infer auth from configuration alone. Prove the same runtime that will do the work can access the credential and complete the smallest safe live action.
## Checklist
1. Identify the active auth lane.
- Human OAuth, Codex subscription, OpenClaw gateway, raw API key, 1Password service account, deploy key, GitHub App, or provider token.
- Runtime: interactive shell, LaunchAgent, cron, OpenClaw gateway, subagent, CI, VPS, container, or browser session.
2. Verify secret source and runtime agree.
- Confirm the expected vault/item/field or env var name.
- Check presence only; never print secret values.
- If the job runs under launchd/cron/container, verify inside that environment or with an equivalent env capture.
3. Run the smallest live probe.
- Notion: retrieve bot/user or target database.
- GitHub: read repo metadata or list app installation access.
- Vercel/Coolify: read project/app metadata before deploy.
- OpenClaw/Codex: run a tiny gateway model smoke test.
- 1Password: read the exact item field with bounded retry.
4. Check scopes and target access.
- Token exists is not enough.
- Confirm the token can access the specific database, repo, branch, app, project, model route, or webhook target.
5. Fail with a useful blocker.
- Include missing auth lane, expected secret reference, runtime, probe command, response class, and next owner/action.
- Do not continue into writes/deploys after 401/403/missing scope unless the task explicitly asks for forensic collection only.
## Completion Evidence
Auth work is not complete until one is true:
- Preflight command passed in the same runtime lane.
- Live action succeeded and produced the expected artifact.
- Blocker is recorded with exact missing credential/scope/approval and next action.
For OpenClaw model calls in scheduled scripts, prefer gateway/Codex routing. A missing raw OPENAI_API_KEY is not a failure if the OpenClaw gateway smoke test proves the Codex-backed route works.
don't have the plugin yet? install it then click "run inline in claude" again.
added explicit inputs with external connection setup (env var names, OAuth scopes), expanded procedure with concrete probe examples and input/output per step, added comprehensive decision points for 401/403/timeout/missing-secret scenarios, documented edge cases like token expiry and rate limits, structured output contract with file locations and JSON schema, and clarified outcome signals with pass/fail criteria.
run this checklist before any auth-dependent task: docs, troubleshooting, cron jobs, deploys, API integrations, or anything where the result depends on a token, service account, OAuth session, 1Password item, gateway model route, deploy key, or approval flag. the goal is simple: do not infer auth from configuration alone. prove the same runtime that will do the work can access the credential and complete the smallest safe live action. this prevents silent failures, scope mismatches, and wasted debugging time.
NOTION_TOKEN or NOTION_API_KEY); scope: read database contents and metadataGITHUB_TOKEN or GITHUB_APP_ID + GITHUB_APP_PRIVATE_KEY); scope: repo read, app installation accessVERCEL_TOKEN); scope: project read, deployment readCOOLIFY_API_TOKEN); scope: app/project readOPENAI_API_KEY or Codex subscription via gateway); scope: model routing, inferenceOP_SERVICE_ACCOUNT_TOKEN or ONEPASSWORD_CONNECT_TOKEN); scope: read vault item fieldsidentify the active auth lane.
GITHUB_TOKEN env var")document the runtime environment.
verify secret source and runtime agreement.
ssh into container && echo $MY_SECRET_NAME or launchctl getenv MY_SECRET_NAME)run the smallest live probe.
curl -H "Authorization: Bearer $NOTION_TOKEN" https://api.notion.com/v1/users/me or equivalent client callgh api repos/{owner}/{repo} or curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/{owner}/{repo}op item get <item-id> --vault <vault-name> --fields label=<field-name>check scopes and target access.
gh api user for GitHub, or JWT decode for OAuth tokens)fail with a useful blocker if any step fails.
on success, produce:
auth_lane, runtime, secret_reference, probe_command, probe_status, scopes_verified, target_resource_access, timestampon failure, produce:
failure_point (which step failed), auth_lane (what was attempted), secret_reference (where it was looked for), runtime (where it was checked), probe_command (exact command run), error_code (401, 403, timeout, missing, etc.), error_message (full text), next_action (who to contact, what to do), timestampyou know the preflight passed when:
you know it failed when:
do not proceed to writes, deploys, or sensitive operations until all preflight steps pass or explicit forensic-collection-only mode is declared.