Optional Jakarta Bean Validation integration backed by ESAPI Validator #902
Sanjay44NS
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Idea: Optional Jakarta Bean Validation integration backed by ESAPI Validator
Context
In modern Java applications (Spring, Jakarta EE, Quarkus, Micronaut), Jakarta Bean Validation (JSR-380) is widely used for declarative input validation via annotations on DTOs and method parameters.
ESAPI provides strong, centralized input validation through
org.owasp.esapi.Validator, but today it must be used imperatively, which often leads to:I wanted to start a discussion on whether it would make sense for ESAPI to offer an optional, official integration with Jakarta Bean Validation.
Idea (High-Level)
Provide a small, optional add-on module or package that exposes Bean Validation annotations backed internally by the existing ESAPI
Validator.Conceptually:
Which internally delegates to:
This would allow developers to keep:
Design Principles (Open for Feedback)
validation.propertiesWhat This Is Not
Questions for Maintainers / Community
Willingness to Contribute
If this direction makes sense, I’m happy to:
At this stage, I’m mainly looking for architectural guidance before writing code.
Why This Could Help
Many teams already rely on Bean Validation for correctness checks and end up skipping ESAPI due to integration friction. A small, well-scoped bridge could help ESAPI adoption without compromising security principles.
Beta Was this translation helpful? Give feedback.
All reactions