Resolve "Binary upload ignores parameter identifier"

Closes #27 (closed)

Changes

Add a BinaryUploadParameterWhitelistInterceptor implements ServerInterceptor to reject all calls to CreateBinary(size, chunkCount, parameterId) with a parameter ID that is not explicitly whitelisted. This allows server implementers to easily protect their servers against unwanted binary uploads.

New API

// works with `List<String>` and `String...`
serverBuilder.addInterceptor(new BinaryUploadParameterWhitelistInterceptor(
    "org.silastandard/test/BinaryTransferTest/v1/Command/EchoBinaryValue/Parameter/FirstBinaryParameter",
    "org.silastandard/test/BinaryTransferTest/v1/Command/EchoBinaryValue/Parameter/SecondBinaryParameter"
));
Edited by Niklas Mertsch

Merge request reports

Loading