mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
Check pg_auth_type in pageserver authentication check
Co-Authored-By: John Spray <john@neon.tech>
This commit is contained in:
@@ -102,8 +102,8 @@ fn main() -> anyhow::Result<()> {
|
||||
let (conf, ignored) = initialize_config(&identity_file_path, &cfg_file_path, &workdir)?;
|
||||
|
||||
if !dev_mode {
|
||||
if matches!(conf.http_auth_type, AuthType::Trust) {
|
||||
bail!("Pageserver refuses to start with HTTP API authentication disabled.\n\
|
||||
if matches!(conf.http_auth_type, AuthType::Trust) || matches!(conf.pg_auth_type, AuthType::Trust) {
|
||||
bail!("Pageserver refuses to start with HTTP or PostgreSQL API authentication disabled.\n\
|
||||
Run with --dev to allow running without authentication.\n\
|
||||
This is insecure and should only be used in development environments.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user