Skip to content

Conversation

@LKajan
Copy link
Collaborator

@LKajan LKajan commented Jan 14, 2026

Change to personal database users and manage privileges by roles
Remove login roles and add group roles which have table privileges. Let organizations handle personal database accounts themselfs and assign a suitable role for a user.

There are now the following roles:

  • arho_dba (login role): the owner of db objects. Schema migrations are run by this user.
  • arho_admin: can manage users, has privilege to delete plans and plan matters.
  • arho_read_only: has only read privileges on arho tables.
  • arho_read_write: normal user that has edit permissions on arho tables except delete permission for the plan and plan matter tables.

Resolves #554

LKajan added 10 commits January 14, 2026 09:54
Remove login roles and add group roles which have table privileges. Let
organizations handle personal database accounts themselfs and assign a
suitable role for a user.

There are now the following roles:
- arho_dba (login role): the owner of db objects. Schema migrations are
    run by this user.
- arho_admin: can manage users, has privilege to delete plans and plan
    matters.
- arho_read_only: has only read privileges on arho tables.
- arho_read_write: normal user that has edit permissions on arho tables
    except delete permission for the plan and plan matter tables.
@LKajan LKajan merged commit 16e973a into main Jan 14, 2026
3 checks passed
@LKajan LKajan deleted the group-roles branch January 14, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Muokkaa käyttäjäjien luonti terraform-konfiguraatiossa

2 participants