Commit Graph
3 Commits
Author SHA1 Message Date
sktrpathiandHengfei Yang 2da35485f5 chore: add UTs, run fmt and clippy (#7720)
### **Description**
- Add unit tests for cipher, registry, saved_view, hash utils

- Refactor `verify_decode_token` logic with algorithm conversion

- Remove async from JWT calls in HTTP handlers

- Simplify code in registry, job/cipher, wal modules

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2025-07-28 09:18:56 +05:30
Hengfei Yang 595490ea33 ci: update rust to nightly-2025-03-02 (#6145) 2025-03-02 17:27:10 +08:00
ebcb12c4ea feat: add cipher keys support for encryption/decryption (#5683)
This adds support of cipher keys, along with corresponding udfs for
encrypting and decrypting fields from the log.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes: Enterprise Encryption and Key Management Features

- **New Features**
  - Added enterprise-level cipher key management functionality.
- Introduced encryption and decryption capabilities for data protection.
  - Implemented key storage and retrieval mechanisms.
- New Vue components for adding and managing cipher keys and encryption
mechanisms.
  - Added a new settings page for managing cipher keys.
  - Integrated advanced key management with multiple provider types.
- Added user-defined functions for encryption and decryption within
DataFusion.
- Introduced a new migration for creating the `cipher_keys` database
table.
  - Enhanced HTTP request handling for cipher key operations.
- Added validation for encryption configurations and improved error
handling.
- New asynchronous tasks for managing cipher keys during initialization.
  - Enhanced error handling and notifications for cipher key changes.

- **Security Enhancements**
  - Added support for managing encryption keys across the platform.
  - Implemented secure key storage and rotation mechanisms.
  - Enhanced migration logic for cipher keys.

- **User Interface Updates**
  - Enhanced user navigation with new tabs for cipher key management.
  - Introduced stepper interface for key creation and management.
  - Improved localization support for cipher key management.

- **Performance Improvements**
  - Optimized query handling for encrypted data.
  - Enhanced DataFusion query optimizer with cipher key support.

- **Compatibility**
  - Enterprise feature flag controls advanced encryption capabilities.
  - Supports multiple key storage and authentication types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
Co-authored-by: Subhra264 <chakrabortysubhradeep556@gmail.com>
Co-authored-by: ShyamOOAI <shyam@openobserve.ai>
2025-01-23 18:13:45 +05:30