MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / postgresqlHBAs

Function postgresqlHBAs

internal/pgbouncer/postgres.go:204–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204func postgresqlHBAs() []*postgres.HostBasedAuthentication {
205 // PgBouncer must connect over TLS using a SCRAM password. Other network
206 // connections are forbidden.
207 // - https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
208 // - https://www.postgresql.org/docs/current/auth-password.html
209
210 return []*postgres.HostBasedAuthentication{
211 postgres.NewHBA().Users(PostgresqlUser).TLS().Method("scram-sha-256"),
212 postgres.NewHBA().Users(PostgresqlUser).TCP().Method("reject"),
213 }
214}

Callers 3

PostgreSQLFunction · 0.85
TestPostgreSQLFunction · 0.85
TestPostgreSQLHBAsFunction · 0.85

Calls 5

NewHBAFunction · 0.92
MethodMethod · 0.80
TLSMethod · 0.80
UsersMethod · 0.80
TCPMethod · 0.80

Tested by 2

TestPostgreSQLFunction · 0.68
TestPostgreSQLHBAsFunction · 0.68