Jared Scheib
ae475c7ae8
Add OrganizationConfigStore & refactor org config to be per org
...
As previously implemented, OrganizationConfig was a global
object. This refactor adds the organization id to context for
every request, even when auth is disabled, so that org id
can be used to get/update an organization config.
Along those lines, this also removes OrganizationConfigStore
.Initialize and replaces .Get with .FindOrCreate, handling
the creation of organization configs upon first attempted
access.
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Michael Desa
a9df1583ae
feat(server): add profiling routes to chronograf server
...
In order to diagnose why the dashbords page we'll need to profile
chronograf. This commit adds the debug routes to chronograf.
2018-07-02 15:19:34 -07:00
Jared Scheib
edccd447c5
Allow hyphens and underscores in basepath
2018-06-15 17:05:01 -07:00
Brandon Farmer
2ce7d8e3ee
Test & refactor basepath validation into dedicated fn
2018-04-23 17:02:00 -07:00
Jared Scheib
58559f3b71
Clean up regexp guard logic for valid basepath
2018-04-20 19:01:23 -07:00
Jared Scheib
ece8bad9f0
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
b9f2029bb2
Match basepath against regexp to ensure proper format
2018-04-20 18:40:09 -07:00
Jared Scheib
eaefe0da63
Fail server if basepath contains trailing or starting '/'
2018-04-20 18:39:49 -07:00
Jared Scheib
d1735ce433
Change useidtoken to use-id-token for consistency
2018-03-28 13:31:24 -07:00
Benjamin Schweizer
2aeb0f7c8a
added USE_ID_TOKEN option, defaulting off
2018-03-28 15:51:10 +02:00
Benjamin Schweizer
0a98d1c7b7
Merge branch 'master' of https://github.com/influxdata/chronograf
2018-03-28 13:30:05 +02:00
Jared Scheib
4227ce17dc
Fix Auth0SuperAdminOrg server option description to indicate only one org is acceptable
2018-03-23 14:53:43 -07:00
Michael Desa
2345723d03
Add mapPrincipalToSuperAdmin function
...
The function grants a super superadmin status if the user belongs to a
particular auth0 organization and adds them to the default organization.
2018-03-23 15:48:34 -04:00
Jared Scheib
07f313f8b5
WIP
2018-03-23 12:17:22 -07:00
Benjamin Schweizer
47dac13cae
merged upstream, updated comments, added GroupFromClaims()
2018-02-20 09:47:42 +01:00
Michael Desa
8b60388d81
Add correct implementation of mappings
2018-02-05 14:54:39 -05:00
Benjamin Schweizer
9ca43f43aa
Merge branch 'master' of https://github.com/influxdata/chronograf
2018-01-10 21:44:07 +01:00
Michael Desa
acf3de93cd
Allow for different canned resource paths
...
Previously, users had to place all canned resources (layouts,
dashboards, sources, kapacitors, and organizations) in a single
directory. This work introduces a way to specify two directories.
One for application layouts and one for the other resources.
Users may still place all resources in a single directory if they'd
like.
2018-01-09 17:34:36 -05:00
Michael Desa
2151413ece
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
Michael Desa
9f0476c459
Add filestore impl of kapacitor and source stores
...
Remove random `fmt.Println`'s
2017-12-19 13:14:00 -08:00
Chris Goller
3035cad82a
Add organization multistore over bolt and filesystem
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-12-19 10:13:46 -08:00
Chris Goller
9d1165a335
Update CLI option to reflect dashboards directory
2017-12-19 10:07:09 -08:00
Chris Goller
ac41c384f2
Add multiple dashboard stores to server
2017-12-19 10:07:07 -08:00
Luke Morris
fcdc4efb2c
Backup/Migrate/Initialize moved into Open
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-12-18 12:06:17 -08:00
Benjamin Schweizer
39416832f4
Merge branch 'master' into master
2017-12-18 15:22:48 +01:00
Luke Morris
2184aecf86
Refactor; simplify function responsibilities
2017-12-17 14:11:27 -08:00
Luke Morris
da71af2b7b
Clean up prior to PR
2017-12-16 13:54:55 -08:00
Luke Morris
b95837fc5b
Create backup of database when moving versions
2017-12-16 12:27:24 -08:00
Luke Morris
5a59d72b06
WIP
2017-12-16 01:01:14 -08:00
Michael Desa
da67f958ae
Remove SuperAdminFirstUserOnly CLI flag
...
Wire up boltdb config store
2017-12-13 11:55:36 -08:00
Michael Desa
9a1ba96977
Wire up bolt db ConfigStore in Server
2017-12-13 10:46:08 -08:00
Benjamin Schweizer
7d4b8317e1
go fmt + got vet
2017-12-13 09:13:11 +01:00
Benjamin Schweizer
645923a168
add support for RS256 signatures using JWKS
2017-12-10 18:26:27 +01:00
Jared Scheib
93f11e1325
Merge remote-tracking branch 'origin/master' into multitenancy
2017-12-05 11:43:23 -08:00
Michael Desa
6feba85807
Change NewUsersNotSuperAdmin to SuperAdminFirstUserOnly
2017-11-30 15:01:52 -05:00
Chris Goller
c87bfe1678
Add GENERIC_API_KEY to override of oauth2 responses to support azure
2017-11-21 16:55:03 -06:00
Michael Desa
fdc6dc4aa3
Fix wording suggested in PR
2017-11-13 20:49:07 -08:00
Michael Desa
011b0bfb73
Add option to specify users are create as super admin
2017-11-13 20:44:50 -08:00
Michael Desa
5f63e2738a
Refactor data stores into a common interface
2017-10-31 16:41:17 -04:00
Michael Desa
6e0bfa67df
Move organization resouces to their own package
2017-10-30 14:31:19 -04:00
Michael Desa
0a5da8a750
Use organization stores
2017-10-30 12:05:59 -04:00
Michael Desa
bf6c77ee5f
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
Jared Scheib
30b8d3cdca
Make all Store names plural for consistency
2017-10-24 15:54:24 -07:00
Michael Desa
0842e8c479
Add CRUD routes for organizations
2017-10-20 15:42:34 -04:00
Jared Scheib
812de33be0
Add 'type' to new-sources server flag example
2017-08-11 11:54:16 -07:00
Jared Scheib
c6204d6114
Clarify BoltPath server flag help text with default path
2017-07-21 11:41:54 -07:00
Chris Goller
c2adec4709
Add JWT shared secret influxdb auth
...
Refactor --new-sources to simplify adding shared secrets
2017-07-19 01:39:06 -05:00
Jared Scheib
7e8018782e
Merge branch 'master' into feature/persist_datasource_flag-1555
2017-07-07 14:45:00 -07:00
Tim Raymond
d9bfa23660
Fix bad merge conflict resolution
...
Duplicate definitions of the same property were present because of
confusing placement of merge conflict markers.
2017-07-07 16:59:19 -04:00
Tim Raymond
6be0cafd3a
Merge master into feature/tr-auth0-organizations
...
Conflicts were the addition of CLI flags from a concurrent branch.
2017-07-07 16:18:01 -04:00