Skip to content

Latest commit

 

History

History

armor-reactor-netty

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Netryx Armor

Reactor Netty Provider

This provider is used to integrate NetArmor Enhanced security features to Reactor Netty based servers.

Dependency

Gradle

implementation "org.owasp.netryx:reactor-netty-provider:1.0.1"

Maven

<dependency>
    <groupId>org.owasp.netryx</groupId>
    <artifactId>reactor-netty-provider</artifactId>
    <version>1.0.1</version>
</dependency>

Examples:

Spring Boot Reactive

@Component
public class NetArmorCustomizer implements NettyServerCustomizer {
    @Override
    public HttpServer apply(HttpServer server) {
        CommonSecurityConfig config = new CommonSecurityConfig(new CommonConfig());

        NetArmorPipeline armor = NetArmorPipeline.newBuilder(new ReactorNettyProvider(config))
            .intrusion(new MyIntrusionHandler()) // add your handlers
            .build();

        return armor.pipeline().configure(server);
    }
}