Commit Graph

29 Commits (a5e8c5ba2e54bcbcd6a55cc5f45e4ad71879701c)

Author SHA1 Message Date
Chris Goller 8dc08278bd Add JWT shared secret influxdb auth
Refactor --new-sources to simplify adding shared secrets
2017-07-19 01:39:06 -05:00
Chris Goller 21927336dc Update meta to only include authorization header. 2017-04-06 14:01:27 -05:00
Chris Goller b37c3acf36 Add meta redirect for Influx Enterprise similar to meta client. 2017-04-05 23:59:12 -05:00
Jared Scheib 26716ad280 Merge branch 'master' into feature/admin
Conflicts:
	CHANGELOG.md
	enterprise/users.go
	server/admin.go
	server/admin_test.go
	ui/.eslintrc
	ui/src/shared/constants/index.js
	ui/src/store/configureStore.js
	ui/src/style/theme/theme-dark.scss
2017-03-10 18:36:37 -08:00
Chris Goller b93cf4ca94 Add ability to update roles on a user resource 2017-03-10 16:52:24 -06:00
Chris Goller e8da54a6c3 Update user/role responses to return empty arrays 2017-03-10 13:24:48 -06:00
Chris Goller 9ac300cf19 Update to fix go linter issues 2017-03-06 10:11:52 -06:00
Chris Goller cc82d825d4 Fix users and roles PATCH removing all permissions 2017-03-02 13:57:53 -06:00
Chris Goller 51c65f9111 Update InfluxEnterprise users to return their roles 2017-03-01 19:13:44 -06:00
Chris Goller 3947d5181f Update schema for /permissions endpoint to have scopes 2017-02-27 13:31:38 -06:00
Chris Goller 1f878aa6d9 Fix enterprise create user to add permissions 2017-02-24 01:16:28 -06:00
Chris Goller 6581dc7ec2 Add roles endpoint and switching between OSS and enterprise 2017-02-23 21:54:20 -06:00
Chris Goller 08271f25ef Add roles to chronograf 2017-02-23 16:02:53 -06:00
Chris Goller b21065dd85 WIP roles 2017-02-22 09:29:39 -06:00
Chris Goller 089f0eb830 Update role user tests for meta enterprise 2017-02-21 19:11:40 -06:00
Chris Goller d31b6411d5 Add enterprise allowance test 2017-02-21 18:48:03 -06:00
Chris Goller c33757175d Add tests for meta users and roles 2017-02-21 18:34:53 -06:00
Chris Goller 070472017d Add tests for enterprise UsersStore handler 2017-02-21 13:28:54 -06:00
Chris Goller 9ee5c40ecc Add a listing of all possible permissions for OSS and Enterprise 2017-02-19 13:47:19 -06:00
Chris Goller f49b8309ac Add updating permissions for enterprise users 2017-02-17 16:35:56 -06:00
Chris Goller 0828b47e45 Add permissions to users 2017-02-17 16:03:49 -06:00
Chris Goller b304ac256e Add get of all users for a data source 2017-02-17 15:13:51 -06:00
Chris Goller 2a2e188560 Refactor users and add client usersstore 2017-02-17 13:37:00 -06:00
Chris Goller e81046d464 Add users and roles to meta client 2017-02-17 10:12:45 -06:00
Tim Raymond 6e8a0f9309 Update Enterprise Client
When this was originally developed, many exisiting patterns in the
application weren't established yet. This adds support for the
chronograf.Logger as well as removes some cruft that just isn't used
anymore. Interfaces have also been updated to align with what they are
today.
2017-02-08 10:06:19 -05:00
Tim Raymond 9459f731e7 Make Open() idempotent and required
Open() wasn't a hard requirement, so it was a little surprising to need
to use it when creating an enterprise.Client in some circumstances but
not others. This returns an error when Querying if Open() was not
called, preventing panics which would otherwise result. Granted, this
would only be encountered by developers, but I believe a helpful error
is sometimes more useful than a mysterious panic when making libs that
devs actually enjoy using. Furthermore, a preflight check to see whether
dataNodes was initialized makes the Open() method idempotent.
2017-02-02 16:18:26 -08:00
Tim Raymond c3a3848472 Add convenience func to create enterprise client
Many different ways exist to specify the URL for a meta node, including
host:port, scheme://host:port. This provides a function that handles the
irregularities associated with meta URLs and initializes a Client with a
control.Client for introspecting the associated cluster.
2017-02-02 16:16:39 -08:00
Tim Raymond efb7cf67bd Fix issue where data nodes would not advance
container/ring wasn't being used correctly, so all requests were
directed to the first data node in the ring. This ensures (via test)
that queries are properly distributed among available data nodes.
2017-02-02 16:16:39 -08:00
Tim Raymond 202fff9451 Implement initial Influx Enterprise client
This is an initial implementation of the Influx Enterprise client. It
incorporates introspection of a cluster to determine available data
nodes and issues requests in a round-robin fasion to those nodes.

Currently all nodes are assumed to be healthy, so there is no pruning of
the available data node pool.
2017-02-02 16:08:09 -08:00