Skip to content

Allow configurable default admin and support user passwords. Also allow a different hostname for provisioning#624

Merged
adubovikov merged 6 commits into
sipcapture:masterfrom
fredericve:master
May 30, 2026
Merged

Allow configurable default admin and support user passwords. Also allow a different hostname for provisioning#624
adubovikov merged 6 commits into
sipcapture:masterfrom
fredericve:master

Conversation

@fredericve

@fredericve fredericve commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

This adds support for having another default provisioned user password for the admin and support users.

It also adds support to have a different hostname for postgres database provisioning. This is useful when a pgbouncer is in front of the postgres database which does not allow connecting as a superuser role by default. You can then bypass the pgbouncer by connecting to the database directly.

@kYroL01 kYroL01 requested a review from lmangani November 10, 2025 17:36
@fredericve fredericve changed the title Allow configurable default admin and support user passwords Allow configurable default admin and support user passwords. Also allow a different hostname for provisioning Mar 3, 2026
@fredericve

Copy link
Copy Markdown
Contributor Author

@lmangani Will you have any spare time soon to review this one?

Comment thread docker/docker-entrypoint.d/9 Outdated
… purposes.

When a pgbouncer is in front of the database it does not allow to
connect as a superuser by default.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates database provisioning so Docker deployments can use a separate provisioning host and configure the seeded admin/support password, while also adjusting database creation for environments like AWS RDS.

Changes:

  • Adds DB_PROVISIONING_HOST for provisioning commands.
  • Adds PROVISIONED_USERS_PASS and passes it to -force-password.
  • Splits database creation and ownership assignment into separate SQL statements.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
migration/migration.go Creates the database first, then alters ownership afterward.
docker/docker-entrypoint.d/9 Adds provisioning host/password environment handling and wires them into provisioning commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker/docker-entrypoint.d/9 Outdated
Comment thread docker/docker-entrypoint.d/9 Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread docker/docker-entrypoint.d/9 Outdated
Comment thread migration/migration.go
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@adubovikov adubovikov merged commit b98fed4 into sipcapture:master May 30, 2026
8 checks passed
@adubovikov

Copy link
Copy Markdown
Member

thank you

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.

4 participants