AO Servlet Firewall WebJars

project: alphamanagement: previewpackaging: developmental
java: >= 7java ee: >= 6semantic versioning: 2.0.0license: LGPL v3

AO Servlet Firewall rules for WebJars.

Features

  • Reserves greedy Path Space for /webjars/*** (no components in sub-paths may be added).
  • Constrains request method to OPTIONS, HEAD, and GET.
  • TODO: Block all parameters for canonicalization? Only allow LastModified? 301/302/307 redirect LastModified when doesn't match current LastModified (impact on clustering?)?
  • Small footprint, minimal dependencies - not part of a big monolithic package.
  • Java 1.7 implementation:
    • Java EE 6+ compatible.

Motivation

WebJars are wonderfully easy-to-use, just add a dependency to your project and off you go. This project reserves Path Space for /webjars/*** and opens the AO Servlet Firewall to OPTIONS, HEAD, and GET. Just add this project as an additional dependency and the firewall rules are ready-to-go (assuming metadata-complete="false" in /WEB-INF/web.xml).