Skip to content

MXC session management (Entra Agent Sessions + WAM helper) #849

Closed as not planned

Description

@samanthamsong

Epic: «Secure & contained node (MXC)» (#837)
Backlog Doc ID: #4 · Priority: P1 · Area: containment

Description
Integrate Entra Agent Sessions and WAM Helper. OpenClaw needs an Entra Agent User WAM token (probably not via wam-helper-cli.exe). Node side needs UX updates.

Definition of done
Agent sessions authenticate via the agreed Entra/WAM path with Node UX in place.

Part of the «Secure & contained node (MXC)» tracking issue (#837).

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 29, 2026, 4:45 PM ET / 20:45 UTC.

    Summary
    Keep open. This is a collaborator-authored, security-sensitive MXC feature request with an explicit maintainer product-decision signal, and current evidence shows MXC containment exists without the requested Entra Agent Sessions or WAM token path. It needs an approved identity, token-handling, and Windows-node UX design before implementation.

    Reproducibility: not applicable. as a bug reproduction. This is a new Entra/WAM session capability request, and the central behavior is not an established current product contract with a failing reproduction path.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Maintainer decision needed

    Question Recommendation
    Which supported Entra/WAM token-acquisition and session-binding model may the Windows node use for MXC, including storage, renewal, consent, and interaction with the existing gateway credential precedence? Define a supported Entra session contract: Specify the WAM acquisition mechanism, token scope and storage rules, session-to-MXC binding, UX, and migration behavior before creating a scoped implementation plan.

    Why: The request introduces a new identity and credential boundary. Source evidence does not establish an approved WAM helper mechanism or a safe compatibility contract, so implementation choices cannot be made safely by automation.

    Next step
    Security-sensitive product direction and collaborator ownership require an explicit maintainer decision; no autonomous repair lane is safe before the identity contract is defined.

    Security
    Needs attention: This issue is security-sensitive because it proposes a new Entra/WAM credential path and does not yet define the token lifecycle or authorization boundary.

    Review details

    Best possible solution:

    Agree a narrow Entra/WAM session-security contract first, then implement one audited token broker and explicit node UX that preserves existing gateway credential behavior and proves token isolation through the real MXC path.

    Do we have a high-confidence way to reproduce the issue?

    Not applicable as a bug reproduction. This is a new Entra/WAM session capability request, and the central behavior is not an established current product contract with a failing reproduction path.

    Is this the best way to solve the issue?

    No. Current MXC containment is necessary groundwork but is not a safe substitute for the requested identity flow; the best solution is an approved security and compatibility design before code or UI work begins.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The requested flow does not define the approved WAM acquisition mechanism, token audience and lifetime, storage boundary, consent behavior, or how an Entra agent session binds to gateway and MXC authorization.
    • Adding identity acquisition beside the existing device/shared/bootstrap credential model without a migration and precedence design could create credential confusion or weaken containment guarantees.

    Codex review notes: model internal, reasoning high; reviewed against c04c5fb06238.

    Label changes

    Label changes:

    • remove clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.

    Label justifications:

    • P1: The issue concerns a missing security and authentication capability in the active MXC containment program, with an existing maintainer-applied P1 priority.
    • impact:security: The requested WAM and Entra session integration would create and handle security-sensitive agent credentials across the node and MXC boundary.
    • impact:auth-provider: The requested behavior changes how agent identity tokens are acquired and used alongside the current gateway credential model.
    Evidence reviewed

    Security concerns:

    • [high] Define WAM token and session boundaries
      The request does not specify acquisition, consent, storage, renewal, audience restrictions, or how an Entra token authorizes an MXC session; those choices must be settled before implementation.
      Confidence: 0.93

    What I checked:

    • Current MXC baseline: Current-main configuration and public capability documentation establish an MXC-backed system.run containment path. That is command-execution isolation, not an Entra Agent Sessions or WAM token-acquisition implementation. (src/OpenClaw.Shared/SettingsData.cs:117, c04c5fb06238)
    • Requested identity path remains absent: A current repository-wide capability search for Entra, WAM, wam-helper, and Agent Sessions found no implemented Windows-node identity flow matching the requested Entra Agent User WAM token behavior; current documentation instead describes gateway pairing and MXC execution containment. (README.md, c04c5fb06238)
    • Existing tracking structure: The issue is a distinct child of the still-open MXC dependency epic, whose definition of done separately lists MXC session management and Entra agent sessions. The epic is tracking context, not a merged replacement for this work.
    • Feature-history routing: Public repository history associates the recent MXC execution and preflight work with PRs 480 and 487, making their contributors the strongest available routing candidates for the existing containment boundary. Neither establishes the requested WAM/Entra session contract. (src/OpenClaw.Shared/Mxc)

    Likely related people:

    • shanselman: Public repository history identifies this person with MXC preflight work and the issue timeline records their P1 prioritization of this security-containment item. (role: recent MXC area contributor; confidence: medium; files: src/OpenClaw.Shared/Mxc, README.md)
    • bkudiess: Public repository history identifies this person with direct MXC execution work, adjacent to the command boundary that an Entra-backed session design would need to protect. (role: recent MXC execution contributor; confidence: medium; files: src/OpenClaw.Shared/Mxc)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:security
    impact:auth-provider
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    on Jun 26, 2026
  3. added
    P1
    and removed
    P2
    on Jun 26, 2026
  4. added theissue type on Jun 26, 2026
  5. moved this from Backlog to Containment in Windows Companion Appon Jul 13, 2026
  6. github-actions commented on Jul 25, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  7. removed
    clawsweeper:needs-maintainer-review
    on Jul 29, 2026
  8. github-actions commented on Aug 14, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  9. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  10. locked as resolved and limited conversation to collaborators on Aug 24, 2026
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

    P1clawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:auth-providerimpact:securityissue-rating: 🌊 off-meta tidepoolstale

    Type

    Fields

    Priority

    High

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions