[Feature Request] XDRIVE: Add configurable object naming for storage backends
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/endmarkers, 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.
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).
yes