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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,11 +81,11 @@ See [discussion here](https://github.com/SuffolkLITLab/docassemble-AssemblyLine/
81
81
Answer set JSON imports are intentionally restricted to reduce risk from malformed and malicious payloads.
82
82
83
83
Default behavior:
84
-
- Plain JSON values are imported by default, and object reconstruction is allowed only for allowlisted DAObject classes.
85
-
- Top-level variable names must match `^[A-Za-z][A-Za-z0-9_]*$`.
86
-
- Internal/protected variable names are blocked.
87
-
- If `answer set import allowed variables` is not set, imports use a denylist-only policy for backwards compatibility.
88
-
- Object payloads can be imported when classes are allowlisted; by default, known `docassemble.base` and `docassemble.AssemblyLine` DAObject descendants are allowed.
84
+
- Plain JSON values are imported by default, and object reconstruction is allowed only for allowlisted DAObject classes.
85
+
- Top-level variable names must match `^[A-Za-z][A-Za-z0-9_]*$`.
86
+
- Internal/protected variable names are blocked.
87
+
- If `answer set import allowed variables` is not set, imports allow safe variable names by default, still block protected/internal names, and intersect with the target interview's known variables when AssemblyLine can detect them.
88
+
- Object payloads can be imported when classes are allowlisted; by default, known `docassemble.base` and `docassemble.AssemblyLine` DAObject descendants are allowed.
89
89
90
90
Default import limits (`assembly line: answer set import limits`):
- Default allowlist: unset (`answer set import allowed variables` omitted), to avoid breaking existing interviews unexpectedly.
99
+
- Default allowlist: unset (`answer set import allowed variables` omitted), which falls back to safe-name/protected-name checks plus target-interview variable detection when available.
100
100
- Recommended production policy: set an explicit allowlist to only shared/reusable variables in your jurisdiction.
101
101
- `answer set import allow objects`defaults to `true`; set it to `false` if you want strict plain-JSON-only imports.
102
102
- `answer set import allowed object classes`can extend the default DAObject class allowlist with explicit additional class paths.
0 commit comments