Commit Graph

19 Commits (83b1f481120719c26386dacbcbc9da896ad739c5)

Author SHA1 Message Date
Jonathan A. Sternberg 31501c9dcf
Upgrade flux to the latest version and remove the platform dependency
This integrates the influxdb 1.x series to the latest version of Flux
and updates the code to use it. It also removes the dependency on
platform and copies the necessary code from storage into the 1.x series
so the dependency is unneeded.

The flux functions specific to 1.x have been moved to the same structure
that flux changed to with having a `stdlib` directory instead of a
`functions` directory. It also adds a `databases()` function that
returns the databases from the meta client.
2019-04-04 10:55:09 -05:00
Stuart Carnie 09a9d34430
fix(influx): Ensure credentials are passed for Flux queries
Fixes #11710
2019-03-29 16:39:34 -07:00
Stuart Carnie 216cfa329f feat(flux): Add user authentication and authorization support
* Add AuthorizeDatabase API to QueryAuthorizer to verify a user has
  appropriate access to the specified database
* Update serverFluxQuery handler to require a meta.User when auth is
  enabled
* update Flux createFromSource and createBucketsSource dependencies to
  require Authorizer when auth is enabled in configuration
* update createFromSource to verify read permissions for each bucket
  specified in a Flux query
* update BucketsDecoder, which implements the buckets() Flux function,
  to return buckets that the user has read or write permissions to
* add unit tests to verify authentication is required for Flux HTTP
  requests when auth is enabled in configuration
2018-12-19 14:46:12 -07:00
Stuart Carnie 881f27fe6f fix(flux): Call storage API to correctly map group mode
This fix ensures group(mode:"by") is correctly pushed down to the
storage layer.
2018-12-12 13:03:33 -07:00
Stuart Carnie 39a3d2335e chore(flux): Update to Flux 0.7.1
Resolve breaking API changes
2018-11-30 10:38:56 -07:00
Christopher Wolff 32e28c70ab Remove "Verbose" option from controller.Config (loggler log level will be used instead) 2018-11-26 14:10:59 -08:00
Stuart Carnie a797529f6f feat(flux): Resolve db / rp during from spec creation
This change determines invalid db/rp values sooner and simplifies
implementation in Enterprise
2018-11-21 15:51:52 -07:00
Stuart Carnie 5bcb952b6f chore(cli): Improve APIs to increase reuse in Enterprise 2018-11-02 09:16:42 -07:00
Stuart Carnie 5de5f09676 feat(cli/influx): Display detailed error messages when available
This commit will print any detailed error messages returned by
the server via the `/api/v2/query` API
2018-10-30 13:14:59 -07:00
jlapacik ff416805c5
add Flux output functions (#10433)
* add flux output functions

* update flux dependency
2018-10-30 10:06:02 -07:00
Stuart Carnie 448e8079ad fix(storage): Update to latest flux and platform
* Due to a breaking API change, `BucketsDecoder` was updated to use
  `NewString` vs `NewStringValue`
2018-10-25 15:57:05 -07:00
Stuart Carnie c5ec3a3244 feat(influx): Add Flux support, enabled by specifying -type=flux 2018-10-25 11:12:14 -07:00
Adam 74f2cbe500
added physical implementation for the buckets() function (#10373) 2018-10-17 10:22:07 -04:00
Stuart Carnie b4fed53a68 feat(flux): Update platform / flux packages and implement from source 2018-10-12 07:40:46 -07:00
Jeff Wendling 69dc031a75 Use platform for most of the read service code
This commit deletes most of the code to service reads from influxdb
and pulls it in from platform instead.

Of note, the models.Tag and models.Tags types are now aliases to the
platform models.Tag and models.Tags types. Additionally, many types
in the tsdb package relating to cursors are also aliases to the same
types in the platform cursors package.

This updates the platform and flux repos to the current master in the
Gopkg.lock.
2018-10-10 11:20:25 -06:00
Stuart Carnie 8d07870717 fix(flux): Fix panic when executing a query that returns no results
fixes https://github.com/influxdata/flux/issues/81
2018-10-03 11:55:48 -07:00
Stuart Carnie 552e54ba14 fix(flux): Fix panic when executing a group / distinct query
fixes https://github.com/influxdata/flux/issues/81
2018-10-03 11:55:48 -07:00
Stuart Carnie 3f917e281a chore(flux): Remove debug output 2018-09-17 22:38:27 -07:00
Stuart Carnie 62b9791da8 feat(flux): Add initial support for executing Flux queries 2018-09-17 22:38:27 -07:00