Can Spring Security Be Auto-Generated?
I’ve generally found Security requirements are easy to state, but hard to implement. So have been wondering if I can autogenerate my Spring Security configuration.
Join the DZone community and get the full member experience.Join For Free
I’ve generally found security requirements are easy to state but hard to implement. So, I've been wondering if I can autogenerate my Spring Security configuration.
Common security requirements are:
- Access controls on files/directories based on roles, IP address, etc.
- Validation of credentials from an authentication provider
The problem with coding yourself is:
- Security is complex, and you need to know what you're doing — there is a lot of information in the Spring Security manual.
- Upgrades: Spring Security could upgrade and you could miss out on new features to improve your security.
- Bugs: You could introduce a bug in your code.
It would be easier if I could define my security requirements into a website and autogenerate my security configuration.
I see this idea evolving to include:
- Tutorial — soon to be released.
- REST API security.
- Automate creation of unit tests, login pages.
- Best practice — what are the best practice for configurations of spring security?
- Storing security configuration.
Published at DZone with permission of Martin Farrell, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.