Skip to content

Conversation

@xar
Copy link
Owner

@xar xar commented Jun 28, 2025

Implements automatic database user creation during instance setup to resolve the missing password issue.

Changes

  • Add password field to PostgreSQL instance configuration
  • Implement secure password generation using crypto.randomBytes
  • Create database and user automatically after initdb
  • Configure remote connection support by default
  • Update CLI to display credentials and connection info
  • Enhance connection-string command with password support

Resolves

Closes #34

Generated with Claude Code

- Add password field to PostgreSQLInstanceConfig.spec.database
- Implement automatic database and user creation during instance setup
- Generate secure random passwords using crypto.randomBytes
- Create database and user with proper privileges after initdb
- Update CLI to display user credentials after instance creation
- Enhance connection-string command to include passwords in URIs
- Configure default settings for remote connections (bind 0.0.0.0, allow all hosts)
- Add connection info display in start command

Resolves remote connection issue by ensuring database users exist with passwords

Co-authored-by: Samuel <xar@users.noreply.github.com>
@xar xar merged commit f27b334 into main Jun 28, 2025
1 of 2 checks passed
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.

What is default password for new db?

2 participants