Skip to content

feat: databases on user - #151

Closed
aviau wants to merge 1 commit into
pgdogdev:mainfrom
aviau:databases-on-user
Closed

aviau wants to merge 1 commit into
pgdogdev:mainfrom
aviau:databases-on-user

Conversation

@aviau

@aviau aviau commented Oct 12, 2026

Copy link
Copy Markdown

PgDog's users.toml supports a databases list on a user, but the chart only renders database, so a user with access to several databases has to be duplicated once per database.

This renders databases = [...] when databases is set on a user, and falls back to database otherwise (pgdog gives databases precedence anyway).

  • templates/secrets.yaml: render databases
  • values.yaml / README.md: document it
  • test/values-multiple-databases.yaml + test/test.sh: assert both forms render
  • Bump chart to v0.89

🤖 Generated with Claude Code

Comment thread test/test.sh Outdated

# Validate multiple databases renders valid TOML
echo ""
echo "==> Validating multiple databases TOML output..."

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.

This test script is deprecated, could you please remove this diff. 🙏

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure, done.

Comment thread test/values-multiple-databases.yaml Outdated
@@ -0,0 +1,18 @@
# Test multiple databases per user

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.

You don't need a dedicated test file here, you can just put databases: into any of the existing ones.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread README.md Outdated
Set `authType` on a user to override the general `authType` setting. It accepts
the same values and renders as `auth_type` in `users.toml`.

Set `databases` on a user to a list of database names to give it access to

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.

Our docs cover this already. We need to clean up this README to only contain chart-related info.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yeah ok, done.

@aviau
aviau force-pushed the databases-on-user branch from cd767ec to 8f64a2d Compare October 12, 2026 02:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aviau
aviau force-pushed the databases-on-user branch from 8f64a2d to db96848 Compare October 12, 2026 02:12
@aviau aviau closed this Oct 12, 2026
@aviau

aviau commented Oct 12, 2026

Copy link
Copy Markdown
Author

Released as 093eb94

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.

2 participants