Commit Graph

21 Commits (1862b4421df347adaf9e4a91cda57f22a5a65fbc)

Author SHA1 Message Date
Michael Desa 81d1520dc6 fix(platform): keep authorization struct on proxy query request
As a result of pr https://github.com/influxdata/platform/pull/1494, idpe
broke. This PR undoes some of the work done from that PR, but fixes the
underlying issue with #1494.
2018-11-20 15:20:51 -08:00
Michael Desa 407c01cb17 fix(platform): use authorizer instead of authorizion for endpoints
feat(platform): add ToPermissions method to user resource mapping

The ToPermissions method returns a set of permissions that is granted
via a user resource mapping.

feat(bolt): resolve sessions permissions on lookup

feat(http): use authorizer instead of authorization service for write api

feat(bolt): create user resource mappings for org users in bucket create

feat(bolt): create user resource mapping for first org/user

fix(platform): use authorizer for query endpoint instead of authorization

test(http): use cmp instead of reflect for decode test
2018-11-20 10:56:58 -08:00
Chris Goller 84af710e42 refactor(http): preallocate query plans 2018-11-02 12:03:45 -05:00
Chris Goller 0d7b77d3dd feat(http): add query plan validation 2018-11-02 09:11:57 -05:00
Chris Goller 7ca5187dc6 feat(http): add plan endpoint to analyze queries 2018-11-01 21:00:37 -05:00
Kelvin Wang c54df3d052 refactor(token): remove context token 2018-10-19 12:39:54 -04:00
Chris Goller aee35e4cde fix(http): links updated to match swagger doc 2018-10-06 10:11:20 -05:00
Mark Rushakoff 955eabd551 refactor(http): prefer Addr over URL in field names
The other services all use the field Addr, so consistently use Addr,
instead of sometimes using URL.
2018-10-04 13:59:58 -07:00
Jeff Wendling 6176671ecb Change how the write and query handlers look at auth 2018-10-03 15:55:56 -06:00
Michael Desa 1a0c29ad34 feat(platform): add authorizer interface
This iterface is supposed to be something that both sessions and
authorizations can share so that other components can authorize requests
as they see fit.
2018-10-02 14:11:44 -04:00
Lorenzo Fontana 1a2f606533
Convert everything to /api/v2
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:23:21 +02:00
Nathaniel Cook c4efddd1d0 wip: Pass org parameter 2018-09-25 16:41:23 -06:00
Nathaniel Cook 7069a06864 fix: Update internal HTTP paths for query service
Since all paths for the various query services were the same even though
the API was different it was confusing to work with and debug.
Now all internal paths have a unique name.
2018-09-20 08:43:48 -07:00
Nathaniel Cook d65a864ec5 fix: Update REPL to use HTTP API 2018-09-14 14:03:35 -06:00
Chris Goller 65fa08abca test(http): add flux query service test 2018-09-13 15:26:36 -05:00
Chris Goller 052c896fa4 feat(http): add flux query service client 2018-09-13 13:21:19 -05:00
Chris Goller 310a64fc97 feat(http): use proxy request in flux service 2018-09-13 13:00:27 -05:00
Chris Goller 61d60a3c61 feat(http): update /v2/query client to send query.Request with auth 2018-09-13 10:39:08 -05:00
Nathaniel Cook 672e2d5fe7 chore: Updates to be able to remove platform as a dependency of Flux 2018-09-12 10:18:54 -06:00
Stuart Carnie ac75af2f58 refactor: Migrate query package to influxdata/flux repository 2018-09-06 11:13:48 -07:00
Chris Goller 37bd273acd feat(http): add flux endpoint /v2/query influx 2018-09-04 16:08:00 -05:00