This project has been archived by its maintainers, and is no longer receiving any updates.
securedrop-log
This is a Python module and qrexec service for logging in Qubes for SecureDrop.
How to use/try this?
In our example, we will use a vm named logging for storing logs, and we will use workvm to send in logs to the logging vm.
In dom0
- Create a file
/etc/qubes-rpc/policy/securedrop.Logindom0with the following content.
workvm logging allow
@anyvm @anyvm deny
In logging vm
Add the following content to /etc/qubes-rpc/securedrop.Log
/usr/sbin/securedrop-log
and then place securedrop-log script to /usr/sbin/ directory and make sure that
it is executable.
To use from any Python code in workvm
Here is an example code using Python logging
import logging
from securedrop_log import SecureDropLog
def main():
handler = SecureDropLog("workvm", "proxy-debian")
logging.basicConfig(level=logging.DEBUG, handlers=[handler])
logger = logging.getLogger("example")
logger.info("kushal says it works")
if __name__ == "__main__":
main()
The journalctl example
You will need python3-systemd package for the same.
The code is in journal-example.py file.
Metadata
Release files for securedrop-log 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| securedrop-log-0.0.3.tar.gz | 15.9 kB | Without provenance | Details for securedrop-log-0.0.3.tar.gz |
Release files / securedrop-log-0.0.3.tar.gz
| Download URL | securedrop-log-0.0.3.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57e27148bd315db8357238874ecb792dffa0c397fed80bc4d314017a4b3341a7
|
|
BLAKE2b-256 checksum How to use checksums |
30685d9f3ae0630256b24184791f6e72125d0570000be5551de451726b208dcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Security for securedrop-log 0.0.3
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.