Updates CustomBlockHoundIntegration to whitelist more netty

This commit is contained in:
Spencer Gibb
2020-01-31 11:39:14 -05:00
parent 4243621d2f
commit 2a3389e6a7

View File

@@ -25,10 +25,15 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
@Override
public void applyTo(BlockHound.Builder builder) {
/*
* builder.blockingMethodCallback(it -> { Error error = new Error(it.toString());
* error.printStackTrace(); throw error; });
*/
// builder.blockingMethodCallback(it -> {
// Error error = new Error(it.toString());
// error.printStackTrace();
// throw error;
// });
// Uses Unsafe#park
builder.allowBlockingCallsInside("reactor.core.scheduler.SchedulerTask",
"dispose");
// Uses
// ch.qos.logback.classic.spi.PackagingDataCalculator#getImplementationVersion
@@ -69,6 +74,12 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
"execute");
builder.allowBlockingCallsInside(
"io.netty.util.concurrent.SingleThreadEventExecutor$6", "run");
// builder.allowBlockingCallsInside("io.netty.util.concurrent.GlobalEventExecutor",
// "takeTask");
// builder.allowBlockingCallsInside("io.netty.util.concurrent.GlobalEventExecutor",
// "addTask");
builder.allowBlockingCallsInside(
"io.netty.util.concurrent.FastThreadLocalRunnable", "run");
// SECURITY RELATED