Skip to content

Request that developers have permissions to dump Dev database(s) in GCP #30344

Closed

Description

@severinbeauvais

Previously, developers were able to connect to the Legal database in OCP and dump it for their local (debugging) use.

Now, most developers do not have permission to dump the Legal db in GCP.

This is conversation I had with Patrick last week:

image.png

However, Patrick's approach will require a lot of work to achieve, and even today we are running into issues with stale local databases. Here are unit test results in Dev:

image.png

However, the above work fine using a local, month-old database, so we cannot debug it locally.

It would also be difficult to maintain 3 local databases (Namex, Auth, Lear) in sync.

I am asking for a follow-up with Patrick to get his blessing (and permissions) to dump Dev databases only.

We could possibly allow a single person to dump the Dev db(s) and then share them. Then, only this person would need the GCP permission.

Activity

  1. added
    devops
    SRE
    Entities Team
    on Aug 21, 2025
  2. OlgaPotiagalova commented on Aug 22, 2025

    @OlgaPotiagalova
    Collaborator

    @pwei1018, could you please help to address this request? Thank you

  3. severinbeauvais commented on Sep 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    This may be mitigated by upcoming GCP config to give all developers IAM Access Management to the dbs.

    I'm still wondering how we can test things locally (and run unit tests) without affecting the Dev dbs (legal, auth, namex).

  4. pwei1018 commented on Sep 4, 2025

    @pwei1018
    Collaborator

    @severinbeauvais @OlgaPotiagalova As mentioned in the screenshot, downloading the product database to a local workstation is strictly against our security policy. Even if it's the Dev database, it still contains a copy of production data, and we cannot guarantee that it’s free of sensitive information.

    For frontend local development, please connect to Dev or Test services directly.
    For backend development, always use mock data to maximize unit test coverage.

    If you'd like to discuss this further, feel free to raise it in the Developer or SRE community of practices meetup.

  5. changed the title [-]Request that developers have permissions to dump Dev database(s)[/-] [+]Request that developers have permissions to dump Dev database(s) in GCP[/+] on Sep 8, 2025
  6. severinbeauvais commented on Oct 14, 2025

    @severinbeauvais
    CollaboratorAuthor

    @pwei1018 Could devs have a copy of the Sandbox db locally, since that should contain no production data?

    @argush3 Thoughts?

  7. argush3 commented on Oct 14, 2025

    @argush3
    Contributor

    Sandbox db is the production db obfuscated so probably not that ideal.

    Even if sandbox data wasn't production, you have an issue with the sandbox being out of date depending on when the sandbox db was updated.

  8. severinbeauvais commented on Oct 14, 2025

    @severinbeauvais
    CollaboratorAuthor

    Port forwarding (from Dev GCP db) should work for a lot of scenarios (thus allowing devs to directly use the Dev db).

    But, there are some scenarios where the structure of the db is updated, which should be tested locally.

  9. pwei1018 commented on Jan 23, 2026

    @pwei1018
    Collaborator

    Close this ticket. The current security policy: we are not allow anyone dump the database into local in all environments.

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

Metadata

Metadata

Assignees

Labels

Entities TeamPriority2SREdevopstechdebt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions