Repository navigation
Adds the contract for a connector to report who a source says may read an item, so the host can mirror those permissions instead of discarding them.
Until now ingestion had nowhere to put that fact. A file shared with three people upstream became visible to everyone in the project the moment it was ingested, because project membership was the only gate and it is far coarser than what the source actually said.
New
SourcePrincipal— one entry in a source's permission list: user, group, domain or anyone, allow or deny. The external identifier is kept verbatim; normalising it here would destroy the only thing the host can match on, and every source spells identity differently.SourceAccess— the list, plus the two ways it can be incomplete.inheritsFromParentmeans "as the folder says";complete: falsemeans "we could not find out". Neither may be read as "nobody", which is why they are separate flags rather than an empty array.SupportsSourceAcl— the opt-in capability. Detected viainstanceof, never by connector name (R23).BaseConnector::withSourceAccess()— writes the DTO into ingestion metadata so no call site handles the reserved key by hand.
The ingestion contract is unchanged. An optional trailing parameter on dispatchIngestion() was tried first and reverted: PHP rejects an implementation declaring fewer parameters than its interface, so even an optional one is a breaking change for every HOST that implements the contract — it fatals at class-declaration time on upgrade, before any of its own code runs. Connectors are callers and would have been fine; hosts are not. The list travels in $metadata instead.
Fully backward compatible. A connector that does not implement the capability behaves exactly as it does today, and none of the eleven existing connectors change.
123 tests, 306 assertions.