Skip to content

2. Database Changes - SRE #32229

Closed
Closed

Description

@vikas-gov
  • Backup/Restore to new db (postgres 15): SRE to handle core DB backup
  • Syncing: Sync latest DB changes with the sandbox DB (including permission entries).

Activity

  1. added
    Entities Team
    on Jan 29, 2026
  2. changed the title [-]2. Database Changes[/-] [+]2. Database Changes - SRE[/+] on Jan 29, 2026
  3. added
    SRE
    on Jan 29, 2026
  4. pwei1018 commented on Jan 29, 2026

    @pwei1018
    Collaborator
    1. There are two databases in the Sandbox environment. We need to decide whether to load the data into one of them or create a new database to replace both.
    2. For security purposes, we need to define data‑masking rules for all business data.
      https://docs.google.com/spreadsheets/d/1Ii-4Eh1JzwzUdzrcKmPLYqVFYIzE8YWzeyzTomjyKso/edit?gid=0#gid=0
      https://docs.google.com/spreadsheets/d/1chUOgbTrW1tAC0cibXi4nsPWfdpMCg5gsKuMbSFCJbU/edit?gid=0#gid=0
      https://github.com/bcgov-registries/analytics/tree/main/data_warehouse/sql/mask
    • To be reviewed and confirm to SRE team in terms of data masking rules for Sandbox DB.
    1. Define the data synchronization interval and determine whether it will be performed manually or through automation.
    • If this is needed all DBs will need to be refreshed. To determine, if this refresh is automatic or manual needs further discussion post this activity.
    1. Configure the database migration job.
    • To be reviewed post this activity.
    1. LEAR sandbox DB - can it be deleted?
    • Yes after this activity
  5. bolyachevets commented on Jan 29, 2026

    @bolyachevets
    Collaborator

    Screenshot 2026-01-29 at 11.53.20 AM.png

    also, i already synced those dbs 3 weeks ago
  6. mstanton1 commented on Feb 2, 2026

    @mstanton1
    Collaborator

    @pwei1018 I have engaged @thorwolpert and Greg for input into the data masking. You've been included in that.

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

Metadata

Metadata

Assignees

Labels

Entities TeamSRE

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions