Merge pull request #67 from CartoDB/add_needed_security_changes_for_v2

Add security definer to connect redis function too
This commit is contained in:
Mario de Frutos
2016-01-26 13:16:37 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ RETURNS boolean AS $$
'redis_metrics_connection': redis_metrics_connection,
}
return True
$$ LANGUAGE plpythonu;
$$ LANGUAGE plpythonu SECURITY DEFINER;
-- Get the Redis configuration from the _conf table --
CREATE OR REPLACE FUNCTION cdb_geocoder_server._get_geocoder_config(username text, orgname text)

View File

@@ -54,4 +54,4 @@ RETURNS boolean AS $$
'redis_metrics_connection': redis_metrics_connection,
}
return True
$$ LANGUAGE plpythonu;
$$ LANGUAGE plpythonu SECURITY DEFINER;