The grant account_devices never had #7

Closed
paulhitt wants to merge 0 commits from fix/account-devices-grant into main
paulhitt commented 2026-09-03 16:35:35 +00:00 (Migrated from gitlab.com)

🔴 Android sign-in returned "something went wrong on the server" for every attempt: POST /sessions hit permission denied for table account_devices and returned a 500.

010_accounts.sql ends with GRANT ... ON ALL TABLES IN SCHEMA, which reads like a standing rule and is not one — it grants what exists when it runs. 020 and 030 both carry their own GRANT for that reason; 040 did not.

Production has been granted directly and sign-in verified (401 for bad credentials, not 500). This fixes the source so a fresh deploy does not repeat it.

The new test asserts every table created outside 010 is granted to accounts_service, and was confirmed to fail with the grant removed and pass with it restored.

🔴 Android sign-in returned "something went wrong on the server" for every attempt: POST /sessions hit `permission denied for table account_devices` and returned a 500. `010_accounts.sql` ends with `GRANT ... ON ALL TABLES IN SCHEMA`, which reads like a standing rule and is not one — it grants what exists when it runs. 020 and 030 both carry their own GRANT for that reason; 040 did not. Production has been granted directly and sign-in verified (401 for bad credentials, not 500). This fixes the source so a fresh deploy does not repeat it. The new test asserts every table created outside 010 is granted to `accounts_service`, and was confirmed to **fail** with the grant removed and pass with it restored.
paulhitt commented 2026-09-03 17:55:48 +00:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>caf50d89 - Close the public share link</li></ul> [Compare with previous version](/paulhitt/flamenet-files/-/merge_requests/7/diffs?diff_id=2003329634&start_sha=845bd6fb55142dead2f774c18faedbde111a42f6)
paulhitt commented 2026-09-21 21:00:18 +00:00 (Migrated from gitlab.com)

Closed in an end-of-day sweep on 2026-09-21, unreviewed since 3 September. The source branch fix/account-devices-grant is kept, so nothing is lost and this can be reopened.

Closed in an end-of-day sweep on 2026-09-21, unreviewed since 3 September. The source branch fix/account-devices-grant is kept, so nothing is lost and this can be reopened.
paulhitt (Migrated from gitlab.com) closed this pull request 2026-09-21 21:00:18 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No labels
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: extant2000/flamenet-files#7