Secure device association: templates from the manifest and loopback associations #18

Open
opened 2026-11-27 18:45:27 +00:00 by github-bot · 0 comments
Owner

@⁠landovg on GitHub · 2026-11-27 18:42 UTC · original

Titles that send game traffic through Windows.Xbox.Networking's secure device association (SDA) currently get nothing from it:

  • SecureDeviceAssociationTemplate.Templates is empty (inert row, statics slot 7).
  • GetTemplateByName returns an inert template.
  • CreateAssociationAsync fails as offline.

So there is no socket address to send to.

Proposal (implemented and tested on a branch, ready as a PR if the approach suits):

  • appx::inspect_manifest reads the windows.xbox.networking extension: socket descriptions and association templates.
  • A winrt/networking module gives real template objects from the title's own manifest.
  • Associations are Ready at once, and their remote socket address leads to a peer on this machine at the acceptor socket's port: ::1 by default, or the IP address in XV_SDA_PEER. A local server can then stand in for the remote device.
  • SecureDeviceAssociation.GetAssociationBySocketAddressBytes maps received datagrams back to their association.

Open questions for you:

  1. Is an environment variable (XV_SDA_PEER) acceptable for the peer, or should it be a config.ini setting (network.sda_peer)?
  2. Is defaulting to an IPv6 SOCKADDR_IN6 (::1) right for the titles you've seen? The IPv4 form is available through the setting.

🤖 Generated with Claude Code

**@⁠landovg** on GitHub · 2026-11-27 18:42 UTC · [original](https://github.com/sammwyy/xvalkyrie/issues/18) Titles that send game traffic through Windows.Xbox.Networking's secure device association (SDA) currently get nothing from it: - `SecureDeviceAssociationTemplate.Templates` is empty (inert row, statics slot 7). - `GetTemplateByName` returns an inert template. - `CreateAssociationAsync` fails as offline. So there is no socket address to send to. **Proposal** (implemented and tested on a branch, ready as a PR if the approach suits): - `appx::inspect_manifest` reads the `windows.xbox.networking` extension: socket descriptions and association templates. - A `winrt/networking` module gives real template objects from the title's own manifest. - Associations are Ready at once, and their remote socket address leads to a peer on this machine at the acceptor socket's port: `::1` by default, or the IP address in `XV_SDA_PEER`. A local server can then stand in for the remote device. - `SecureDeviceAssociation.GetAssociationBySocketAddressBytes` maps received datagrams back to their association. **Open questions for you:** 1. Is an environment variable (`XV_SDA_PEER`) acceptable for the peer, or should it be a `config.ini` setting (`network.sda_peer`)? 2. Is defaulting to an IPv6 `SOCKADDR_IN6` (`::1`) right for the titles you've seen? The IPv4 form is available through the setting. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:45:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/sammwyy--xvalkyrie#18
No description provided.