-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Create a non-root user for cockroach demo #54557
Copy link
Copy link
Closed
Labels
A-demoC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
Today, when you start cockroach demo, we start the interactive SQL session for root and the connection strings printed in the demo welcome text are customized for root. Instead, it would be great to:
- Auto-create a non-
rootuser and password - Log into the SQL shell with that user
- Customize the connection strings for that user
The connection strings in particular would encourage the best practice of using non-root users for app connections to the db.
I'm not certain about #2, however. It might be important for the auto-logged in user to have admin privileges, for example, to create new databases, grant privileges to other users, etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-demoC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)