mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 05:50:38 +00:00
Merge pull request #2678 from neondatabase/stas/hotfix_schema
Hotfix to disable grant create on public schema
This commit is contained in:
@@ -423,11 +423,11 @@ pub fn handle_grants(node: &ComputeNode, client: &mut Client) -> Result<()> {
|
||||
);
|
||||
db_client.simple_query(&alter_query)?;
|
||||
|
||||
// Explicitly grant CREATE ON SCHEMA PUBLIC to the web_access user.
|
||||
// This is needed since postgres 15, where this privilege is removed by default.
|
||||
let grant_query: String = "GRANT CREATE ON SCHEMA public TO web_access".to_string();
|
||||
info!("grant query for db {} : {}", &db.name, &grant_query);
|
||||
db_client.simple_query(&grant_query)?;
|
||||
// // Explicitly grant CREATE ON SCHEMA PUBLIC to the web_access user.
|
||||
// // This is needed since postgres 15, where this privilege is removed by default.
|
||||
// let grant_query: String = "GRANT CREATE ON SCHEMA public TO web_access".to_string();
|
||||
// info!("grant query for db {} : {}", &db.name, &grant_query);
|
||||
// db_client.simple_query(&grant_query)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user