Skip to content

SPIKE - API Discovery for Cont. In Integration #24129

Closed

Description

@arlentees
  • Need to investigate how Legal API communicates with Min.io
  • How can we open the DRS up for client file submission
  • How do we best implement validation and sanitization?
  • Other security considerations such as Virus Scanning?
  • Do we need to continue with real time uploads and record creation?
  • Confirm that re-upload for updating documents replaces old documents
  • What does the flow look like for the client from their dashboard upon rejection?
  • What additional meta data is associated with each file?
  • Is the download link static and permanent?

Refer to flow in google docs: https://docs.google.com/document/d/1PuyKHYH_qLRdb1PtF6L2DV6MUty3o_B8/edit?usp=sharing&ouid=112197292679297628878&rtpof=true&sd=true

Activity

  1. arlentees commented on Nov 14, 2024

    @arlentees
    Author
  2. doug-lovett commented on Nov 18, 2024

    @doug-lovett
    Collaborator

    Can we also identify/confirm the DRS document types used by continuation in filiings?

  3. doug-lovett commented on Nov 19, 2024

    @doug-lovett
    Collaborator

    Thanks @flutistar, possible existing DRS document types to use:
    Type Class Description
    CNTA CORP Continuation in Authorization
    CNTI CORP Continuation In
    AFDV OTHER Affidavit Document
    CRTO OTHER Court Orders
    COSD CORP CORPS Supporting Documentation
    CORP_MISC CORP Corporations miscellaneous documents

    Or some new ones can be created: note that the document name is an optional DRS API property that could be used to distinguish documents.

  4. doug-lovett commented on Nov 19, 2024

    @doug-lovett
    Collaborator

    Here's my summary:
    Virus scanning:
    Possibly review requirement/solution with Thor. Consider implementing as a conditional doc api gateway flow step. Conditional on either the document type (public submissions) or as a flag.
    One option is documented here:
    https://cloud.google.com/architecture/automate-malware-scanning-for-documents-uploaded-to-cloud-storage
    Another option is using Google drive: upload the files to Google Drive which will provide virus scanning, retrieve the files via the Drive API then delete them from the Drive.
    If staff always review the public uploaded documents then the staff desktop scanning could be used. In this option staff should have the ability to delete documents (new API functionality).

    Document Types:
    New ones may be required, see my previous comment.

    Real-time upload or asynchronous?
    Continuation in filing volume is low, document file sizes are probably low, number of files per registration is low, so real-time is my recommendation.

    The MinIO SDK is replaced by the doc api: there is no direct access to the DRS GCP cloud storage buckets
    Doc API endpoint usage:
    First file upload, submit a POST /doc/api/v1/documents/{documentClass}/{documentType} with no request consumerDocumentId. The generated doc api consumerDocumentId returned in the response is the unique doc api identifier for the CONTI filing.
    For any subsequent document uploads include the previous response consumerDocumentId in the request.
    Use GET /doc/api/v1/searches/{documentClass}?consumerDocumentId= to fetch registration document information including download URL's.
    Use PATCH /doc/api/v1/documents/{docServiceId} to update individual document meta data.
    Use PUT /doc/api/v1/documents/{docServiceId} to update/replace a document.

    To permanently delete an individual document from storage:
    DELETE /doc/api/v1/documents/{docServiceId}
    To logically delete/remove a document record:
    PATCH /doc/api/v1/documents/{docServiceId} with request payload
    {
    "removed": true
    }

    The API endpoints are restricted to registries staff. Set up a service account with the staff role for these requests. The service account will be linked to the gateway API key. We could use the scanner app key.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions