918 B
918 B
Changelog
v0.3.0 - 2026-06-17
Added:
auditpackage with the shared business-audit event contract.- Safe audit details redaction for sensitive keys such as token, secret, password, api_key, authorization and webhook_url.
audit.ClientforPOST /api/internal/audit/eventsin Portal.
Migration:
-
Push
portal-commoncommit and tagv0.3.0. -
In each service, update:
go get gitea.estateliga.work/admin/portal-common@v0.3.0 go mod tidy -
Use
audit.NewClient(cfg.PortalBaseURL, cfg.PortalAPIKey)or equivalent Portal URL / internal key config already present in the service. -
Send business events from handlers/workers after the durable operation succeeds.
-
Keep Portal proxy audit mappings only as fallback until duplicate events are checked in production.
v0.2.0
Existing shared packages:
dbmiddlewareportalredisxeventbus