Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

[Feature Request] XDRIVE: Add configurable object naming for storage backends

Open wewon-backdown opened this issue 1 month ago • 2 comments

Is your feature request related to a problem?

XDRIVE uses predictable object naming patterns containing session IDs and protocol-specific markers such as seg and end.

These patterns make XDRIVE activity easily identifiable by cloud storage providers, even when the content itself is encrypted.

Describe the solution you'd like

Add configurable object naming to xdriveSettings, allowing object keys to be fully obfuscated instead of exposing XDRIVE's internal naming conventions.

For example (proposed configuration):

"xdriveSettings": {
  "service": "template",
  "objectNaming": {
    "mode": "opaque",
    "secret": "<shared-secret>",
    "encoding": "base64url"
  }
}

The naming mechanism should:

  • Hide session IDs, seg/end markers, and other recognizable naming patterns.
  • Generate deterministic, reversible opaque names so both endpoints can identify the same objects.
  • Preserve existing naming behavior when the option is disabled.

Describe alternatives you've considered

Maintaining a custom Xray-core fork or using an external storage proxy to rewrite object keys.

Additional context

This is especially relevant for S3-compatible storage providers using the XDRIVE template backend, where object keys are visible to the storage provider.

wewon-backdown avatar Oct 17 '26 18:10 wewon-backdown

Related history, in case it is useful: this class was proposed in #6789 (configurable object names for xdrive) and closed in September. The position then was core functionality first, with such obfuscation parameters to be added slowly and in a targeted way once related blocking actually appears (RPRX), and that renaming does not remove the stronger signal, since the storage provider can observe the high-frequency write/read/delete pattern itself (Fangliding).

thatssoheil avatar Oct 17 '26 23:10 thatssoheil

yes

Fangliding avatar Oct 19 '26 14:10 Fangliding