Raul Ochoa
571a635fed
Old style, avoid merge conflicts, missing history
2015-01-23 17:46:58 +01:00
Raul Ochoa
6e70518146
Split between old cache_enabled and new purge_enabled configuration
2015-01-23 17:46:16 +01:00
Raul Ochoa
272e8cd221
Adds Surrogate Keys to named maps
2015-01-23 16:37:38 +01:00
Raul Ochoa
e8ab3a48c6
Removes TemplateMaps dependency on SignedMaps
...
- Token validation is done against the template
- Template is always extended with default values for auth and placeholders
- MapConfig is extended, in order to validate auth_toknes, with template info:
- template name
- template auth
- No more locks to create, update or delete templates
- Trusting in redis' hash semantics
- Some tradeoffs:
* A client having more templates than allowed by a race condition
between limit (HLEN) check and creation (HSET)
* Updating a template could happen while the deleting it, resulting in
in a new template
* Templates already instantiated will be accessible thrught their
layergroup so it is possible to continue requesting tiles/grids/etc.
- Authorization is now handled by template maps
2015-01-22 15:40:40 +01:00
Raul Ochoa
64b5a64e1b
Add templateMaps to serveroptions for the time being
2015-01-21 11:44:06 +01:00
Raul Ochoa
8bc08d75b7
Separate signed maps instantiation
2015-01-20 18:40:56 +01:00
Raul Ochoa
c14157acc2
Moves template routing
2015-01-20 18:16:09 +01:00
Raul Ochoa
595dac57a0
Moves setDBParams into controller
2015-01-20 18:14:10 +01:00
Raul Ochoa
5632b19e16
Remove unused functionality from app
2015-01-20 18:13:36 +01:00
Raul Ochoa
007196555d
Use userByReq from serverOptions
2015-01-20 18:12:24 +01:00
Raul Ochoa
62ffc05ef4
Move template map instantiation into controller
2015-01-20 17:57:53 +01:00
Raul Ochoa
5962141114
Moves template options to controller
2015-01-20 17:45:47 +01:00
Raul Ochoa
7901a05b55
List templates moved into controller
2015-01-20 17:39:33 +01:00
Raul Ochoa
4c2a0ca048
Delete moved to controller
2015-01-20 17:34:23 +01:00
Raul Ochoa
b40c8e6624
Retrieve template moved to controller
2015-01-20 17:17:06 +01:00
Raul Ochoa
97d3b1a03b
Move update template to controller
2015-01-20 17:07:55 +01:00
Raul Ochoa
fcea0c9b83
Move template creation to controller
2015-01-20 16:58:12 +01:00
Raul Ochoa
7ce8737e75
Initial split template maps endpoint into its own controller
2015-01-20 16:56:06 +01:00
Raul Ochoa
3f1aa9955b
Remove query tables api dependency from health check
2015-01-13 12:09:02 +01:00
Raul Ochoa
7c389a8010
Health check endpoint
2014-11-05 15:06:01 +01:00
Raul Ochoa
7009eb20f8
Check style fixes
2014-09-24 11:42:53 +02:00
Raul Ochoa
24cbd192aa
Share one redis-mpool across the application
2014-09-24 11:42:36 +02:00
Raul Ochoa
7faff8f887
Removes cors metric
2014-08-26 11:53:59 +02:00
Raul Ochoa
f406001315
Removes get_infowindow and get_map_metadata metrics
2014-08-25 19:15:31 +02:00
Raul Ochoa
40acf533ae
Specifies name in the redis pool
2014-08-13 15:12:46 +02:00
Raul Ochoa
dabcba9f5f
Merge branch 'master' into CDB-3686
2014-08-04 13:11:40 +02:00
Raul Ochoa
414673b347
CDB-3657 Adds profiler as JSON to the header
2014-08-04 12:53:15 +02:00
Raul Ochoa
75088c89d3
Style fixes
2014-07-30 13:45:53 +02:00
Raul Ochoa
4cf1ddd6fc
CDB-3256 Adds response and method references to fake request object
2014-06-24 15:52:47 +02:00
Sandro Santilli
49829f8935
Set default PostgreSQL application name to "cartodb_tiler"
2014-05-07 16:19:22 +02:00
Sandro Santilli
9e495b42ee
Do not cache non-success jsonp responses
...
Closes #186
Includes testcase
2014-03-21 13:58:20 +01:00
Sandro Santilli
0afc9c154b
Cleanly catch exceptions from sendResponse
...
Closes #178
2014-03-04 18:04:58 +01:00
Sandro Santilli
97e00fb47d
Do not send duplicated stats on template instanciation
...
Closes #179
2014-03-04 17:51:50 +01:00
Sandro Santilli
ecc9ea1226
Use 403 for forbidden, not 401
...
Includes upgrade of windshaft to 0.19.3
Includes upgrade of redis-mpool to 0.0.4
2014-03-04 15:32:31 +01:00
Sandro Santilli
93345a19b2
Do not log an error on GET /
...
Closes #177
2014-03-04 14:26:41 +01:00
Sandro Santilli
1741a20575
Do not cache map creation responses
...
Closes #176
CDB-1908 #resolve
CDB-1901 #resolve
Includes testcase
2014-03-04 10:46:15 +01:00
Sandro Santilli
7bc5bab432
Properly prefix statsd labels for all endpoints
...
CDB-1861 #resolve
Will be 100% complete with update of Windshaft to 0.19.3+
2014-03-03 16:24:20 +01:00
Sandro Santilli
bddc65a504
Forbid instanciating templates of foreign users
...
Closes #173
Includes testcase
2014-02-28 16:05:46 +01:00
Sandro Santilli
a13c1f61af
Do not log an error for a legit request requiring no X-Cache-Channel
2014-02-24 17:34:00 +01:00
Sandro Santilli
5c466c51a8
Revert order of hostname components for statsd.prefix
2014-02-21 17:25:10 +01:00
Sandro Santilli
c8a042abdd
Expand "addCacheChannel" stats
2014-02-19 18:10:33 +01:00
Sandro Santilli
b4fc8ec4a5
Allow using ":host" as part of statsd.prefix
...
It'll be replaced with hostname.
Closes #153
2014-02-19 15:31:12 +01:00
Sandro Santilli
6c6f3d02f6
Always generate X-Cache-Channel for token-based tile responses
...
Closes #152
2014-02-19 10:09:54 +01:00
Sandro Santilli
212eec2ca6
Pass profiler back to windshaft on createLayergroup
2014-02-17 08:50:12 +01:00
Sandro Santilli
935826ed1a
Integrate statsd in template instanciation endpoint
...
NOTE: stats are only enabled using windshaft 0.18.2+
2014-02-15 08:23:43 +01:00
Sandro Santilli
8f3c6c3c87
Add profiler calls in template instanciation endpoint
2014-02-15 08:06:57 +01:00
Sandro Santilli
4a6af108b4
Fix use of maxUserTemplate configuration variable
2014-02-13 15:01:58 +01:00
Sandro Santilli
e4cd37647e
Allow limiting number of allowed user templates
...
Adds maxUserTemplates directive.
Closes #136
2014-02-13 14:55:31 +01:00
Sandro Santilli
bf45bbea56
Do not send multiple equal commands to Varnish on connect
...
Closes #135
Also accept varnish "secret" in config
2014-02-12 16:14:27 +01:00
Sandro Santilli
a948038ff4
Disable debug logging unless "debug" config param evaluates to true
...
Closes #137
2014-02-11 16:34:43 +01:00