Extension CSRF Protection Filter


Extension Basics

Title
CSRF Protection Filter
Name
ckanext-csrf-filter
Type
Public extension
Description
Cross-Site Request Forgery protection with advanced security filtering and token-based authentication.
CKAN versions
Download-Url (zip)
Download-Url commit date
2024-01-25
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

The CSRF Protection Filter extension provides comprehensive Cross-Site Request Forgery protection for CKAN instances, implementing industry-standard security measures to prevent unauthorized actions through malicious cross-site requests. This critical security extension automatically generates and validates CSRF tokens for all state-changing operations, ensuring that requests originate from legitimate user sessions and authorized sources. The system provides transparent token management with automatic injection into forms, AJAX request headers, and API calls while maintaining seamless user experience without requiring manual token handling. Advanced security features include configurable token expiration, double-submit cookie patterns, and origin header validation for multi-layered protection against sophisticated CSRF attacks. The extension supports custom token generation algorithms, secure token storage mechanisms, and integration with existing authentication systems for enhanced security coordination. Administrative features include comprehensive attack logging, security analytics with threat pattern recognition, and configurable response actions for detected CSRF attempts including blocking, logging, or alerting. The system provides flexible exemption management for trusted origins, API endpoints requiring different security models, and legacy system integration requirements. Performance optimizations ensure minimal overhead through efficient token caching, batch validation processes, and optimized token lifecycle management. Essential for production CKAN deployments handling sensitive data, government portals with strict security requirements, enterprise data platforms requiring compliance certification, and any installation where preventing unauthorized data modifications, user impersonation, and malicious state changes is critical for security integrity and regulatory compliance.

Version
Latest
Version release date
2024-01-25
Contact name
Datopian Team
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Provides CSRF protection with configurable security policies and token management.

Plugins to configure (ckan.ini)
csrf_filter
CKAN Settings (ckan.ini)
# ckanext.csrf_filter.enable = true # ckanext.csrf_filter.token_expiry = 3600 # ckanext.csrf_filter.exclude_paths = /api/action/status_show # ckanext.csrf_filter.require_ssl = true # ckanext.csrf_filter.log_attempts = true # ckanext.csrf_filter.block_on_failure = true
DB migration to be executed
(not set)
<< back to Extensions