refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
**Tech Stack:** Markdown only. No code in v1 of this plan.
|
||||
|
||||
**Spec:** `/Users/dohertj2/Desktop/scadalink-design/alog.md` (see commit `fec0bb1`). All task content below cites sections of that file.
|
||||
**Spec:** `/Users/dohertj2/Desktop/scadabridge-design/alog.md` (see commit `fec0bb1`). All task content below cites sections of that file.
|
||||
|
||||
---
|
||||
|
||||
@@ -128,7 +128,7 @@ Compress `alog.md` §12: 365-day default central retention; monthly partition sw
|
||||
|
||||
**Step 14: Fill `Security & Tamper-Evidence`**
|
||||
|
||||
Compress `alog.md` §11: dedicated `scadalink_audit_writer` (INSERT+SELECT) and `scadalink_audit_purger` (partition-switch only) DB roles; CI grep guard against `UPDATE`/`DELETE` of `AuditLog`; Audit + OperationalAudit + AuditExport permissions; hash-chain tamper evidence deferred to v1.x.
|
||||
Compress `alog.md` §11: dedicated `scadabridge_audit_writer` (INSERT+SELECT) and `scadabridge_audit_purger` (partition-switch only) DB roles; CI grep guard against `UPDATE`/`DELETE` of `AuditLog`; Audit + OperationalAudit + AuditExport permissions; hash-chain tamper evidence deferred to v1.x.
|
||||
|
||||
**Step 15: Fill `KPIs`**
|
||||
|
||||
@@ -158,7 +158,7 @@ Edges to:
|
||||
- **Site Call Audit (#22)** — shares the cached-call telemetry packet; central ingest of that packet performs both `AuditLog` insert and `SiteCalls` upsert in one transaction.
|
||||
- **Central UI (#9)** — new Audit nav group + Audit Log page; drill-in links from Notifications, Site Calls, External Systems, Inbound API key, Sites, Instances detail pages.
|
||||
- **Health Monitoring (#11)** — three new tiles (Volume, Error rate, Backlog) plus new metrics (`SiteAuditBacklog`, `SiteAuditWriteFailures`, `SiteAuditTelemetryStalled`, `CentralAuditWriteFailures`, `AuditRedactionFailure`).
|
||||
- **CLI (#19)** — `scadalink audit query|export|verify-chain` commands.
|
||||
- **CLI (#19)** — `scadabridge audit query|export|verify-chain` commands.
|
||||
|
||||
**Step 19: Verify**
|
||||
|
||||
@@ -238,7 +238,7 @@ Under Tables, add a new subsection mirroring how `Notifications` and `SiteCalls`
|
||||
|
||||
**Step 3: Add `AuditLog` DB roles**
|
||||
|
||||
Under Roles/Permissions, add `scadalink_audit_writer` (INSERT+SELECT only) and `scadalink_audit_purger` (partition-switch only). Note the CI grep guard against `UPDATE … AuditLog` / `DELETE … AuditLog`.
|
||||
Under Roles/Permissions, add `scadabridge_audit_writer` (INSERT+SELECT only) and `scadabridge_audit_purger` (partition-switch only). Note the CI grep guard against `UPDATE … AuditLog` / `DELETE … AuditLog`.
|
||||
|
||||
**Step 4: Add `AuditLog` migration note**
|
||||
|
||||
@@ -565,7 +565,7 @@ git commit -m "docs(audit): add Audit Log health metrics and dashboard tiles"
|
||||
|
||||
Locate the section enumerating top-level CLI command groups.
|
||||
|
||||
**Step 2: Add `scadalink audit` group**
|
||||
**Step 2: Add `scadabridge audit` group**
|
||||
|
||||
Three subcommands per `alog.md` §15.1:
|
||||
- `audit query --site <s> --since <t> --kind <k> [...]` — UI-equivalent filter set.
|
||||
@@ -580,14 +580,14 @@ Dependencies edges to **Audit Log (#23)** and **Management Service (#18)** (the
|
||||
|
||||
**Step 4: Verify**
|
||||
|
||||
Run: `grep -n "scadalink audit\|audit query\|audit export\|audit verify-chain\|#23" docs/requirements/Component-CLI.md`
|
||||
Run: `grep -n "scadabridge audit\|audit query\|audit export\|audit verify-chain\|#23" docs/requirements/Component-CLI.md`
|
||||
Expected: command group documented with all three subcommands.
|
||||
|
||||
**Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add docs/requirements/Component-CLI.md
|
||||
git commit -m "docs(audit): add scadalink audit command group to CLI"
|
||||
git commit -m "docs(audit): add scadabridge audit command group to CLI"
|
||||
```
|
||||
|
||||
---
|
||||
@@ -650,7 +650,7 @@ Add a new subsection **"Centralized Audit Log"** with numbered requirements cove
|
||||
- AL-9: Site SQLite purge requires `ForwardState ∈ {Forwarded, Reconciled}`; central outage cannot cause audit loss at sites.
|
||||
- AL-10: Central UI Audit Log page with cross-channel filter and drill-ins from existing operational pages.
|
||||
- AL-11: Append-only enforced via DB roles; tamper-evidence hash chain deferred to v1.x.
|
||||
- AL-12: CLI `scadalink audit` command group.
|
||||
- AL-12: CLI `scadabridge audit` command group.
|
||||
|
||||
**Step 3: Cross-reference Audit Log component**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user