-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3882 - EDW API - DB User Part 1 #4211
Conversation
92788a3
to
8d5873a
Compare
Please apply the command upgrade 'make upgrade NAMESPACE={{dev-namespace}}', which is working and confirm if the commands above is enough to access the schema and its objects. I think you may not need Please confirm. Also provide proof of upgrade in dev as a screenshot. Thanks |
Thanks @guru-aot HELM Upgrade screenshot added. |
Note: Above permission is needed to view all table in SIMS schema for DB Beaver(not tested) and Datagrip(tested). |
sources/Makefile
Outdated
@@ -262,3 +262,23 @@ connect-prod-db: | |||
@echo "Use your prefered DB Manager (e.g. pgAdmin or DBeaver) to connect to the Postgres database using the local port 5757." | |||
@oc project 0c27fb-prod | |||
@oc port-forward services/simsdb-pgbouncer 5757:5432 | |||
connect-dev-db-superuser: | |||
@echo "Forward local port 5454 to Openshift master pod default port." | |||
@echo "Use your prefered DB Manager (e.g. pgAdmin or DBeaver) to connect to the Postgres database using the local port 5454." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor spelling not right on prefered
preferred
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dheepak-aot ,
All words of prefered
is changed to preferred
.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing the changes @bidyashish . Looks good 👍
Please update the wiki(if not already updated) with the SQL scripts for read-only-user.
And also add release instructions to execute the SQL pertaining to read-only-user https://app.zenhub.com/workspaces/student-information-management-system-5fce9df5aa1b45000e937014/issues/zh/276
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice work @bidyashish
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes, looks good 👍
Technical
Need to create a read only DB user for the EDW API rather than using the admin user.
Demo
HELM Upgrade
make upgrade NAMESPACE=a6ef19-dev
Crunchy
read-only-user
setupSteps to Perform in Master Node of Postgres
connect-[ENV]-db-superuser
for each environment from~/sources/makefile
eg.make connect-dev-db-superuser MASTER_POD=pod_id
user
andpassword
.Wiki Updated to https://github.com/bcgov/SIMS/wiki/DevOps-and-Running-the-Application#crunchy-backup-and-restore
Need to update User to
EDW Repo
https://github.com/bcgov/aest-api/blob/bdb09cefe7fbf761624109cac0d193072cc70de1/openshift/sims_dc.yaml#L101C29-L101C60