read tis config from cdb_conf
This commit is contained in:
@@ -8,6 +8,7 @@ GRANT EXECUTE ON FUNCTION CDB_Username() TO "fulano";
|
||||
GRANT EXECUTE ON FUNCTION CDB_LinkGhostTables() TO "fulano";
|
||||
SELECT CDB_EnableGhostTablesTrigger();
|
||||
INSERT INTO cdb_conf (key, value) VALUES ('api_keys_fulano', '{"username": "fulanito", "permissions":[]}');
|
||||
INSERT INTO cdb_conf (key, value) VALUES ('invalidation_service', '{"host": "fake-tis-host"}');
|
||||
SET SESSION AUTHORIZATION "fulano";
|
||||
SET client_min_messages TO notice;
|
||||
\set QUIET off
|
||||
@@ -41,4 +42,5 @@ REVOKE EXECUTE ON FUNCTION CDB_Username() FROM "fulano";
|
||||
REVOKE SELECT ON cartodb.cdb_ddl_execution FROM "fulano";
|
||||
REVOKE ALL ON SCHEMA cartodb FROM "fulano";
|
||||
DROP ROLE "fulano";
|
||||
DELETE FROM cdb_conf WHERE key = 'api_keys_fulano' OR key = 'invalidation_service';
|
||||
\set QUIET off
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
|
||||
WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known.
|
||||
NOTICE: _CDB_LinkGhostTables() called with username=fulanito, ddl_tag=<NULL>
|
||||
|
||||
BEGIN
|
||||
0
|
||||
CREATE TABLE
|
||||
1
|
||||
WARNING: Invalidation Service error: Error -2 connecting fake-tis-host:3142. Name or service not known.
|
||||
NOTICE: _CDB_LinkGhostTables() called with username=fulanito, ddl_tag=CREATE TABLE
|
||||
COMMIT
|
||||
|
||||
|
||||
@@ -19,4 +19,5 @@ SET SESSION AUTHORIZATION postgres;
|
||||
REVOKE USAGE ON SCHEMA cartodb FROM fulano;
|
||||
REVOKE EXECUTE ON FUNCTION CDB_Username() FROM fulano;
|
||||
DROP ROLE fulano;
|
||||
DELETE FROM cdb_conf WHERE key = 'api_keys_fulano';
|
||||
\set QUIET off
|
||||
Reference in New Issue
Block a user