Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'scrub access limited' SQL #3254

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

ChrisBAshton
Copy link
Contributor

The original intention was to keep this as the main copy of the SQL sanitisation script (the script that is applied to data when it is copied from Production to Integration in the nightly env sync). A code comment deleted here refers to https://github.com/alphagov/env-sync-and-backup/blob/master/sanitising-sql/sanitise_content_publisher_production.sql, which is the 'copy' of this main copy, and should be kept in sync.

The env sync process has since moved from env-sync-and-backup to govuk-helm-charts. The SQL script is referred to here: https://github.com/alphagov/govuk-helm-charts/blob/61d36eeb6339c13600f1c5cecc725a71ff593053/charts/db-backup/values.yaml#L329

...and the SQL script it is referring to lives here: https://github.com/alphagov/govuk-helm-charts/blob/main/charts/db-backup/scripts/content-publisher.sql

There is currently a TODO comment in that repo:

-- TODO: Fix the CI in alphagov/content-publisher to pull in this script
-- (perhaps via git submodule) instead of running tests against its own copy.

So let's do that.

This commit removes our local copy of the SQL sanitisation, and pulls in the remote copy instead (the version that is actually used in the env sync job, which is far more useful).

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

The original intention was to keep this as the main copy of the SQL
sanitisation script (the script that is applied to data when it
is copied from Production to Integration in the nightly env sync).
A code comment deleted here refers to https://github.com/alphagov/env-sync-and-backup/blob/master/sanitising-sql/sanitise_content_publisher_production.sql,
which is the 'copy' of this main copy, and should be kept in sync.

The env sync process has since moved from env-sync-and-backup to
govuk-helm-charts. The SQL script is referred to here:
https://github.com/alphagov/govuk-helm-charts/blob/61d36eeb6339c13600f1c5cecc725a71ff593053/charts/db-backup/values.yaml#L329

...and the SQL script it is referring to lives here:
https://github.com/alphagov/govuk-helm-charts/blob/main/charts/db-backup/scripts/content-publisher.sql

There is currently a TODO comment in that repo:

```
-- TODO: Fix the CI in alphagov/content-publisher to pull in this script
-- (perhaps via git submodule) instead of running tests against its own copy.
```

So let's do that.

This commit removes our local copy of the SQL sanitisation, and
pulls in the remote copy instead (the version that is actually
used in the env sync job, which is far more useful).
ChrisBAshton added a commit to alphagov/govuk-helm-charts that referenced this pull request Sep 16, 2024
@ChrisBAshton ChrisBAshton merged commit 9f2c706 into main Sep 18, 2024
12 checks passed
@ChrisBAshton ChrisBAshton deleted the remove-sanitisation-scripts branch September 18, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants