Skip to content

Spike - Upgrade Minio or Switch to DRS #33954

Closed

Description

@mstanton1

The modernized registry application uses DRS for document storage in most cases. We have some edge cases in Entities (e.g. Continuation In) where an upload goes to Minio and then weekly jobs are run to store those uploaded documents in DRS.

SRE has advised:

_We have received notification from the Platform Services team that all remaining services in the OpenShift Silver cluster must be upgraded or migrated by August 15.
The impacted services are:

Entity:
Minio_

Review is require to understand what work would be needed to switch off of Minio all together. Ideally, rather than expend effort upgrading something that will no longer be used long term we would just leverage the DRS solution.

Activity

  1. added
    Entities Team
    on Jun 24, 2026
  2. mruff-aeq commented on Jun 25, 2026

    @mruff-aeq
    Collaborator

    @kialj876

    Repo Direct MinIO? How
    business-create-ui ✅ Yes getPresignedUrl() → uploadToUrl() (axios PUT) — ContinuationIn, Incorporation, Dissolution
    business-edit-ui ✅ Yes FileUploadPdf.vue → getPresignedUrl()/uploadToUrl() — Special Resolution
    business-filings-ui ✅ Yes FileUploadPdf.vue → BusinessServices.getPresignedUrl()/uploadToUrl()
    business-dashboard-ui ✅ Yes utils/file-upload.ts → useFetch(url, {method:'PUT'}); bcros/FileUpload.vue
    bcrs-shared-components ❌ No Uses DRS (Document Record Service) API at DOC_API_URL, not MinIO
    business-ui ❌ No No upload flow (only a stray preSignedUrl interface field)
    registries-search ❌ No —
    person-search ❌ No —
  3. mruff-aeq commented on Jun 25, 2026

    @mruff-aeq
    Collaborator
  4. mstanton1 commented on Jul 9, 2026

    @mstanton1
    CollaboratorAuthor

    As per refinement July 9th Doug will complete the API updates and the Entities team will complete remaining work. We will not be using the actual component built by the eGress in the front end due to our older tech stack.

  5. mruff-aeq commented on Jul 10, 2026

    @mruff-aeq
    Collaborator

    Legal Api Migration Steps:

    #StepFile(s)
    1Build new upload endpoint: UI sends PDF, API stores in DRS, returns DRS document idlegal-api/src/legal_api/resources/v2/document.py
    2Change document GET endpoint to fetch PDF from DRS instead of Minioresources/v2/document.py
    3Change document DELETE endpoint to remove document in DRS instead of Minioresources/v2/document.py
    4Move PDF checks (letter size, 30MB max, not encrypted) to run at upload timeservices/filings/validations/common_validations.py
    5Update draft-filing delete so it cleans up files in DRS instead of Minioresources/v2/business/business_filings/business_filings.py
    6Update filing document downloads to serve stored files from DRS instead of Minioresources/v2/business/business_filings/business_documents.py
    7Update static reports (ULC director affidavit) to pull from DRS instead of Minioreports/report.py
    8Pick DRS document class/type for ContinuationIn authorization files (mapping missing today)reports/document_service.py (FILING_DOCUMENTS)
    9Migrate leftover Minio files into DRS, update stored keysdocuments table (file_key column) — migration script
    10Handle in-flight draft filings still referencing old Minio keysfilings table (filing_json file keys)
    11Remove Minio code, config, and dependency from legal-apiservices/minio.py, config.py, pyproject.toml, services/__init__.py
    12Update the 4 UIs to call new upload endpoint instead of presigned Minio URLslegal-services.ts (create/edit), business-services.ts (filings), utils/file-upload.ts (dashboard), FileUploadPdf.vue
    13Retire the weekly Minio-to-DRS sync jobnot in lear — external job, owner TBD
    14Shut down Minio deployment in Silver (deadline Aug 15)OpenShift Silver config — devops
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

    Entities Team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions