You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The constitution's `apply()` function may now write directly to public application (ie - non-governance) tables. Note that this access is _write-only_, so these tables can still not be read from. (#7088)
Copy file name to clipboardExpand all lines: doc/audit/read_write_restrictions.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,12 @@ CCF ensures that governance audit is possible offline from a ledger, by consider
49
49
- Governance code must never read from private tables. Doing so might make decisions which could not be reproduced from the ledger by an auditor (ie. without access to ledger secrets).
50
50
- Governance code must never read from application tables. Doing so might produce dependencies on data which was not signed by a member.
51
51
- Governance code running pre-approval must only have read access to tables, and never write.
52
-
- Governance code should not write to application tables, which could be modified further outside of governance.
53
52
- Application code must not modify governance tables, as it could do so without constitution approval.
54
53
55
54
.. note::
56
55
57
56
An important exemption here is that application code may still `read` from governance tables. This allows authentication, authorization, and metadata to be configured and controlled by governance, but affect the execution of application endpoints.
57
+
An additional restriction was present until v7.0: "Governance code should not write to application tables, which could be modified further outside of governance". This was determined to be too strict, and prevents governance directly bootstrapping (or correcting) application table state, so was removed.
58
58
59
59
..
60
60
A link to this page is included in the CCF source code, and returned in error messages.
@@ -75,9 +75,9 @@ The possible access permissions are elaborated in the table below:
0 commit comments