承接 ausus/audit-database 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ausus/audit-database

Composer 安装命令:

composer require ausus/audit-database

包简介

AUSUS — Database TransactionalSink (RFC-007). Skeleton: name reserved; V0 ships an inline DatabaseAuditSink inside ausus/persistence-sql.

README 文档

README

⚠️ Name reservation only — not yet implemented. This package ships an empty composer manifest so the ausus/audit-database name is reserved on Packagist. The actual in-database audit sink is already provided by ausus/persistence-sql as Ausus\Persistence\Sql\DatabaseAuditSink — every successful action writes to kernel_audit_log in the same transaction as the row it changed. This standalone package will house the eventual split-out implementation; v0.1.x consumers do not need to require it.

L3 — TransactionalSink implementation writing audit entries to the same database as ausus/persistence-sql.

Owned RFC surfaces

  • RFC-007 Draft-02 + Amendment-01 — Auditor implementation, TransactionalSink for the kernel_audit_log table.
  • Per RFC-007 §5.3: recommended default. No orphans architecturally possible because audit writes share the active transaction with data writes.

Capabilities advertised

supportsDedupByEntryId()  -> true          # UNIQUE on entry_id
maxSampleHandles()        -> 100           # RFC-007 §13.1 default
preservesInsertionOrder() -> true          # sequence per correlation_id
preservesElevation()      -> true          # Amendment-01 §A-7.2 column

Schema (created via package migration)

kernel_audit_log: entry_id (PK, ULID) · sequence · actor_* · tenant_id · action_fqn · subject_kind · subject_* · inputs (jsonb) · outputs (jsonb) · timestamp · correlation_id · trace_id · invocation_class · elevation (jsonb nullable) · emitter_version.

outputs.bulk_entities lives inside the outputs JSONB per RFC-007 Amendment-01 §A-7.1.

Append-only enforced via database-role grant: INSERT only.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固