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

PostgreSQL migration script requires database superuser to create uuid-ossp extension #7

Open
dfn-certling opened this issue Feb 23, 2021 · 0 comments

Comments

@dfn-certling
Copy link
Contributor

In our setup we have a dedicated database user for Dependency-Track that owns the database in order to create tables, but is not a superuser in the database cluster.

As long as that setup is not unusual, creating the uuid-ossp extension in the migration script is a problem since it requires superuser privileges. If run as a superuser the extension can be created, but all tables created by the migration belong to the superuser breaking the application due to missing permissions on these new objects. If run as the regular user, the extension cannot be created and the migration fails.

As a workaround one can create the extension as a superuser before running the script.

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

No branches or pull requests

1 participant