Rafa de la Torre
1b815d0674
Improve function inline doc
2019-10-14 15:52:59 +02:00
Rafa de la Torre
c2ed259a2c
Add the ST_Transform only when needed
2019-10-14 15:52:59 +02:00
Rafa de la Torre
2288629765
Generate view mapping columns to CDB names
2019-10-14 15:52:59 +02:00
Rafa de la Torre
4c7d6c4564
Add a couple function asserts
2019-10-14 15:52:59 +02:00
Rafa de la Torre
4861a21e81
Check for numeric id column
2019-10-14 15:52:59 +02:00
Rafa de la Torre
42a16070c9
Marginally improve test case data
2019-10-14 15:52:59 +02:00
Rafa de la Torre
2b1046dec3
Basic implementation of CDB_SetUp_PG_Federated_Table (WIP)
2019-10-14 15:52:59 +02:00
Rafa de la Torre
2b0aca2d08
Rename private functions
...
Rename __cdb_* "private" functions to __ft_*, kind of a namespace to
avoid name clashing.
2019-10-14 15:52:59 +02:00
Rafa de la Torre
32eae57551
__cdb_add_default_options function and tests
2019-10-14 15:52:59 +02:00
Rafa de la Torre
45f60e06b7
__cdb_credentials_to_user_mapping function & test
2019-10-14 15:52:59 +02:00
Rafa de la Torre
46347249cb
Minimal implementation
2019-10-14 15:52:59 +02:00
Rafa de la Torre
e24c550195
Simplify setup and teardown of fdw_target
2019-10-14 15:52:59 +02:00
Rafa de la Torre
1a587c3101
Extract setup and teardown of fdw_target
2019-10-14 15:52:59 +02:00
Rafa de la Torre
8e005e556e
Skeleton for CDB_SetUp_PG_Federated_Server
2019-10-14 15:52:59 +02:00
Raul Marin
b68ce72889
Release 0.31.0
2019-10-08 12:47:32 +02:00
Raúl Marín
7a23ea815c
Merge pull request #371 from Algunenano/sec_definer
...
Sec definer
2019-10-08 12:32:26 +02:00
Raul Marin
2533d0996c
Add NEWs
2019-10-03 18:59:01 +02:00
Raul Marin
048234cd80
CDB_Groups_API: Secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
5a12033609
Adapt tests to changes
2019-10-03 18:58:27 +02:00
Raul Marin
a580bedefc
Set safe schema on some functions
2019-10-03 18:58:27 +02:00
Raul Marin
0e891eff7f
Remove cartodb from search path
...
All calls to the extension functions should, and are,
be properly qualified, so there is no need to keep
the cartodb schema in the search_path
2019-10-03 18:58:27 +02:00
Raul Marin
52b3290d26
CDB_TableMetadata: Use secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
186ee37a57
CDB_Username: Set secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
0898881470
Oauth: Set secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
4dfd71639a
CDB_OAuthReassignTableOwnerOnCreation: Use CDB_Conf_GetConf
...
Instead of accessing the cdb_conf table directly
2019-10-03 18:58:27 +02:00
Raul Marin
c6b90aac8a
GhostTables: Set secure search_path
2019-10-03 18:58:27 +02:00
Raúl Marín
8a87f96f04
Merge pull request #370 from Algunenano/ghost_matview
...
Ghost tables: Add missing tags
2019-10-03 15:06:11 +02:00
Raul Marin
7c10fcc363
Update NEWS
2019-10-01 11:03:53 +02:00
Raul Marin
2f178bd89e
_CDB_SetUp_User_PG_FDW_Server: Minor log changes
2019-10-01 11:02:34 +02:00
Raul Marin
32489c4eab
Ghost tables: Add missing tags
...
- Add materialized views commands.
- Add missing alter trigger.
- Add 'IMPORT FOREIGN SCHEMA' since it might create new tables.
- Add 'DROP EXTENSION' and 'DROP TYPE' since they alter table columns.
- Add 'DROP SCHEMA' and 'DROP SERVER' as they drop tables.
2019-10-01 11:02:34 +02:00
Rafa de la Torre
afa52aa92b
Prepare release 0.30.0
2019-07-17 09:58:21 +02:00
Rafa de la Torre
746dbea434
Merge pull request #369 from CartoDB/user-defined-fdw
...
User defined FDW's
2019-07-17 09:52:23 +02:00
Rafa de la Torre
f9bd469ea9
Make oauth tests a bit more robust
2019-07-17 09:46:49 +02:00
Rafa de la Torre
402d97daa6
Merge remote-tracking branch 'origin/master' into user-defined-fdw
2019-07-17 09:18:35 +02:00
Rafa de la Torre
e41d2ec019
Add a flag to force drop of user FDW and related objects
...
If force = true then it will add the subclause `CASCADE` to the SQL
DDL sentences that support it, otherwise it'll use `RESTRICT` which is
the default and exact opposite.
2019-07-16 17:40:05 +02:00
Rafa de la Torre
3c460f1a85
Add a bunch of RAISE NOTICE's to inform user about progress
2019-07-16 17:03:23 +02:00
Rafa de la Torre
076207c49c
Make sure there are no (double)escaping issues
2019-07-16 16:24:02 +02:00
Rafa de la Torre
ce1e9ac41c
Prefix all objects created with cdb_fdw_
...
Build the DB objects related to a user FDW with the following form:
`cdb_fdw_name`. This is aimed at easily inspect and filter them.
As requested in code review.
2019-07-16 15:35:35 +02:00
Rafa de la Torre
0f33ee8b22
Prepend an underscore (_) to functions meant to be run by superuser
...
_CDB_SetUp_User_PG_FDW_Server and _CDB_Drop_User_PG_FDW_Server are
meant to be executed by a superuser. Therefore they shouldn't be
considered part of the public API and hence the _CDB_Private_Function
naming convention.
2019-07-16 14:32:32 +02:00
Rafa de la Torre
a32dea0282
Remove SECURITY DEFINER from user-defined FDW's
2019-07-16 13:26:03 +02:00
Rafa de la Torre
3a255df9d0
Rename PG-FDW's-specific functions to _PG_FDW_
...
As per review comment.
2019-07-16 13:14:11 +02:00
Rafa de la Torre
c4e2549dc8
A few more permissions tests for completeness
2019-07-15 18:14:23 +02:00
Rafa de la Torre
2e9f642378
Check when users shall not have permissions to the FDW
2019-07-15 17:32:48 +02:00
Rafa de la Torre
99096d41e0
Drop the role when dropping a user-defined FDW
2019-07-15 17:25:48 +02:00
Rafa de la Torre
3a10ef7e76
Add ability to grant fdw role to org members
2019-07-15 16:54:23 +02:00
Rafa de la Torre
a20676f391
Add a test/example of granting the fdw role
2019-07-15 16:19:06 +02:00
Rafa de la Torre
37004db047
Add new function to drop a user-defined foreign server
2019-07-15 16:14:07 +02:00
Rafa de la Torre
1189d70b2a
Request host auth to use password
...
This is required for non superusers to use FDW's. See
https://www.postgresql.org/docs/11/postgres-fdw.html#id-1.11.7.42.10
2019-07-15 14:52:39 +02:00
Rafa de la Torre
8cfc8e65cf
Test with a regular user (non-superadmin)
2019-07-15 14:44:21 +02:00
Gonzalo Riestra
32db4fd81e
Merge pull request #367 from CartoDB/oauth_create_table_trigger
...
Oauth create table trigger
2019-07-15 13:43:08 +02:00