Jared Scheib
ece512c631
Rename PrefixedRedirect to FlushingHandler & comment
...
It's not clear whether this code is necessary, but investigating
this was outside of the scope of this PR.
2018-04-20 18:40:09 -07:00
Jared Scheib
5ac2a3c063
Remove basepath var & arg from PrefixedRedirect
2018-04-20 18:40:09 -07:00
Jared Scheib
97c84cbe6e
Remove prefix-routes & clean up basepath var and flag use
...
Now, if basepath is set, it will be prefixed to all routes.
There is no more additional option of prefix-routes.
2018-04-20 18:40:09 -07:00
Jared Scheib
14cfc3f95c
Fix logout link with basepath
...
Remove double-prefixing by removing the prefixing
logic of the InterceptingResponseWriter.
Fix the logout link route for its handler to not
include a basepath prefix.
Remove obsolete tests for prefixing redirector.
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-04-20 16:58:41 -07:00
Jared Scheib
aac6a5c950
Merge branch 'master' into feature/rest-measurements
2018-04-04 16:21:16 -07:00
Jared Scheib
2fbdf07d8d
Rename db & rp vars & url params for clarity & consistency
...
Updates swagger as well.
Clarify that instead of dbid and rpid, these values are names.
Rename the var for the Databases service to dbsvc.
2018-04-04 14:22:08 -07:00
Chris Goller
05b11f8172
Add measurements with pagination
2018-04-03 16:04:16 -07:00
Andrew Watkins
d71763234a
Introduce /health endpoint
2018-04-03 15:58:33 -07:00
Andrew Watkins
9da2febb89
Add endpoint for raw string conversion to AST
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-29 16:04:37 -07:00
Andrew Watkins
049962abda
Provide links to ifql api
2018-03-29 16:01:01 -07:00
Brandon Farmer
5f83bf59ed
Add endpoints for ifql function suggestions
...
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:01:01 -07:00
Luke Morris
41244f4edc
Merge branch 'master' into feature/annotationz-pre-pl-with-master
2018-02-15 12:03:10 -08:00
Luke Morris
5f0ef591ea
Merge branch 'master' into feature/mappings
2018-02-09 11:42:07 -08:00
Alex P
f2cc269a33
Merge branch 'master' into feature/annotationz-pre-pl-with-master
2018-02-08 16:38:47 -08:00
Michael Desa
25838cb9ea
Add Mappings CUDA routes
2018-02-05 16:47:44 -05:00
Michael Desa
64f670e819
Add correct implementation of mappings
2018-02-05 14:54:39 -05:00
Chris Goller
59b85c3f3a
Update influxdb annotation store to support update/delete
2018-01-18 21:50:46 -06:00
Michael Desa
ec4a00eb11
Fix RouteMatchesPrincipal if org isnt on principal
2018-01-17 12:42:32 -05:00
Michael Desa
e8ed30a9e6
Populate links response with organiation on JWT
2018-01-17 12:26:28 -05:00
Michael Desa
e1b071c002
Add correct users route to all routes
2018-01-16 17:03:46 -05:00
Michael Desa
6168dc3e06
Nest user routes under organization
...
Add global user routes
2018-01-16 16:45:58 -05:00
Chris Goller
92b5cedff9
Add basic REST routes for annotations
2018-01-12 17:17:14 -06:00
Michael Desa
1c33580f99
Modify CRUD user handlers for global operations
...
Add raw query param middleware performing raw ops
This commit introduces middleware that allows SuperAdmin Users to
specify a query param `raw=true` which will give them raw access to the
data store. Raw access means that it is not in behind the usual
organization facade.
Currently, only the user routes use this middleware.
2018-01-09 13:43:33 -05:00
Michael Desa
b41816c5cd
Add /chronograf/v1/env endpoint to expose env vars
...
Some environment variables are needed by the front end. This PR
introduces a route so that those environment variables can be exposed.
Additionally, a new environment variable TELEGRAF_SYSTEM_INTERVAL was
added. This env var controls the rate at which the host list page will
update its red/green status.
2018-01-03 11:52:40 -08:00
Chris Goller
e39ddeddcf
Fix cell replacement to return query config
2017-12-19 13:43:39 -06:00
Michael Desa
9c989083a8
Add PUT /config/:section route
2017-12-13 09:28:39 -08:00
Michael Desa
d0f63ca0e0
Add /config/:section endpoint
2017-12-13 09:04:44 -08:00
Michael de Sa
17460e397b
Implement Config GET service method
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-12-12 17:06:57 -08:00
Jared Scheib
ff1cde524b
Merge branch 'multitenancy' into multitenancy_fix_layouts
2017-12-05 16:03:05 -08:00
Michael Desa
c9471d4084
Remove /mappings in place of /layouts
...
Remove POST/PUT/DELETE methods to /layouts
2017-12-05 17:07:09 -05:00
Jared Scheib
c9e579acb2
Merge remote-tracking branch 'origin/master' into multitenancy
2017-12-05 11:43:23 -08:00
Chris Goller
d6d7081b1e
Update oauth logout to include basepath
2017-12-01 15:35:39 -06:00
Michael Desa
638e36c197
Change MeOrganization to UpdateMe
2017-11-10 16:17:46 -05:00
Michael Desa
f228e2860d
Expose some organization routes to admins
...
Cleanup tests appropriately
Prevent Admins from patching organizations
2017-11-10 12:48:10 -05:00
Michael Desa
4f7f9c2757
Change SuperAdminRoleName to SuperAdminStatus
...
SuperAdmin is not a role type, but it a status of a user that is
tangentially related to a users role in an organization. This renames
the variable to reflect that difference.
2017-11-07 13:59:51 -05:00
Michael Desa
9b194168a6
Move user roles and role names to roles package
2017-11-06 11:27:13 -05:00
Michael Desa
708c37dc67
WIP cleanup
2017-10-31 20:58:40 -04:00
Michael Desa
36e14cb111
Refactor data stores into a common interface
2017-10-31 16:41:17 -04:00
Michael de Sa
cf58974927
Add organization field to principal in auth tests
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 13:19:43 -07:00
Michael Desa
5e08464ecf
Provide route to change current users organization
...
Add current Organization to JWT.
Use OrganizationUsersStore to retrieve Users that are not me.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:06:52 -04:00
Michael Desa
b5e73dfd46
Add CRUD routes for organizations
2017-10-20 15:42:34 -04:00
Michael de Sa
f463642bae
Update route authorization by Role
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-19 14:33:08 -05:00
Michael Desa
8d472646cd
Fix wrong authorization level on selected routes
...
Fix leaking of username on failed authorization
Add comment to chronograf.UserQuery
Fix logic in hasPrivilege method
2017-10-18 15:45:06 -04:00
Michael Desa
3430eeb84b
Wrap routes with Authorization middleware
2017-10-18 12:40:17 -04:00
Jared Scheib
b5693694ee
Rename Role CRUD methods & structs w Source prefix
...
Move server/roles.go and server/roles_test.go into server/sources.go and
server/sources_test.go respectively.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:25:33 -04:00
Michael de Sa
b8970c8ed1
Add All route & operation for Chronograf Users
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-09 15:03:50 -07:00
Jared Scheib
eb6c212023
Implement CRUD routes & operations for Chronograf User
...
Move source Users code into source_users and source_users_test files.
Use the UsersStore for both InfluxDB and Chronograf users.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-09 14:16:24 -07:00
Jared Scheib
4bf242f955
Refactor CustomLinks transform into routes.go and new links.go
...
Rename generateCustomLinks to NewCustomLinks
Handle error from NewCustomLinks per app convention
2017-06-26 15:30:33 -05:00
Jared Scheib
c1bdbcaa89
Generate custom links from env var and multiple CLI flags
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-06-26 11:48:47 -07:00
Jared Scheib
a251071254
WIP Parse custom links from CLI
2017-06-23 15:12:02 -07:00