Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@notque notque released this 18 Jul 18:32
· 6 commits to master since this release
fe7dafb

Release v1.2.0

🎉 Available on PyPI!

This release is available on PyPI for easier installation:

pip install audit-middleware

Systems can continue using the existing git dependency method.

🚀 Key Improvements

Enhanced Audit Context

  • Added support for request_id and global_request_id in CADF notifications for better request tracing
  • Added application_credential_id to audit messages for improved security tracking
  • Improved project_id handling for RequestContext objects

Better Error Handling

  • Fixed handling of requests with no content length
  • Prevent JSONDecodeError for empty request bodies
  • Added defensive checks for null tokens in read events
  • Improved payload handling for binary endpoints (Barbican)

OpenStack Service Support

  • Updated Manila audit mappings for production use
  • Fixed audit target URI for failed create operations
  • Improved support for various OpenStack API patterns

Configuration Options

  • Added option to disable oslo.messaging notifier when needed
  • Better handling of audit map configurations

🔧 Technical Improvements

Code Quality

  • Removed Python 2.7 support (Python 3.8+ required)
  • Removed deprecated six library dependency
  • Fixed various flake8 issues and improved code quality
  • Added comprehensive HTTP method tests

Dependencies

  • Updated to support modern Python versions (3.9+ recommended)
  • Updated various dependencies for security and compatibility
  • Moved to Python 3.9 as baseline due to oslo-utils requirements

📦 Installation Options

PyPI (New!)

pip install audit-middleware

Git (Existing - Production)

-e git+https://github.com/sapcc/openstack-audit-middleware.git#egg=audit-middleware

🤝 Contributors

Special thanks to our contributors:

  • @bbobrov - Application credential support
  • @fwiesel - oslo.messaging configuration fixes
  • @sebageek - Content length handling improvements
  • @notque - Core maintenance and improvements

📋 Migration Notes

  • No breaking changes - existing installations continue to work
  • Production systems - no action required, continue using git dependency
  • Development/testing - can now optionally use PyPI installation
  • Python 3.8+ - older Python versions no longer supported

🔗 Links