Wallarm RASP client
Introduction
Wallarm real time application security middleware (python module). Implement as WSGI application
Works on Python 2.7, 3.4, 3.5, 3.6, 3.7
How to install
pip install wallarmrasp
How to use
The WallarmRASPMiddleware supports the following arguments:
WallarmRASPMiddleware(self, application, mode='monitoring', **kwargs):
"""
Create and initialize Wallarm RASP WSGI middleware. Options host, port
or sock are required.
Args:
application: WSGI application
mode (str, optional): Wallarm mode. (default: 'monitoring')
Keyword Args:
host (str): Wallarm RASP server hostname
port (int): Wallarm RASP server port
sock (str): Wallarm RASP server socket filename
block_if_disconnected (bool, optional): Set to True if want to block page if connection to Wallarm RASP server is lost (default: False)
sock_timeout_msec (int, optional): socket connection timeout with Wallarm RASP server (default: 10 seconds)
request_max_body_size (int, optional): request max body size size that can be sent to Wallarm RASP server (default: 100MB)
response_max_body_size (int, optional): response max body size size that can be sent to Wallarm RASP server (default: 100MB)
block_headers (list of (header_name, header_value) tuples, optional): custom headers for block page
block_body (list of str, optional): custom body for block page
Returns:
WSGI application with Wallarm RASP middleware.
"""
Connect to Wallarm RASP server via TCP
from wallarmrasp.wallarmrasp import WallarmRASPMiddleware
# initialize default WSGI application
wsgi_application = WallarmRASPMiddleware(
wsgi_application,
'block',
host='WALLARM_RASP_SERVER_HOST',
port='8989')
## start WSGI application
Connect to Wallarm RASP server via UDS
from wallarmrasp.wallarmrasp import WallarmRASPMiddleware
# initialize default WSGI application
wsgi_application = WallarmRASPMiddleware(
wsgi_application,
'block',
sock='PATH_TO_WALLARM_RASP_SOCKET')
## start WSGI application
Metadata
Release files for wallarmrasp 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wallarmrasp-0.0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / wallarmrasp-0.0.5-py2.py3-none-any.whl
| Download URL | wallarmrasp-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b441a16eeff20214ae2e0957e52bb0d075e818756b0be6ed8de923a6a5b097d7
|
|
BLAKE2b-256 checksum How to use checksums |
61f37748e9fc797e969eeae5e8c793e6a863e498ecce2157c57178454b7e1c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for wallarmrasp 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.