Skip to content

Refactor configuration management and enhance error handling#10

Merged
reiase merged 10 commits intomasterfrom
feature/code_cleanup
Nov 8, 2025
Merged

Refactor configuration management and enhance error handling#10
reiase merged 10 commits intomasterfrom
feature/code_cleanup

Conversation

@reiase
Copy link
Copy Markdown
Contributor

@reiase reiase commented Nov 8, 2025

Update configuration management to use asynchronous structures for non-blocking operations. Introduce a unified conversion module for Ele types and improve error handling across various modules. Enhance Python bindings for async compatibility and make several API functions public for integration tests. Add new features such as limit parameters for trace event retrieval and a generic injection trait for platform-specific implementations. Update tests to reflect these changes and ensure robust functionality.

reiase and others added 10 commits November 8, 2025 17:28
- Updated the configuration module to utilize `tokio::sync::RwLock` and `tokio::sync::Mutex` for asynchronous access.
- Modified all configuration-related functions (`get`, `set`, `remove`, etc.) to be asynchronous, allowing for non-blocking operations.
- Adjusted the `Engine` and `EngineExtensionManager` to support async operations, including registration and option setting.
- Enhanced Python bindings to handle async configuration operations, ensuring compatibility with the new async structure.
- Updated tests to reflect the changes in async behavior, ensuring proper functionality in an asynchronous context.
- Improved error handling and logging in various places to provide better insights during execution.
- Improved error handling for system time retrieval in `topology.rs` to log and panic on failure.
- Added a new test file `engine_complex_tests.rs` for complex query scenarios including JOIN operations and multiple namespaces.
- Introduced a helper module `test_helpers.rs` for creating generic table plugins to reduce code duplication in tests.
- Enhanced error handling for thread runtime creation in `python_api.rs` and `tracing.rs` to panic with descriptive messages on failure.
- Updated `auth.rs` to make `get_token_from_request` public and added comprehensive tests for token extraction logic.
- Improved path validation in `file_api.rs` with additional tests for edge cases like symlink handling and path traversal attacks.
- Enhanced server runtime creation in `mod.rs` with error logging for lock acquisition failures.
- Updated header component in the web UI to reflect active navigation state using `use_route`.
…ecific implementations

- Added `InjectionTrait` to define common methods for shellcode injection.
- Implemented `GenericInjection` struct to handle injection logic generically.
- Created `perform_injection` function to facilitate library injection across platforms.
- Refactored `Injector` to utilize platform-specific injection logic based on architecture.
- Added tests for aarch64 injection and shellcode verification.
- Updated various modules to support the new injection architecture.
- Improved error handling and logging in the injection process.
@reiase reiase merged commit 58a374f into master Nov 8, 2025
6 checks passed
@reiase reiase deleted the feature/code_cleanup branch November 15, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant