Dotted Key Policy Impact Simulator: Preserve vs Expand vs Encode
Loading workflow…
Workflow Description
A self-contained workflow that simulates three dotted-key policies per record without touching the source payload: literal preserve, dot-path expansion, and reversible percent escaping. It counts collisions and changed values per policy, rejects records containing sensitive segments such as __proto__ via an If node while naming the path, applies a deterministic zero-loss-then-fewest-changes recommendation, merges both branches on separate inputs, and emits exactly one aggregated decision report including an encode/decode round-trip test per record.
How it works
- 1.Manual trigger fires; a Code node emits three fictional records (normal, a.b collision, sensitive segment)
- 2.Scan keys at all depths, count dotted keys, detect banned segments, build the decode map
- 3.Simulate preserve, expand and encode in isolated models, logging every collision before replacement
- 4.Decode the encoded model and compare it literally to the original snapshot
- 5.If routes sensitive records to rejection plus a NoOp audit checkpoint, safe records to approval
- 6.Merge joins both branches on independent inputs; the final Code node returns one decision report
Use cases
- Legacy metrics or settings pipelines with dotted fields before transformation
- Detecting literal a.b vs nested a.b collisions before migration
- Documenting a reversible key policy decision before production changes
Requirements
- No credentials - fully local execution
- For real data: feed the first Code node items with recordId and record of the same schema
- Declared escaping convention: % to %25 and dot to %2E
Setup and testing in n8n
- Import the JSON into n8n and click Execute Workflow
- Verify the single final item: 3 records, 2 approved, 1 rejected
- Check R2: one expansion collision, one changed value, preserve recommended
- Edge test: add a key containing %25 or an item without a record field
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (9)
Sticky: Overview and Setup
Sticky Note
Run Policy Simulator
Manual Trigger
Sticky: Sample Data Stage
Sticky Note
Emit Fictional Records
Code
Simulate Preserve Expand Encode
Code
Sensitive Segments Present?
If
Mark Record Rejected
Set
Approve With Recommendation
Set
Rejected Audit Checkpoint
No Op
Sticky: Routing and Report
Sticky Note
Join Decision Branches
Merge
Build Final Decision Report
Code
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides