Repository navigation
Forbid live signature-table access in CCF 8.0 - #8490
Amaury Chamayou (achamayou) merged 29 commits into
Conversation
Exclude deferred signature state from ordinary KV transactions, constrain reserved writes, and migrate framework metadata readers to pinned materialised prefixes. Preserve historical access and add policy, rollback, binding, and end-to-end regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use byte-sized access and transaction-role enums and rely on constexpr's implicit inline linkage. This resolves the PR-caused performance-enum-size and redundant-inline diagnostics without changing CI checks or access behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ability Log denied signature-table access at DEBUG, since the condition is already reported to the caller through MapAccessDenied and a probing application should not emit a FAIL line per request. Record in the changelog and recovery documentation that GET /node/state is now served while the KV store is not yet ready. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a handle_acquisition suite to kv_bench timing a minimal read-only transaction (create, acquire one handle, read one key) and the cached re-acquisition of a held handle. These are the only paths exercising the per-handle access policy, and none of the existing commit-centric suites time them. Publish both to Bencher so the cost is tracked. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Integrate main's historical-query and indexing test refactors while retaining reserved signature writes and pinned materialised reads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
VMSS Virtual A's LLVM 18 clang-tidy rejects the explicit TxDiff and ReadOnlyTx return constructors under modernize-return-braced-init-list. Use braced return initializers, preserving the private constructors, pinned prefix and rollback epoch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tion Resolve release metadata and node/governance handler refactor conflicts by retaining main's extracted handlers, preserving pinned signature metadata reads and wiring NetworkState into the member state-digest update handler. Keep the breaking API change on the established 8.0 release target alongside main's 7.0.19 notes. Fix the three PR-caused readability-qualified-auto failures in the signature metadata handlers. Full LLVM 18 clang-tidy build, all 62 unit tests, all 223 Python SDK tests, governance and recovery e2e, and repository checks pass locally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ragment Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DescriptionComparing 5 available runs from this branch (#8490) against the trend of the last 30 Each chart plots every benchmark as an axis, with values normalized so 100 is the EWMA baseline of recent Axis labels show the latest branch value and its difference from the main EWMA baseline, where 0% is on the baseline. They are coloured green where the latest run improves on the baseline, red where it regresses, and grey where the difference is within one std dev of the baseline (within noise). Higher is better for throughput and rate, lower for latency and memory. A benchmark which does not exist on Throughput (tx/s)---
config:
radar:
width: 620
height: 620
marginTop: 90
marginRight: 220
marginBottom: 60
marginLeft: 220
axisLabelFactor: 1.12
curveTension: 0.08
theme: base
themeCSS: |
.radarCurve-0{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-1{fill:color-mix(in srgb, #62B5E5 40%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-2{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-3{fill:var(--color-canvas-default,var(--bgColor-default,#fff))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarAxisLabel,.radarTitle{fill:var(--color-fg-default,var(--fgColor-default,#111827))!important;color:var(--color-fg-default,var(--fgColor-default,#111827))!important}
.radarCurve-4{stroke-width:1.5px!important;stroke-opacity:0.20!important}
.radarCurve-5{stroke-width:1.5px!important;stroke-opacity:0.30!important}
.radarCurve-6{stroke-width:1.5px!important;stroke-opacity:0.40!important}
.radarCurve-7{stroke-width:1.5px!important;stroke-opacity:0.50!important}
.radarCurve-8{stroke-width:1.75px!important;stroke-opacity:1.00!important}
.radarAxisLabel:nth-of-type(1){fill:#808A94!important}
.radarAxisLabel:nth-of-type(2){fill:#808A94!important}
.radarAxisLabel:nth-of-type(3){fill:#808A94!important}
.radarAxisLabel:nth-of-type(4){fill:#808A94!important}
.radarAxisLabel:nth-of-type(5){fill:#808A94!important}
.radarAxisLabel:nth-of-type(6){fill:#808A94!important}
.radarAxisLabel:nth-of-type(7){fill:#808A94!important}
.radarAxisLabel:nth-of-type(8){fill:#808A94!important}
themeVariables:
cScale0: "#62B5E5"
cScale1: "#62B5E5"
cScale2: "#62B5E5"
cScale3: "#62B5E5"
cScale4: "#F97316"
cScale5: "#F97316"
cScale6: "#F97316"
cScale7: "#F97316"
cScale8: "#F97316"
radar:
axisColor: "#9CA3AF"
graticuleColor: "#E5E7EB"
graticuleOpacity: 0
axisStrokeWidth: 1
curveOpacity: 0
---
radar-beta
axis b0["Basic Blocking 100ms: 3,162 tx/s ▬ 0%"]
axis b1["Basic Blocking 20ms: 15,689 tx/s ▬ 0%"]
axis b2["Basic Blocking 2ms: 21,795 tx/s ▬ -5%"]
axis b3["Basic JS: 17,905 tx/s ▬ 0%"]
axis b4["FluentD: 15,694 tx/s ▬ 0%"]
axis b5["Historical Queries: 776,614 tx/s ▬ +3%"]
axis b6["L…g Certificate Blocking: 30,842 tx/s ▬ 0%"]
axis b7["Logging JWT Blocking: 15,730 tx/s ▬ 0%"]
curve stddev2_high["main EWMA + 2 std dev"]{100.37, 100.40, 112.41, 107.24, 100.44, 111.62, 100.68, 100.43}
curve stddev1_high["main EWMA + 1 std dev"]{100.19, 100.20, 106.20, 103.62, 100.22, 105.81, 100.34, 100.22}
curve stddev1_low["main EWMA - 1 std dev"]{99.81, 99.80, 93.80, 96.38, 99.78, 94.19, 99.66, 99.78}
curve stddev2_low["main EWMA - 2 std dev"]{99.63, 99.60, 87.59, 92.76, 99.56, 88.38, 99.32, 99.57}
curve branch_0["#8490 (4 runs earlier)"]{100.31, 100.35, 101.63, 107.12, 100.37, 105.55, 100.46, 100.42}
curve branch_1["#8490 (3 runs earlier)"]{99.86, 99.92, 86.90, 95.17, 99.87, 87.51, 99.87, 99.78}
curve branch_2["#8490 (2 runs earlier)"]{99.72, 99.95, 117.92, 104.26, 100.06, 108.78, 100.03, 99.99}
curve branch_3["#8490 (1 run earlier)"]{99.90, 99.88, 103.01, 96.97, 99.86, 77.39, 99.76, 99.98}
curve branch_4["#8490"]{99.95, 99.80, 94.51, 99.80, 99.86, 102.70, 99.93, 99.89}
graticule polygon
max 133
min 63
ticks 0
showLegend false
Latency (ms)---
config:
radar:
width: 620
height: 620
marginTop: 90
marginRight: 220
marginBottom: 60
marginLeft: 220
axisLabelFactor: 1.12
curveTension: 0.08
theme: base
themeCSS: |
.radarCurve-0{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-1{fill:color-mix(in srgb, #62B5E5 40%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-2{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-3{fill:var(--color-canvas-default,var(--bgColor-default,#fff))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarAxisLabel,.radarTitle{fill:var(--color-fg-default,var(--fgColor-default,#111827))!important;color:var(--color-fg-default,var(--fgColor-default,#111827))!important}
.radarCurve-4{stroke-width:1.5px!important;stroke-opacity:0.20!important}
.radarCurve-5{stroke-width:1.5px!important;stroke-opacity:0.30!important}
.radarCurve-6{stroke-width:1.5px!important;stroke-opacity:0.40!important}
.radarCurve-7{stroke-width:1.5px!important;stroke-opacity:0.50!important}
.radarCurve-8{stroke-width:1.75px!important;stroke-opacity:1.00!important}
.radarAxisLabel:nth-of-type(1){fill:#808A94!important}
.radarAxisLabel:nth-of-type(2){fill:#808A94!important}
.radarAxisLabel:nth-of-type(3){fill:#E5484D!important}
.radarAxisLabel:nth-of-type(4){fill:#808A94!important}
.radarAxisLabel:nth-of-type(5){fill:#808A94!important}
.radarAxisLabel:nth-of-type(6){fill:#2DA44E!important}
.radarAxisLabel:nth-of-type(7){fill:#808A94!important}
.radarAxisLabel:nth-of-type(8){fill:#808A94!important}
themeVariables:
cScale0: "#62B5E5"
cScale1: "#62B5E5"
cScale2: "#62B5E5"
cScale3: "#62B5E5"
cScale4: "#F97316"
cScale5: "#F97316"
cScale6: "#F97316"
cScale7: "#F97316"
cScale8: "#F97316"
radar:
axisColor: "#9CA3AF"
graticuleColor: "#E5E7EB"
graticuleOpacity: 0
axisStrokeWidth: 1
curveOpacity: 0
---
radar-beta
axis b0["Basic Blocking 100ms: 99 ms ▬ 0%"]
axis b1["Basic Blocking 20ms: 19 ms ▬ 0%"]
axis b2["Basic Blocking 2ms: 14 ms ▲ 7%"]
axis b3["Basic JS: 17 ms ▬ -2%"]
axis b4["FluentD: 19 ms ▬ 0%"]
axis b5["Historical Queries: 35 ms ▼ 12%"]
axis b6["Logging Certificate Blocking: 18 ms ▬ 0%"]
axis b7["Logging JWT Blocking: 19 ms ▬ 0%"]
curve stddev2_high["main EWMA + 2 std dev"]{100.00, 100.00, 114.10, 107.16, 100.00, 115.82, 100.00, 100.00}
curve stddev1_high["main EWMA + 1 std dev"]{100.00, 100.00, 107.05, 103.58, 100.00, 107.91, 100.00, 100.00}
curve stddev1_low["main EWMA - 1 std dev"]{100.00, 100.00, 92.95, 96.42, 100.00, 92.09, 100.00, 100.00}
curve stddev2_low["main EWMA - 2 std dev"]{100.00, 100.00, 85.90, 92.84, 100.00, 84.18, 100.00, 100.00}
curve branch_0["#8490 (4 runs earlier)"]{100.00, 100.00, 99.47, 92.62, 100.00, 95.83, 100.00, 100.00}
curve branch_1["#8490 (3 runs earlier)"]{100.00, 100.00, 114.77, 104.20, 100.00, 103.40, 100.00, 100.00}
curve branch_2["#8490 (2 runs earlier)"]{100.00, 100.00, 84.17, 98.41, 100.00, 98.35, 100.00, 100.00}
curve branch_3["#8490 (1 run earlier)"]{100.00, 100.00, 91.82, 104.20, 100.00, 131.14, 100.00, 100.00}
curve branch_4["#8490"]{100.00, 100.00, 107.12, 98.41, 100.00, 88.27, 100.00, 100.00}
graticule polygon
max 148
min 67
ticks 0
showLegend false
Memory (bytes)---
config:
radar:
width: 620
height: 620
marginTop: 90
marginRight: 220
marginBottom: 60
marginLeft: 220
axisLabelFactor: 1.12
curveTension: 0.08
theme: base
themeCSS: |
.radarCurve-0{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-1{fill:color-mix(in srgb, #62B5E5 40%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-2{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-3{fill:var(--color-canvas-default,var(--bgColor-default,#fff))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarAxisLabel,.radarTitle{fill:var(--color-fg-default,var(--fgColor-default,#111827))!important;color:var(--color-fg-default,var(--fgColor-default,#111827))!important}
.radarCurve-4{stroke-width:1.5px!important;stroke-opacity:0.20!important}
.radarCurve-5{stroke-width:1.5px!important;stroke-opacity:0.30!important}
.radarCurve-6{stroke-width:1.5px!important;stroke-opacity:0.40!important}
.radarCurve-7{stroke-width:1.5px!important;stroke-opacity:0.50!important}
.radarCurve-8{stroke-width:1.75px!important;stroke-opacity:1.00!important}
.radarAxisLabel:nth-of-type(1){fill:#E5484D!important}
.radarAxisLabel:nth-of-type(2){fill:#808A94!important}
.radarAxisLabel:nth-of-type(3){fill:#808A94!important}
.radarAxisLabel:nth-of-type(4){fill:#808A94!important}
.radarAxisLabel:nth-of-type(5){fill:#E5484D!important}
.radarAxisLabel:nth-of-type(6){fill:#808A94!important}
.radarAxisLabel:nth-of-type(7){fill:#808A94!important}
.radarAxisLabel:nth-of-type(8){fill:#808A94!important}
themeVariables:
cScale0: "#62B5E5"
cScale1: "#62B5E5"
cScale2: "#62B5E5"
cScale3: "#62B5E5"
cScale4: "#F97316"
cScale5: "#F97316"
cScale6: "#F97316"
cScale7: "#F97316"
cScale8: "#F97316"
radar:
axisColor: "#9CA3AF"
graticuleColor: "#E5E7EB"
graticuleOpacity: 0
axisStrokeWidth: 1
curveOpacity: 0
---
radar-beta
axis b0["Basic Blocking 100ms: 57.5 MiB ▲ 2%"]
axis b1["Basic Blocking 20ms: 57.4 MiB ▬ 0%"]
axis b2["Basic Blocking 2ms: 58.5 MiB ▬ 0%"]
axis b3["Basic JS: 65.4 MiB ▬ 0%"]
axis b4["FluentD: 58.8 MiB ▲ 2%"]
axis b5["Historical Queries: 116 MiB ▬ 0%"]
axis b6["Logging Certificate Blocking: 82.5 MiB ▬ +1%"]
axis b7["Logging JWT Blocking: 57.3 MiB ▬ +1%"]
curve stddev2_high["main EWMA + 2 std dev"]{103.24, 103.43, 103.47, 103.59, 103.60, 100.97, 103.78, 106.09}
curve stddev1_high["main EWMA + 1 std dev"]{101.62, 101.71, 101.73, 101.79, 101.80, 100.48, 101.89, 103.04}
curve stddev1_low["main EWMA - 1 std dev"]{98.38, 98.29, 98.27, 98.21, 98.20, 99.52, 98.11, 96.96}
curve stddev2_low["main EWMA - 2 std dev"]{96.76, 96.57, 96.53, 96.41, 96.40, 99.03, 96.22, 93.91}
curve branch_0["#8490 (4 runs earlier)"]{97.54, 98.10, 96.29, 100.72, 95.51, 99.66, 97.47, 95.03}
curve branch_1["#8490 (3 runs earlier)"]{101.14, 101.03, 101.43, 98.40, 98.40, 99.57, 99.97, 100.07}
curve branch_2["#8490 (2 runs earlier)"]{100.77, 99.47, 101.23, 101.15, 101.31, 100.37, 100.52, 100.25}
curve branch_3["#8490 (1 run earlier)"]{101.70, 102.02, 101.40, 98.07, 99.31, 99.59, 100.76, 100.04}
curve branch_4["#8490"]{102.08, 100.09, 99.77, 100.30, 102.20, 99.51, 101.21, 101.28}
graticule polygon
max 111
min 89
ticks 0
showLegend false
Rate (ops/s)---
config:
radar:
width: 620
height: 620
marginTop: 90
marginRight: 220
marginBottom: 60
marginLeft: 220
axisLabelFactor: 1.12
curveTension: 0.08
theme: base
themeCSS: |
.radarCurve-0{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-1{fill:color-mix(in srgb, #62B5E5 40%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-2{fill:color-mix(in srgb, #62B5E5 13%, var(--color-canvas-default,var(--bgColor-default,#fff)))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarCurve-3{fill:var(--color-canvas-default,var(--bgColor-default,#fff))!important;fill-opacity:1!important;stroke:none!important;stroke-width:0!important}
.radarAxisLabel,.radarTitle{fill:var(--color-fg-default,var(--fgColor-default,#111827))!important;color:var(--color-fg-default,var(--fgColor-default,#111827))!important}
.radarCurve-4{stroke-width:1.5px!important;stroke-opacity:0.20!important}
.radarCurve-5{stroke-width:1.5px!important;stroke-opacity:0.30!important}
.radarCurve-6{stroke-width:1.5px!important;stroke-opacity:0.40!important}
.radarCurve-7{stroke-width:1.5px!important;stroke-opacity:0.50!important}
.radarCurve-8{stroke-width:1.75px!important;stroke-opacity:1.00!important}
.radarAxisLabel:nth-of-type(1){fill:#808A94!important}
.radarAxisLabel:nth-of-type(2){fill:#808A94!important}
.radarAxisLabel:nth-of-type(3){fill:#E5484D!important}
.radarAxisLabel:nth-of-type(4){fill:#808A94!important}
.radarAxisLabel:nth-of-type(5){fill:#808A94!important}
.radarAxisLabel:nth-of-type(6){fill:#808A94!important}
.radarAxisLabel:nth-of-type(7){fill:#E5484D!important}
.radarAxisLabel:nth-of-type(8){fill:#808A94!important}
.radarAxisLabel:nth-of-type(9){fill:#808A94!important}
themeVariables:
cScale0: "#62B5E5"
cScale1: "#62B5E5"
cScale2: "#62B5E5"
cScale3: "#62B5E5"
cScale4: "#F97316"
cScale5: "#F97316"
cScale6: "#F97316"
cScale7: "#F97316"
cScale8: "#F97316"
radar:
axisColor: "#9CA3AF"
graticuleColor: "#E5E7EB"
graticuleOpacity: 0
axisStrokeWidth: 1
curveOpacity: 0
---
radar-beta
axis b0["CCF c…n c…t lifecycle: 20,296 ops/s ▬ +1%"]
axis b1["CCF fresh JS invocation: 18,795 ops/s ▬ +2%"]
axis b2["CHAMP get: 62,860,651 ops/s ▼ 2%"]
axis b3["CHAMP put: 7,873,804 ops/s ▬ -1%"]
axis b4["KV deserialisation: 3,454,231 ops/s ▬ -1%"]
axis b5["KV serialisation: 2,812,940 ops/s ▬ -2%"]
axis b6["KV s…t deserialisation: 6,925 ops/s ▼ 3%"]
axis b7["KV snapshot serialisation: 7,228 ops/s ▬ -3%"]
axis b8["Q…S s…d context lifecycle: 24,041 ops/s ▬ 0%"]
curve stddev2_high["main EWMA + 2 std dev"]{103.28, 104.06, 104.20, 103.74, 104.55, 104.90, 104.60, 119.31, 103.51}
curve stddev1_high["main EWMA + 1 std dev"]{101.64, 102.03, 102.10, 101.87, 102.28, 102.45, 102.30, 109.65, 101.75}
curve stddev1_low["main EWMA - 1 std dev"]{98.36, 97.97, 97.90, 98.13, 97.72, 97.55, 97.70, 90.35, 98.25}
curve stddev2_low["main EWMA - 2 std dev"]{96.72, 95.94, 95.80, 96.26, 95.45, 95.10, 95.40, 80.69, 96.49}
curve branch_0["#8490 (4 runs earlier)"]{96.72, 97.04, 97.62, 97.81, 94.49, 98.40, 98.99, 98.33, 96.80}
curve branch_1["#8490 (3 runs earlier)"]{99.75, 100.88, 99.73, 99.72, 101.52, 101.27, 98.57, 84.55, 100.98}
curve branch_2["#8490 (2 runs earlier)"]{101.04, 100.84, 100.99, 101.73, 103.68, 100.97, 103.49, 121.33, 101.49}
curve branch_3["#8490 (1 run earlier)"]{101.17, 101.17, 101.19, 100.86, 103.31, 101.83, 102.47, 113.35, 101.28}
curve branch_4["#8490"]{101.21, 101.58, 97.76, 98.69, 99.03, 97.85, 96.73, 97.46, 100.41}
graticule polygon
max 136
min 66
ticks 0
showLegend false
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ed tx setup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…licy Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…subsystem test Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Reserved handles can derive signature-table writes from globally committed observations without recording read dependencies, bypassing the write-only check and requiring enforcement plus regression coverage for both methods.
1 open issue
What changed in this PR
This PR addresses #6188 for CCF 8.0 by separating signature metadata from ordinary live KV transactions, while preserving historical access and internal framework reads.
Changes:
- Adds live-access restrictions across C++, Rust, and JavaScript, plus write-only restrictions for reserved transactions.
- Moves framework readers to pinned materialised state and makes
/node/statenon-transactional and available before KV readiness. - Adds regression coverage and documents migration, governance, and recovery implications.
Custom instructions used
.github/copilot-instructions.md.github/instructions/reviewing.instructions.md.github/skills/testing/SKILL.md
| File | Description |
|---|---|
tests/programmability/restrictions.js |
Adds historical signature-table access probes. |
tests/programmability.py |
Tests live denial and historical access. |
tests/infra/network.py |
Uses /node/network for commit-wait transaction IDs. |
tests/governance.py |
Checks headerless /node/state responses. |
tests/e2e_operations.py |
Checks node-state responses after snapshot startup. |
tests/basic_rust.py |
Exercises Rust access-denial reporting. |
src/rust/ccf-app/src/lib.rs |
Adds, documents, and tests AccessDenied. |
src/rust/app_bridge.cpp |
Translates C++ access denial into Rust errors. |
src/node/test/snapshotter.cpp |
Uses reserved transactions for signature fixtures. |
src/node/test/snapshot.cpp |
Reads signatures through pinned state. |
src/node/test/network_identity_subsystem.cpp |
Supplies previous signed roots explicitly. |
src/node/test/history.cpp |
Updates signature fixtures and internal readers. |
src/node/test/historical_queries.cpp |
Adapts signature fixtures to restricted transactions. |
src/node/rpc/test/node_frontend_test.cpp |
Verifies node-state command registration. |
src/node/rpc/test/internal_tables_access_test.cpp |
Tests explicit recovery-root requirements. |
src/node/rpc/node_frontend.h |
Updates node-state routing and recovery-root reads. |
src/node/node_state.h |
Pins recovery and snapshot signature reads. |
src/node/internal_tables_access.h |
Accepts an explicit previous signed root. |
src/node/history.h |
Pins verification and snapshot-resume reads. |
src/node/gov/handlers/acks.h |
Separates signed-digest reads from acknowledgement transactions. |
src/kv/tx.cpp |
Enforces access roles and rollback checks. |
src/kv/tx_pimpl.h |
Stores transaction roles and rollback counters. |
src/kv/test/null_tx_history.h |
Updates comments to describe materialised reads. |
src/kv/test/kv_test.cpp |
Tests restrictions, pinned reads, and rollback handling. |
src/kv/test/kv_serialisation.cpp |
Adapts serialisation fixtures to transaction restrictions. |
src/kv/test/kv_contention.cpp |
Replaces reserved-read shortcuts with pinned ordinary transactions. |
src/kv/store.h |
Creates pinned views and exposes atomic rollback checks. |
src/kv/internal_table_names.h |
Centralises exact signature-table identification. |
src/kv/committable_tx.h |
Marks reserved transactions and rejects read dependencies. |
src/js/test/js.cpp |
Tests live denial and historical read-only permissions. |
src/js/permissions_checks.h |
Distinguishes current and historical signature access. |
src/js/extensions/ccf/kv.cpp |
Applies current-KV permission checks explicitly. |
src/js/extensions/ccf/historical.cpp |
Preserves restricted, read-only historical access. |
src/consensus/aft/test/view_straddling_rollback.cpp |
Adapts rollback regression to signature reservations. |
src/consensus/aft/test/view_straddling_history.cpp |
Adapts history regression to signature reservations. |
src/consensus/aft/test/view_straddling_common.h |
Provides signature-specific consensus fixtures. |
src/consensus/aft/test/main.cpp |
Separates ordinary and reserved transaction fixtures. |
samples/apps/basic_rust/src/lib.rs |
Adds a signature-access denial probe endpoint. |
include/ccf/rust_ffi.h |
Defines the cross-language access-denial result. |
include/ccf/kv/tx.h |
Checks access modes during handle acquisition. |
include/ccf/kv/map_access.h |
Introduces the MapAccessDenied exception. |
doc/releases/migration_7_x_to_8_x.rst |
Documents breaking changes and migration steps. |
doc/operations/recovery.rst |
Explains non-transactional recovery progress reporting. |
doc/governance/adding_member.rst |
Documents custom-constitution migration. |
doc/build_apps/kv/kv_how_to.rst |
Describes restrictions and supported alternatives. |
doc/audit/read_write_restrictions.rst |
Documents signature-table permission exceptions. |
.changes/live-signature-table-access.removed.md |
Records the user-facing removal and migration link. |
Review effort: Balanced
Track get_globally_committed() and has_globally_committed() calls on untyped::ChangeSet::read_globally_committed and reject them in ReservedTx::commit_reserved() without altering conflict tracking for ordinary transactions. Add regression coverage for both methods after compaction. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 61f0875e745e42518effc6023504da6e
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Materialised-prefix and rollback changes affect consensus and recovery invariants, requiring maintainer review and runtime concurrency/recovery validation beyond the available static inspection.
No open issues 🎉
Review effort: Max
Keep main's updated ML-DSA Service Identity bullets (including PQ COSE receipts) followed by the Signature-Transaction Tables section. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 61f0875e745e42518effc6023504da6e
There was a problem hiding this comment.
🟡 Changes recommended
The /node/state documentation overstates KV snapshot independence and should distinguish pinned replicated-view reads from the startup/recovery fallback while retaining the non-transactional guarantee.
1 open issue
Review effort: Max
Eddy Ashton (eddyashton)
left a comment
There was a problem hiding this comment.
One concern about MapAccessDenied, but non-blocking - if you disagree we can merge as-is, else I'll approve after that's changed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Consensus-critical KV visibility and rollback changes require maintainer review of synchronization invariants and concurrency, recovery, and 7.x compatibility results that could not be validated here.
No open issues 🎉
1 resolved since last review
Review effort: Max
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reconcile shared command exception handling with #8490. Preserve no-KV compaction retries and readiness re-evaluation, handle MapAccessDenied at the shared boundary, and cover it across all store readiness states. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>


Signature transaction versions are allocated before their writes are applied, so exposing the signature tables (
public:ccf.internal.signatures,public:ccf.internal.cose_signatures,public:ccf.internal.tree) as ordinary live KV inputs can surface stale/torn snapshots or produce writes from inputs matching no ledger prefix.For CCF 8.0, this PR excludes those three tables from ordinary live transactions across C++, Rust, and JavaScript, restricts
ReservedTxto write-only access on that table family, moves internal framework readers (verification, recovery, snapshot resume, governance state-digest updates, and/node/state) onto explicitly pinned materialised-prefix read-only views, and convertsGET /node/stateinto a non-transactional command endpoint.Closes #6188
Alternatives
MapAccessDeniedon lookup: rejected becauseuntyped::MapHandleanduntyped::MapDiffhave non-virtual methods over aChangeSet&(a throwing stub adds checks to every handle call while still throwing on the next call, and an empty stub would silently mask broken reads without safe write semantics). JS (ccf.kv[name]returning anILLEGALhandle that throwsTypeErroron access) and Rust (ctx.map(name)returningErr(BridgeError::AccessDenied)on operations) already report denial at operation time.Safety and compatibility
Tx,ReadOnlyTx, andTxDiffreject all typed and untyped handles topublic:ccf.internal.signatures,public:ccf.internal.cose_signatures, andpublic:ccf.internal.tree(an internal frameworkMapAccessDeniedexception handled byRpcFrontendwith500 InternalErrorin C++,BridgeError::AccessDeniedin Rust, andTypeErrorin current-KV JS application and governance contexts). Historical KV views, receipt APIs, and offline ledger parsing remain supported.ack.state_digestwhen adding or resetting members must remove those reads and use the existing:update/:ackstate-digest workflow (documented indoc/releases/migration_7_x_to_8_x.rstand.changes/live-signature-table-access.removed.md).GET /node/state: now a non-transactional command endpoint without thex-ms-ccf-transaction-idresponse header;last_signed_seqnoreports node progress rather than a KV snapshot, and the endpoint is served before the KV store is ready (including during public ledger recovery). Publishing progress fields without holdingNodeState::lockduring snapshot installation is implemented in stacked PR Serve /node/state without blocking on NodeState::lock during snapshot installation #8889.ReservedTxcannot retain read dependencies or write non-signature maps.bench-abCI shows no meaningful regression across throughput, latency, memory, or microbenchmarks.