Skip to content
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

Create pg2ili_abwasser per default #540

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

cymed
Copy link
Contributor

@cymed cymed commented Jan 29, 2025

Currently, we re-create the schema pg2ili_abwasser every time someone imports or exports data (unless the datamodel is already present - in this case we just truncate all tables). This means that:

  1. We need to grant CREATE on the database to tww_user, which gives them access to a wide variety of potential misuses
  2. We effectively limit Interlis Import/export to one role, as only the owner of pg2ili_abwasser (which is the user that made the first import/export) can create/truncate the corresponding tables

This PR creates the schema pg2ili_abwasser on db creation and grants rights to tww_user, limiting the damage a tww_user can make and allowing multiple users to use the schema

@cymed cymed added datamodel Concerns the datamodel INTERLIS About INTERLIS exchange format (import / export) labels Jan 29, 2025
@cymed cymed self-assigned this Jan 29, 2025
@cymed cymed marked this pull request as ready for review January 31, 2025 07:32
@cymed cymed requested a review from ponceta January 31, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodel Concerns the datamodel INTERLIS About INTERLIS exchange format (import / export)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant