Difference between revisions of "Postgrest row level security via postgres"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
Let's enable debug and go in as root to add extension | Let's enable debug and go in as root to add extension | ||
+ | |||
+ | postgresql.values.yaml | ||
``` | ``` | ||
tls: | tls: | ||
Line 14: | Line 16: | ||
autoGenerated: true | autoGenerated: true | ||
primary: | primary: | ||
− | |||
− | |||
− | |||
containerSecurityContext: | containerSecurityContext: | ||
enabled: true | enabled: true | ||
Line 27: | Line 26: | ||
diagnosticMode: | diagnosticMode: | ||
enabled: true | enabled: true | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | helm upgrade --install postgresql bitnami/postgresql -f postgresql.values.yaml --set audit.pgAuditLog=all | ||
``` | ``` | ||
Revision as of 21:52, 27 April 2023
postgres=# CREATE EXTENSION IF NOT EXISTS pgjwt WITH SCHEMA ext_pgjwt; ERROR: extension "pgjwt" is not available DETAIL: Could not open extension control file "/opt/bitnami/postgresql/share/extension/pgjwt.control": No such file or directory. HINT: The extension must first be installed on the system where PostgreSQL is running.
Let's enable debug and go in as root to add extension
postgresql.values.yaml
tls: enabled: true autoGenerated: true primary: containerSecurityContext: enabled: true # runAsUser: 1001 runAsUser: 0 service: type: LoadBalancer annotations: metallb.universe.tf/address-pool: pool1 diagnosticMode: enabled: true
helm upgrade --install postgresql bitnami/postgresql -f postgresql.values.yaml --set audit.pgAuditLog=all
# apt-get install postgresql-server-dev-all # cd /root/ /root # git clone https://github.com/michelp/pgjwt.git cd pgjwt /root/pgjwt# make install
output
/bin/mkdir -p '/opt/bitnami/postgresql/share/extension' /bin/mkdir -p '/opt/bitnami/postgresql/share/extension' /usr/bin/install -c -m 644 .//pgjwt.control '/opt/bitnami/postgresql/share/extension/' /usr/bin/install -c -m 644 .//pgjwt--0.1.1.sql .//pgjwt--0.1.0--0.1.1.sql .//pgjwt--0.1.1--0.2.0.sql '/opt/bitnami/postgresql/share/extension/'