Skip to content

Sign-in mid-batch: session expiry, MFA and SSO through the OS keychain or a vault, never in logs #1893

Done

Description

@abrichr

When a session expires partway through a long worklist (HIPAA idle or absolute timers), the run must re-authenticate without any credential appearing in workflow parameters, receipts, report.json, traces or crash dumps. Inject credentials just in time into the login subflow from the macOS Keychain, Windows Credential Manager, the Linux Secret Service, the 1Password CLI (op://), Bitwarden or HashiCorp Vault, through one generic secret-provider interface. TOTP comes from the provider. SSO/SAML redirects (Entra, Okta) are followed as a recorded login subflow. A push-MFA prompt that needs a person pauses the run with a notification. The write in flight when the session expired is reconciled, never blindly replayed. Tests: forced expiry on the zen OpenEMR, plus a scan proving no secret appears in any artifact.

Activity

  1. added
    agent-ready
    claimed
    on Nov 4, 2026
  2. abrichr commented on Nov 5, 2026

    @abrichr
    MemberAuthor

    Claimed by Codex

  3. abrichr commented on Nov 20, 2026

    @abrichr
    MemberAuthor

    Extending this issue rather than filing a duplicate.

    The generic secret-provider interface described here (OS keychain, 1Password CLI, Bitwarden, HashiCorp Vault, TOTP from the provider, pause on push-MFA, no credential in parameters/receipts/logs) should also be the login path for governed form/portal runs (openadapt_flow.form_tx in OpenAdapt#2308). Today's BrowserAuthHandoff correctly carries zero credential fields, but nothing yet injects a vault-backed session or ties mid-run expiry/MFA to this provider. Operator-handled push-MFA should remain the fallback.

    Related, not substitutes: OpenAdapt#2294 (wrapped sign-in becomes secret parameters) and openadapt-cloud#461 (refuse ambiguous vault parameter bindings). Please keep one provider interface across wrap, form_tx, and mid-batch re-auth; no per-app login driver.

    No customer names or private draft text belong in this public thread. Private acceptance for upgrading internal pilot drafts is in openadapt-internal#100.

  4. abrichr commented on Nov 25, 2026

    @abrichr
    MemberAuthor

    Mid-run sign-in second-factor pause/handoff and terminal MFA flow shipped in PRs #2363 (860c2008b) and #2368 (31b6dcd6a), alongside opted-in Chrome profile auth in #2358 (28c182bf9).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyclaimed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions