Raul Ochoa
efe090f5b0
Accept 'open' string in templated auth
as authorized
2015-01-28 17:29:50 +01:00
Raul Ochoa
6ab6fd91e4
Merge pull request #248 from CartoDB/196-validate-layergroup-in-named-maps
...
Basic layergroup validation on named map creation/update
2015-01-26 17:04:48 +01:00
Raul Ochoa
e690170689
More exhaustive layergroup validation:
...
- layers is an array and it's not empty
- layers has at least options
2015-01-26 15:51:10 +01:00
Raul Ochoa
11d9f5dd76
Basic layergroup validation on named map creation/update
2015-01-23 18:24:25 +01:00
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
fabb438cf0
Escape \b for the regex
2015-01-23 17:22:49 +01:00
Raul Ochoa
272e8cd221
Adds Surrogate Keys to named maps
2015-01-23 16:37:38 +01:00
Raul Ochoa
885accdadf
Adds varnish http port to the default configurations
2015-01-23 16:36:45 +01:00
Raul Ochoa
f5a3b77737
Make TemplateMaps to emit messages when adding/updating/deleting templates
2015-01-23 16:35:47 +01:00
Raul Ochoa
20eb92a3b1
Remove signedmaps and locks functionality as it is no longer needed
2015-01-22 19:28:59 +01:00
Raul Ochoa
8d22ed7594
Tests to validate template instantiation returns new instances with
...
default values if they are missing.
2015-01-22 18:38:42 +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
caa05e779a
Add scale_factor param as valid one
2015-01-14 18:11:13 +01:00
Raul Ochoa
845ebcac15
Merge branch 'master' into static-controllers
...
Conflicts:
npm-shrinkwrap.json
2015-01-13 12:45:37 +01:00
Raul Ochoa
3f1aa9955b
Remove query tables api dependency from health check
2015-01-13 12:09:02 +01:00
Alejandro Martínez
96bcd14bb8
Remove PostgreSQL from health checks
...
This way the health checks will only check for Redis and Mapnik
initialization.
An empty tile without layers or datasources is generated.
2015-01-13 11:29:19 +01:00
Raul Ochoa
48d60821a7
Exposes http renderer config
2014-12-01 18:43:40 +01:00
Raul Ochoa
97c55c1187
Removes console.log
2014-11-05 15:42:16 +01:00
Raul Ochoa
7c389a8010
Health check endpoint
2014-11-05 15:06:01 +01:00
Raul Ochoa
c88330f5f2
Allow a different cache-control max-age for layergroup responses
2014-10-24 16:05:41 +02:00
Raul Ochoa
cf5e34eae6
Upgrades Windshaft to start reporting redis/renderers/mapnik pool metrics
2014-10-15 16:45:49 +02:00
Raul Ochoa
9f5faf7cf8
Server options to instantiate cartodb-redis with redis configuration if pool is not provided
2014-10-14 21:19:44 +02:00
Raul Ochoa
711c1a89ee
Merge branch 'master' into one-redis-mpool
2014-10-14 18:23:17 +02:00
Raul Ochoa
774104b34e
Defaults resultSet to object if undefined in QueryTablesApi
2014-10-13 15:24:14 +02:00
Raul Ochoa
3dad6e96e3
Merge branch 'master' into one-redis-mpool
2014-10-07 12:47:10 +02:00
Raul Ochoa
b4bee864d2
Lock now considers the creation time and compares against a ttl so
...
a lock is not keep forever in case of failure.
Pending: lazy removal of expired locks.
2014-09-25 19:00:35 +02:00
Raul Ochoa
3e571b4ce8
Use object.keys to iterate over objects
2014-09-25 12:17:32 +02:00
Raul Ochoa
fb8fd5121e
Do not expose internal implementation
2014-09-25 12:16:34 +02:00
Raul Ochoa
ac2a3243b5
Don't cache regexes and avoid the _re hack
2014-09-25 12:04:52 +02:00
Raul Ochoa
1c10b8193b
Adds dot to compile templates
2014-09-24 19:17:51 +02:00
Raul Ochoa
abf0fa1b32
Remove unused var
2014-09-24 19:12:43 +02:00
Raul Ochoa
4c5bc13c7f
Check style fixes
2014-09-24 19:11:53 +02: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
9496d83d1c
Adds poolSize configuration for mapnik
2014-09-18 19:06:45 +02:00