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

[database]: allow configuring of db username with DB_USERNAME envvar #6171

Merged
merged 1 commit into from Oct 12, 2021

Conversation

mrsimonemms
Copy link
Contributor

@mrsimonemms mrsimonemms commented Oct 12, 2021

Description

Currently, the DB usernames are all hard-coded to gitpod. This prevents usage with certain DB instances that cannot use that notation (eg, Azure which enforces usernames to be <username>@<hostname>). This allows configuration of the DB username with an envvar.

DB_USERNAME is used as it's already supported by the database-waiter component.

Related Issue(s)

Fixes #5508

How to test

Release Notes

Enable setting of DB username with DB_USERNAME envvar

Documentation

https://github.com/gitpod-io/website/issues/1065

@JanKoehnlein
Copy link
Contributor

LGTM, but I'd rather have a second pair of eyes look at that

/cc @AlexTugarev

@AlexTugarev
Copy link
Member

/lgtm

thanks for the reasonable explanation.
I don't expect any effects on gitpod.io

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 3ba14277adabbc0f2d7835e2bc95a3c1eba4ab41

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev

Associated issue: #5508

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit 90b0629 into main Oct 12, 2021
@roboquat roboquat deleted the sje/configurable-mysql-username branch October 12, 2021 10:19
@mrsimonemms
Copy link
Contributor Author

Have confirmed this now works as expected in Azure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow MySQL username to be configurable
4 participants