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

Remove password from ConnectionInfo #697

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vrmiguel
Copy link
Member

@vrmiguel vrmiguel commented Apr 4, 2024

No description provided.

Copy link
Contributor

@sjmiller609 sjmiller609 left a comment

Choose a reason for hiding this comment

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

This looks right to me, but I think it may break on deserialization on the control plane end, so you have to carefully coordinate right correct order of merges for this one.

Good to go when you believe it's the right order of merging, i.e. issues handled control plane side, and you also make sure app and readonly users' passwords not getting sent to control plane either

@@ -59,7 +59,6 @@ pub struct ConnectionInfo {
pub pooler_host: Option<String>,
pub port: u16,
pub user: String,
pub password: String,
pub app_user: String,
pub app_password: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

what about app password?

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought there is also readonly user, but I'm not sure where that info is

@@ -303,7 +303,6 @@ pub async fn get_pg_conn(
pooler_host,
port: 5432,
user: postgres_user,
password: postgres_pw,
app_user,
app_password: app_pw,
Copy link
Contributor

Choose a reason for hiding this comment

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

same

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