merge Dev to main#20
Merged
Merged
Conversation
- Fix import order in security/lib.rs to group related imports - Fix function signatures in permissions.rs to use multi-line format - Run cargo fmt to ensure consistent code style
解密后需要移除16字节的填充数据以确保数据正确。同时增强测试用例验证加密和解密结果的完整性。
Implement core architecture and improve code quality
## 主要变更概述 ### 1. Storage模块修复 - 修复 ring crate 0.17 版本API兼容性问题 - 更新 LessSafeKey 构造方式为 UnboundKey::new() + LessSafeKey::new(unbound_key) - 解密后手动截断16字节认证标签 ### 2. 代码质量提升 - 统一所有模块代码格式 - 修复Clippy警告:protocol.rs使用#[derive(Default)],security.rs使用简化位运算 ### 3. CI/CD工作流优化 - 安全审计改为根目录运行cargo audit - 代码覆盖率改为根目录运行cargo tarpaulin ### 4. 安全加固 - IPC加密升级为AES-256-GCM替代XOR - 支持随机nonce生成和认证加密 ## 修复的问题 - Storage模块测试失败 - 代码格式不一致 - CI/CD配置错误 - IPC安全隐患 ## 变更文件 - src/storage/lib.rs - src/ipc/protocol.rs - src/ipc/security.rs - src/ipc/Cargo.toml - .github/workflows/ci-cd.yml
更新CI/CD工作流中的提交消息验证脚本,将ci类型添加到允许的提交类型列表中,以支持CI相关的提交消息
Feature/m001 core architecture
Feature/m001 core architecture
- 实现安全策略模块(policy.rs) - 添加策略管理器和安全策略配置 - 完善权限验证机制 - 修复unused result警告
- 实现安全策略模块(policy.rs) - 添加策略管理器和安全策略配置 - 完善权限验证机制 - 修复unused result警告
…tion' into feature/M002-core-implementation
已通过ci/cd工作流,直接合并 详情见推送历史
移动并改名核心架构总结文档 .M001-SUMMARY.md 为docs/M001-SUMMARY.md 添加安全框架实现报告 M002-security-framework-completion.md 移动浏览器使用指南 MoDa-Browser-based.md 至docs/compass 下 移动开发规划指南 MoDa-Browser-dev.md 至 docs/compass 下
…/Ink-dark/Core into feature/M002-core-implementation
Feature/m002 core implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.