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
{{ message }}
Repository navigation
Investigate: Determine which Filings Require Additional Validation to Prevent Unexpected Data from being Processed #30386
Note: additional data could be added (i.e. parties and offices) to the filing_json, consider only processing expected data in filer or adding validation to restrict tampering
changed the title [-]Investigate How to Prevent Tampering of Additional Data in Filing_json[/-][+]Investigate: How to Prevent Tampering of Data in Filing_json[/+]on Aug 26, 2025
@OlgaPotiagalova@meawong can you shed light on the business problem this is trying to solve? At a glance it's saying we need to avoid tampering but with filing json isn't it the case that all users are logged in (API or UI), and they can edit that json until the filing is completed at which time it is stored as a matter of record in our system?
changed the title [-]Investigate: How to Prevent Tampering of Data in Filing_json[/-][+]Investigate: How to Prevent Additional or Unexpected Data from Being Persisted to Filings[/+]on Oct 31, 2025
@mstanton1 I've updated the ticket name to hopefully more appropriately reflect the effort here. We want to ensure the filer is only processing expected data and doesn't inadvertently persist unexpected or additional data that could cause data integrity issues. Let me know if this makes sense.
tampering is usually a post fact thing, so that would be stopping internal support from changing what the customer delivered.
if you're looking to ensure that customers aren't submitting malicious data, then that effort should be focused on the API primarily - with enhanced validations, non-breaking use a strict schema validation, etc.
Yes, I was using this ticket to track the analysis effort to determine what areas require extra validation, whether in the API or filer. Once identified, the implementation effort was going to be tracked in #30387.
changed the title [-]Investigate: How to Prevent Additional or Unexpected Data from Being Persisted to Filings[/-][+]Investigate: Determine which Filings Require Additional Validation to Prevent Unexpected Data from being Processed[/+]on Oct 31, 2025
@meawong thanks for the clarity. So from what I understand, your focus isn't really tampering but ensuring the back-end validations are clear so they can be built into the API (#30387). And this is being done retroactively because the team had made decisions earlier to save time and not put validations in the back-end? If so this work is understood and necessary. Moving forward there have been discussions about starting with the back-end and using that to guide the front end behaviors.
@mstanton1 Yes, that’s correct, the focus isn’t on tampering, but on enhancing the existing back-end validations in legal-api. There are already validations in place, and this work is about adding additional safeguards to make filing data handling more comprehensive and resilient.
Validate that only the expected party roleTypes are included (#30387)
Impacted filings:
-> Incorporation Application
-> Continuation In
-> Conversion
-> Correction
-> Amalgamation Application
-> Registration
-> Change of Registration
-> Appoint Receiver
-> Intent to Liquidate
Validate that for an alteration filing, a business has a minimum of 3 directors before changing to legal type CC or CCC (#31162)
Activity
[-]Investigate How to Prevent Tampering of Additional Data in Filing_json[/-][+]Investigate: How to Prevent Tampering of Data in Filing_json[/+]mstanton1 commentedon Oct 31, 2025
@OlgaPotiagalova @meawong can you shed light on the business problem this is trying to solve? At a glance it's saying we need to avoid tampering but with filing json isn't it the case that all users are logged in (API or UI), and they can edit that json until the filing is completed at which time it is stored as a matter of record in our system?
[-]Investigate: How to Prevent Tampering of Data in Filing_json[/-][+]Investigate: How to Prevent Additional or Unexpected Data from Being Persisted to Filings[/+]meawong commentedon Oct 31, 2025
@mstanton1 I've updated the ticket name to hopefully more appropriately reflect the effort here. We want to ensure the filer is only processing expected data and doesn't inadvertently persist unexpected or additional data that could cause data integrity issues. Let me know if this makes sense.
cc: @OlgaPotiagalova
thorwolpert commentedon Oct 31, 2025
tampering is usually a post fact thing, so that would be stopping internal support from changing what the customer delivered.
if you're looking to ensure that customers aren't submitting malicious data, then that effort should be focused on the API primarily - with enhanced validations, non-breaking use a strict schema validation, etc.
meawong commentedon Oct 31, 2025
Yes, I was using this ticket to track the analysis effort to determine what areas require extra validation, whether in the API or filer. Once identified, the implementation effort was going to be tracked in #30387.
[-]Investigate: How to Prevent Additional or Unexpected Data from Being Persisted to Filings[/-][+]Investigate: Determine which Filings Require Additional Validation to Prevent Unexpected Data from being Processed[/+]mstanton1 commentedon Oct 31, 2025
@meawong thanks for the clarity. So from what I understand, your focus isn't really tampering but ensuring the back-end validations are clear so they can be built into the API (#30387). And this is being done retroactively because the team had made decisions earlier to save time and not put validations in the back-end? If so this work is understood and necessary. Moving forward there have been discussions about starting with the back-end and using that to guide the front end behaviors.
meawong commentedon Nov 3, 2025
@mstanton1 Yes, that’s correct, the focus isn’t on tampering, but on enhancing the existing back-end validations in legal-api. There are already validations in place, and this work is about adding additional safeguards to make filing data handling more comprehensive and resilient.
meawong commentedon Nov 4, 2025
Validate that only the expected party roleTypes are included (#30387)
Impacted filings:
-> Incorporation Application
-> Continuation In
-> Conversion
-> Correction
-> Amalgamation Application
-> Registration
-> Change of Registration
-> Appoint Receiver
-> Intent to Liquidate
Validate that for an alteration filing, a business has a minimum of 3 directors before changing to legal type CC or CCC (#31162)