Skip to content

Investigate: Determine which Filings Require Additional Validation to Prevent Unexpected Data from being Processed #30386

Closed

Description

@meawong

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

Implementation will be completed in #30387

Activity

  1. added
    Entities Team
    on Aug 26, 2025
  2. added theissue type on Aug 26, 2025
  3. 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
  4. mstanton1 commented on Oct 31, 2025

    @mstanton1
    Collaborator

    @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?

  5. 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
  6. meawong commented on Oct 31, 2025

    @meawong
    CollaboratorAuthor

    @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

  7. thorwolpert commented on Oct 31, 2025

    @thorwolpert
    Collaborator

    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.

  8. meawong commented on Oct 31, 2025

    @meawong
    CollaboratorAuthor

    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.

  9. 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
  10. mstanton1 commented on Oct 31, 2025

    @mstanton1
    Collaborator

    @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.

  11. meawong commented on Nov 3, 2025

    @meawong
    CollaboratorAuthor

    @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.

  12. meawong commented on Nov 4, 2025

    @meawong
    CollaboratorAuthor

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions