MAX_SOURCE_KEY_LENGTH

const val MAX_SOURCE_KEY_LENGTH: Int = 2048

Longest accepted canonical source key.

A key is a short kind prefix plus whatever the locator wraps, and the longest of those is a URI. 2048 characters is the practical ceiling browsers and proxies have settled on for a URL, which leaves generous headroom over any URI, file path, content hash, or connector id pair that shows up in practice.