Closed helio-frota closed 2 months ago
@helio-frota I attempted to reproduce this manually by setting an invalid password in for the url using the sqlx example and I added a couple of integration tests (#64) to try to reproduce the problem. I was unable to reproduce the behavior you are seeing. Is it possible that the password for the postgres
user is being explicitly set to "aaaaaaaaaaaaaa"? If you could provide a complete and concise example that reproduces the problem, it would help me understand where the issue might be.
@brianheineman thanks for quick response :+1:
Yes we have an example that is quick and easy to reproduce
We can also delete this directory .trustify/
:
➜ trustify git:(main) cd .trustify/
➜ .trustify git:(main) ls
data/ postgres/ storage/
extra feedback: https://github.com/trustification/trustify/pull/226#issuecomment-2090437410 and https://github.com/trustification/trustify/pull/226#issuecomment-2091043690
thanks
update:
Is it possible that the password for the postgres user is being explicitly set to "aaaaaaaaaaaaaa"?
Yes, in this case it was. It means we can set any password? if yes then that is not an issue ( I think :man_shrugging: )
update 2:
a) there is the default password and we can update the password b) there is no default password and we can define the password
We are doing b) there is no default password and we can define the password
let settings = postgresql_embedded::Settings {
username: self.database.username.clone(),
password: self.database.password.clone(),
temporary: false,
installation_dir: db_dir.clone(),
timeout: Some(Duration::from_secs(30)),
data_dir,
..Default::default()
};
let mut postgresql = PostgreSQL::new(PostgreSQL::default_version(), settings);
postgresql.setup().await?;
postgresql.start().await?;
Your unit tests are using default
settings
let mut postgresql = PostgreSQL::default();
postgresql.setup().await?;
postgresql.start().await?;
there is nothing wrong if we can define a password, I just got confused thinking that the default password was postgres
and we should use that default password :+1:
Thanks, I'm ok closing this issue :+1:
Hi :+1:
This is working with any password... is that the default behavior ?
connect to postgres://postgres:aaaaaaaaaaaaaa@localhost:46341/
thanks