give web_anon records access
ci / build (push) Failing after 10m8s Details

This commit is contained in:
CJ_Clippy 2024-08-01 12:11:13 -08:00
parent f13ea55ba0
commit 8faa5e2195
3 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,7 @@ spec:
containerPort: {{ .Values.postgrest.port }}
env:
- name: PGRST_DB_ANON_ROLE
value: anonymous
value: web_anon
- name: PGRST_SERVER_PORT
value: "{{ .Values.postgrest.port }}"
- name: PGRST_DB_SCHEMAS

View File

@ -1,11 +1,11 @@
-- schema for @futureporn/capture and @futureporn/bot
-- records table schema
CREATE TABLE api.records (
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
url TEXT NOT NULL,
discordMessageId TEXT NOT NULL,
isAborted BOOLEAN DEFAULT FALSE
discord_message_id TEXT NOT NULL,
is_aborted BOOLEAN DEFAULT FALSE
);
-- roles & permissions for our backend automation user
GRANT all ON api.records TO automation;
GRANT SELECT ON api.discord_interactions TO web_anon;
GRANT SELECT ON api.records TO web_anon;

View File

@ -1,7 +1,7 @@
{
"name": "@futureporn/migrations",
"type": "module",
"version": "0.1.1",
"version": "0.2.1",
"description": "",
"main": "index.js",
"scripts": {