Michael Desa
ca055fe410
Add filestore impl of kapacitor and source stores
...
Remove random `fmt.Println`'s
2017-12-19 13:14:00 -08:00
Chris Goller
7d56fdfc75
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
a797a95e86
Update CLI option to reflect dashboards directory
2017-12-19 10:07:09 -08:00
Chris Goller
a6ef15ee54
Add multiple dashboard stores to server
2017-12-19 10:07:07 -08:00
Luke Morris
4d449ba32b
Backup/Migrate/Initialize moved into Open
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-12-18 12:06:17 -08:00
Luke Morris
17759192b2
Refactor; simplify function responsibilities
2017-12-17 14:11:27 -08:00
Luke Morris
4faf9c5440
Clean up prior to PR
2017-12-16 13:54:55 -08:00
Luke Morris
2196a20100
Create backup of database when moving versions
2017-12-16 12:27:24 -08:00
Luke Morris
d201fa941a
WIP
2017-12-16 01:01:14 -08:00
Michael Desa
6059f155a1
Remove SuperAdminFirstUserOnly CLI flag
...
Wire up boltdb config store
2017-12-13 11:55:36 -08:00
Michael Desa
c718847014
Wire up bolt db ConfigStore in Server
2017-12-13 10:46:08 -08:00
Jared Scheib
c9e579acb2
Merge remote-tracking branch 'origin/master' into multitenancy
2017-12-05 11:43:23 -08:00
Michael Desa
a81498f57a
Change NewUsersNotSuperAdmin to SuperAdminFirstUserOnly
2017-11-30 15:01:52 -05:00
Chris Goller
0e72c0d16b
Add GENERIC_API_KEY to override of oauth2 responses to support azure
2017-11-21 16:55:03 -06:00
Michael Desa
7117835c52
Fix wording suggested in PR
2017-11-13 20:49:07 -08:00
Michael Desa
4e51963399
Add option to specify users are create as super admin
2017-11-13 20:44:50 -08:00
Michael Desa
36e14cb111
Refactor data stores into a common interface
2017-10-31 16:41:17 -04:00
Michael Desa
bea2caaa7f
Move organization resouces to their own package
2017-10-30 14:31:19 -04:00
Michael Desa
1082b264fe
Use organization stores
2017-10-30 12:05:59 -04: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
Jared Scheib
3b2818688a
Make all Store names plural for consistency
2017-10-24 15:54:24 -07:00
Michael Desa
b5e73dfd46
Add CRUD routes for organizations
2017-10-20 15:42:34 -04:00
Jared Scheib
974e9eaf7d
Add 'type' to new-sources server flag example
2017-08-11 11:54:16 -07:00
Jared Scheib
6540ea308d
Clarify BoltPath server flag help text with default path
2017-07-21 11:41:54 -07:00
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
Jared Scheib
5ec506b8fb
Merge branch 'master' into feature/persist_datasource_flag-1555
2017-07-07 14:45:00 -07:00
Tim Raymond
a7fc16cb17
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
5b5dbee078
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
Jared Scheib
fea0a330eb
Correct comment
2017-07-06 15:04:04 -07:00
Jared Scheib
10c317c083
Refactor process new sources into named func
2017-07-06 14:27:14 -07:00
Jared Scheib
d7e73f55ad
Move NewSources input prep to server
...
Signed-off-by: Tim Raymond <tim@timraymond.com>
2017-07-06 14:12:07 -07:00
Jared Scheib
ac0598f95c
Allow server to run even if NewSources errors out
2017-07-06 12:05:05 -07:00
Jared Scheib
3c3602a724
Update error messages to use plural
2017-07-06 11:48:14 -07:00
Jared Scheib
abff00f88f
Add sample usage
...
Make flag identifier plural since JSON array of objects
2017-07-06 11:44:42 -07:00
Jared Scheib
52e65be69d
Successfully persist new source and kapa via server flag
...
Move this to after BoltDb connection is opened
2017-07-05 18:12:08 -07:00
Tim Raymond
b1f8ff81c3
Parse JSON for --new-source into struct
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-07-05 15:00:59 -07:00
Jared Scheib
0c8b543806
Add pseudocode outline for parsing and persisting source and server
...
Signed-off-by: Tim Raymond <tim@timraymond.com>
2017-06-29 15:33:22 -07:00
Jared Scheib
de9d0df860
Group flags more semantically consistently
2017-06-29 14:27:30 -07:00
Jared Scheib
639bce7217
Group flags more semantically consistently
2017-06-29 14:25:41 -07:00
Jared Scheib
788aec07db
Improve description of custom link use, and give example ( #1676 )
2017-06-28 14:41:13 -07:00
Tim Raymond
5a4817baf6
Support Organizations in Auth0
...
It's useful for operators to classify users into separate groups which
we have termed "organizations". For other OAuth providers, the notion of
an organization typically fell along company lines. For example,
MegaCorp might have a "MegaCorp" GitHub organiztion, and all email
addresses would have the domain "megacorp.com".
Auth0 is slightly different in that MegaCorp would likely run their own
Auth0 provider for their internal services, so "organizations" in Auth0
are no longer synonymous with "large organizations" (or companies).
Instead, Auth0 organizations could be used to restrict access to
Chronograf instances based on team membership within an organization.
To make use of Auth0 organizations, operators should modify users'
app_metadata to include the key "organization". Its value should be the
organization which that user belongs to. This can be done automatically
through arbitrary rules using Auth0 Rules.
2017-06-28 16:29:52 -04:00
Jared Scheib
33127d7915
Error out server if CustomLinks invalid on run
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-06-27 13:31:35 -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
Tim Raymond
6c8e889b03
Add Auth0 to supported OAuth2 providers
...
Auth0 is an OpenID Connect compliant OAuth2 provider, so we're able to
re-use the generic OAuth2 provider to implement it. The routes required
by Auth0 have been hardcoded for user convenience.
Also, Auth0 requires users to register a subdomain of auth0.com when
signing up. This must be provided to chronograf through the
`--auth0-domain` parameter (or `AUTH0_DOMAIN` ENV). This is **distinct**
from the `PUBLIC_URL`. For example, for a Chronograf hosted at
`http://www.example.com `, and an Auth0 domain of
`http://oceanic-airlines.auth0.com `, a client-id of `notpennysboat` and a
client-secret of `4-8-15-16-23-42`, the command line options would look
like:
```
chronograf \
--auth0-domain=http://oceanic-airlines.auth0.com \
--auth0-client-id=notpennysboat \
--auth0-secret=4-8-15-16-23-24
--public-url=http://www.example.com
-t `uuidgen`
```
2017-06-21 10:20:46 -04:00
Timothy J. Raymond
34808ddb9d
Merge pull request #1619 from pragkent/generic-oauth-redirect-url
...
Add redirect url to generic oauth
2017-06-21 10:19:03 -04:00
Kent Wang
17984600cb
Fix generic redirect URL
2017-06-21 12:19:21 +08:00
Kent Wang
9c597d2c8f
Replace string concat to path.Join
2017-06-18 10:47:02 +08:00
Kent Wang
0bb20c8a0f
Don't pass RedirectURL if PublicURL not set
2017-06-18 10:40:07 +08:00