A suite of features to make your CKAN instance a little bit more secure.
-
Clone this repository into your extension directory, e.g.
cd /usr/lib/ckan/default/src python setup.py develop
Add the fortify
extension to ckan.plugins
in your CKAN .ini
file:
ckan.plugins = ... fortify ...
Enable each feature through the ckan.plugins
config setting in your CKAN .ini
file:
Prevent Stored XSS attacks by forcing resource downloads of HTML files as opposed to viewing them in the browser.
ckan.fortify.force_html_resource_downloads = True
Defaults to False.
When using the ckanext-hierarchy
extension it's possible to inject a parent organisation into the create new
organisation form that the logged in user does not belong to. This prevents that behaviour by checking in the back-end
that the user belongs to the organisation as an admin when creating a new child organisation.
ckan.fortify.check_parent_org_allowed = True
Defaults to False.
ckan.fortify.enable_anti_csrf_tokens = True
Defaults to False.
ckan.fortify.enable_password_policy = True
Defaults to False.
ckan.fortify.password_policy.min_length = 12
Defaults to 12
ckan.fortify.password_policy.allow_repeated_chars = True
Defaults to true (i.e. sequentially repeating characters ARE allowed in passwords by default)