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

fix: sa permission for communities source data #3510

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.186.3](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.186.2...v1.186.3) (2024-08-28)

### Bug Fixes

- sa permission for communities source data ([cc1d2e3](https://github.com/bcgov/CONN-CCBC-portal/commit/cc1d2e3e17e82d7807d078d1895cbfdb36958f7c))

## [1.186.2](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.186.1...v1.186.2) (2024-08-28)

### Bug Fixes
Expand Down
17 changes: 17 additions & 0 deletions db/deploy/tables/communities_source_data_001_service_account.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- Deploy ccbc:tables/communities_source_data_001_service_account to pg

BEGIN;

do
$grant$
begin

-- Grant ccbc_service_account permissions
perform ccbc_private.grant_permissions('select', 'communities_source_data', 'ccbc_service_account');
perform ccbc_private.grant_permissions('insert', 'communities_source_data', 'ccbc_service_account');
perform ccbc_private.grant_permissions('update', 'communities_source_data', 'ccbc_service_account');

end
$grant$;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Revert ccbc:tables/communities_source_data_001_service_account from pg

BEGIN;

revoke select on ccbc_public.communities_source_data from ccbc_service_account;
revoke update on ccbc_public.communities_source_data from ccbc_service_account;
revoke insert on ccbc_public.communities_source_data from ccbc_service_account;

COMMIT;
2 changes: 2 additions & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -650,3 +650,5 @@ mutations/edit_cbc_project_communities 2024-08-21T15:16:56Z Anthony Bushara <ant
@1.186.0 2024-08-27T20:55:46Z CCBC Service Account <[email protected]> # release v1.186.0
@1.186.1 2024-08-27T22:52:17Z CCBC Service Account <[email protected]> # release v1.186.1
@1.186.2 2024-08-28T15:58:56Z CCBC Service Account <[email protected]> # release v1.186.2
tables/communities_source_data_001_service_account 2024-08-28T16:32:48Z Rafael Solorzano <[email protected]> # grants service account to communities source data table
@1.186.3 2024-08-28T17:01:51Z CCBC Service Account <[email protected]> # release v1.186.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CONN-CCBC-portal",
"version": "1.186.2",
"version": "1.186.3",
"main": "index.js",
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git",
"author": "Romer, Meherzad CITZ:EX <[email protected]>",
Expand Down
Loading