What's New With 2.0.0
2019-SEP-25
New Features
Adobe 2016,2018 Support
Settings transferred to ColdBox 4/5
moduleSettingsapproach instead of root approach (See compat section)The
rulesModelMethodnow defaults togetSecurityRules()ColdFusion security validator has an identity now
CFValidator@cbsecurityinstead of always being inline.You can now add an
overrideEventelement to a rule. If that is set, then we will override the incoming event viaevent.overrideEvent()instead of doing a relocation using theredirectrule element.You can now declare your rules inline in the configuration settings using the
ruleskey. This will allow you to build the rules in your config instead of a rule source.We now can distinguish between invalid auth and invalid authorizations
New interception block points
cbSecurity_onInvalidAuthentication,cbSecurity_onInvalidAuhtorizationYou now have a
defaultAuthorizationActionsetting which defaults toredirectYou now have a
invalidAuthenticationEventsetting that can be usedYou now have a
defaultAuthenticationActionsetting which defaults toredirectYou now have a
invalidAuthorizationEventsetting that can be usedIf a rule is matched, we will store it in the
prcascbSecurity_matchedRuleso you can see which security rule was used for processing invalid access actions.If a rule is matched we will store the validator results in
prcascbSecurity_validatorResultsAbility for modules to register cbSecurity rules and setting overrides by registering a
settings.cbSecuritykey.New security rule visualizer for graphically seeing you rules and configuration. Can be locked down via the
enableSecurityVisualizersetting. Disabled by default.Annotation based security for handlers and actions using the
securedannotation. Which can be boolean or a list of permissions, roles or whatever you like.You can disable annotation based security by using the
handlerAnnotationSecurityboolean setting.JWT Token Security Support
Improvements
SSL Enforcement now cascades according to the following lookup: Global, rule, request
Interfaces documented for easier extension
interfaces.*Migration to script and code modernization
New Module Layout
Secured rules are now logged as
warn()with the offending Ip address.New setting to turn on/off the loading of the security firewall:
autoLoadFirewall. The interceptor will auto load and be registered ascbsecurity@globalin WireBox.
Compat
Adobe 11 Dropped
Lucee 4.5 Dropped
Migrate your root
cbSecuritysettings in yourconfig/ColdBox.cfcto inside themoduleSettingsIOC rules support dropped
OCM rules support dropped
validatorModeldropped in favor of justvalidatorto be a WireBox IdRemoved
preEventSecurityit was too chatty and almost never usedThe function
userValidatorhas been renamed toruleValidatorand also added theannotationValidatoras well.rulesSourceremoved you can now use therulessettingThe
rulescan be:array, db, model, filepathIf the
filepathhasjsonorxmlin it, we will use that as the source style
rulesFileremoved you can now use therulessetting.
Last updated
Was this helpful?