1 write to PasswordParameter
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
29PasswordParameter = password;
10 references to PasswordParameter
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
25builder.WithParameter("administratorLoginPassword", postgresResource.PasswordParameter);
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (2)
86context.EnvironmentVariables[PasswordEnvVarName] = postgresServer.PasswordParameter; 194writer.WriteString("PasswordExecCommand", $"echo '{postgresInstance.PasswordParameter.Value}'"); // HACK: Generating a pass file and playing around with chmod is too painful.
PostgresServerResource.cs (1)
54$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}");
Aspire.Hosting.PostgreSQL.Tests (6)
AddPostgresTests.cs (6)
32Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.PasswordParameter.Default?.GetType().FullName); 42Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.PasswordParameter.Default?.GetType().FullName); 163Assert.Equal($"Host=localhost;Port=2000;Username=postgres;Password={postgres.Resource.PasswordParameter.Value}", connectionString); 483Assert.Equal($"echo '{pg1.Resource.PasswordParameter.Value}'", servers.GetProperty("1").GetProperty("PasswordExecCommand").GetString()); 493Assert.Equal($"echo '{pg2.Resource.PasswordParameter.Value}'", servers.GetProperty("2").GetProperty("PasswordExecCommand").GetString()); 617password = "{postgresDatabase.Parent.PasswordParameter.Value}"