• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DarkiT / machineid / 20275439254
42%

Build:
DEFAULT BRANCH: master
Ran 16 Dec 2025 04:36PM UTC
Jobs 1
Files 33
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Dec 2025 04:34PM UTC coverage: 41.699%. First build
20275439254

push

github

DarkiT
refactor(cert)!: 增强安全性、修复并发问题并新增多项功能

## 安全增强
- 将 cert/security.go 中的 MD5 哈希算法升级为 SHA-256,提升密码学安全性
- calculateChecksum() 和 verifyMemoryIntegrity() 现使用 SHA-256
- 修复内存完整性校验的安全漏洞

## 并发安全修复
- 将 currentCertVersion 从包级变量重构为 Authorizer 实例字段
- 新增 GetCurrentCertVersion() 方法提供线程安全访问
- 消除多个 Authorizer 实例间的全局状态冲突

## 资源管理改进
- ValidationCache 新增 done channel 和 Close() 方法
- 修复 cleanupLoop goroutine 泄漏问题
- 支持优雅关闭和资源清理

## 新增功能
- 容器环境支持:新增 container_binding.go、container_scope_*.go
- 硬件指纹增强:改进 hardware_darwin.go、hardware_linux.go、hardware_windows.go
- License 管理:新增 cert/license.go 和 cert/license_test.go
- 代码混淆:新增 cert/obfuscate.go
- 快照功能:新增 cert/snapshot.go
- macOS 内存保护:新增 cert/security_mprotect_darwin.go
- 绑定提供者:新增 binding_provider.go 支持自定义绑定源

## 文档完善
- 修正 cert/README.md 中的 API 命名不一致问题:
  * IssueBatch → IssueMultipleCerts
  * ValidateBatch → ValidateMultipleCerts
  * NewCachedAuthorizer → BuildWithCache/WithCache
  * RegisterTemplate → AddTemplate
- 移除未实现的 API 文档(EnableMetrics、WithSharedCache 等)
- 新增 Ed25519 签名算法说明
- 更新主 README.md 中的功能特性说明

## CI/CD
- 新增 .github/workflows/build.yml GitHub Actions 工作流
- 新增 .github/dependabot.yml 依赖自动更新配置
- 移除 .cnb.yml 旧配置文件

## 测试
- 所有单元测试通过 race detector 检测
- 新增容器作用域相关测试

BREAKING CHANGE:
- currentCertVersion 不再是包级变量,现为 Authorizer 实例字段
- 使用 GetCurrentCertVersion() 方法替代直接访问
- ValidationCache 需要显式调用 Close() 方法释放资源

596 of 1701 new or added lines in 25 files covered. (35.04%)

2587 of 6204 relevant lines covered (41.7%)

52.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.6
cert/config.go
2
58.14
cert/template.go
2
27.65
cert/utils.go
2
88.89
container_id_parse.go
4
82.07
cert/client.go
4
0.0
cert/watcher.go
9
0.0
cert/security_levels_demo.go
13
0.0
cmd/authorize/main.go
17
0.0
binding_provider.go
23
60.33
id_linux.go
25
24.24
container_scope_common.go
28
47.51
cert/errors.go
33
50.19
cert/cert.go
37
0.0
container_binding.go
42
0.0
cert/examples.go
42
69.08
hardware_linux.go
44
0.0
cert/obfuscate.go
51
65.07
cert/license.go
64
48.39
container_scope_linux.go
73
37.5
cert/authorizer.go
81
43.38
id.go
129
0.0
cert/snapshot.go
135
52.79
cert/cache.go
244
48.45
cert/security.go
Jobs
ID Job ID Ran Files Coverage
1 20275439254.1 16 Dec 2025 04:36PM UTC 33
41.7
GitHub Action Run
Source Files on build 20275439254
  • Tree
  • List 33
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 864c8a33 on github
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc