Jared Scheib
a8c816085e
Refactor process new sources into named func
2017-07-06 14:27:14 -07:00
Jared Scheib
1c72fd338b
Move NewSources input prep to server
...
Signed-off-by: Tim Raymond <tim@timraymond.com>
2017-07-06 14:12:07 -07:00
Jared Scheib
8707659688
Allow server to run even if NewSources errors out
2017-07-06 12:05:05 -07:00
Jared Scheib
3d6048be2e
Update error messages to use plural
2017-07-06 11:48:14 -07:00
Jared Scheib
1ca0315f67
Add sample usage
...
Make flag identifier plural since JSON array of objects
2017-07-06 11:44:42 -07:00
Jared Scheib
eb762dda86
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
fc6e3f87ec
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
6bc6324eb6
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
49eaccda81
Group flags more semantically consistently
2017-06-29 14:25:41 -07:00
Jared Scheib
079ca3c235
Improve description of custom link use, and give example ( #1676 )
2017-06-28 14:41:13 -07:00
Jared Scheib
be1b7dfcdf
Clarify error output for missing Name or URL
2017-06-27 13:40:26 -07:00
Jared Scheib
21fab035c2
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
c637e5407d
Refactor links_test to use table test and cleaner error check
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-06-27 13:30:34 -07:00
Jared Scheib
2e93ad5230
Conserve memory allocation for customLinks slice
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-06-27 12:00:05 -07:00
Jared Scheib
3fea7501d8
Remove omitempty from CustomLink definition since should never b
2017-06-27 11:02:28 -07:00
Jared Scheib
48e90fcd0a
Return and test for nil on invalid NewCustomLink input
2017-06-27 10:59:04 -07:00
Jared Scheib
578bf89c97
Pass through CustomLinks error message directly
2017-06-26 18:02:22 -05:00
Jared Scheib
604faea32d
Add full test coverage for NewCustomLinks
2017-06-26 17:18:53 -05:00
Jared Scheib
ca239d037d
Move external links structs to links.go
2017-06-26 16:13:23 -05:00
Jared Scheib
81ada5315c
Only test one CustomLink to avoid map key order failing test
2017-06-26 16:12:54 -05:00
Jared Scheib
6e59d8ce34
Add custom links to routes test
2017-06-26 16:00:27 -05:00
Jared Scheib
a723ef8ae1
Use appropriate error when NewCustomLinks fails
2017-06-26 15:44:56 -05:00
Jared Scheib
6dedf77add
Comment CustomLink struct
2017-06-26 15:43:03 -05:00
Jared Scheib
ede2476837
Change 'Url' prop key to 'URL' to satisfy Go convention
2017-06-26 15:42:36 -05:00
Jared Scheib
799dc64ea4
Update comment for ServeHTTP to mention External Links
2017-06-26 15:35:42 -05:00
Jared Scheib
90aaa8104d
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
1b3c00d07a
Add 'custom' prop and example to /chronograf/v1 in swagger docs
2017-06-26 11:56:05 -07:00
Jared Scheib
7d6eaf925a
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
613dcc64ac
WIP Parse custom links from CLI
2017-06-23 15:12:02 -07:00
Tim Raymond
07a3dceb2f
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
21c3f78fe3
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
fdcbd6badc
Fix generic redirect URL
2017-06-21 12:19:21 +08:00
Kent Wang
55093d720d
Replace string concat to path.Join
2017-06-18 10:47:02 +08:00
Kent Wang
25958a017e
Don't pass RedirectURL if PublicURL not set
2017-06-18 10:40:07 +08:00
Jared Scheib
2f4695fa0b
Merge branch 'master' into feature/status_page-1556
2017-06-16 17:52:16 -07:00
Jared Scheib
06dd8a7a3d
Update default JSON feed URL to final, secure link
2017-06-16 14:23:46 -07:00
Kent Wang
b4627983b9
Add redirect url to generic oauth
2017-06-16 17:35:57 +08:00
Jared Scheib
2ff86cf15e
Update swagger docs for external and statusFeed props
2017-06-15 18:23:42 -07:00
Jared Scheib
c8c3f6108c
Comment new StatusFeed member of AllRoutes
2017-06-15 17:55:46 -07:00
Jared Scheib
7e359239e5
Refactor statusFeedURL to be set in CLI 'default'
...
Reverts to a clean separation of concerns between mux.go vs AllRoutes
AllRoutes now expects a StatusFeed url directly
2017-06-15 13:51:22 -07:00
Jared Scheib
2c5e7ef0d6
Add test for all routes with ExternalLinks
2017-06-14 16:22:30 -07:00
Jared Scheib
f4ea8fc7b5
Remove unused fragment
2017-06-14 13:51:08 -07:00
Tim Raymond
c5872bba41
correct TemplateVar collection type in Queries
2017-06-14 10:52:29 -04:00
Jared Scheib
8af550fa6f
Add default InfluxData JSON feed url
2017-06-13 19:23:52 -07:00
Jared Scheib
25bde527a6
Add status-feed-url build flag within new externalLinks prop in AllRoutes
2017-06-13 13:40:20 -07:00
Tim Raymond
45402f476d
Add support for :autoGroupBy: template variable
...
This adds support for dynamic template variables that compute something
about themselves given some additional context.
2017-06-13 14:59:56 -04:00
Hunter Trujillo
816a8b9226
Update swagger docs.
2017-06-12 15:30:10 -06:00
Regan Kuchan
6da83b8629
Update version and changelog for v1.3.2.0
2017-06-02 13:34:23 -06:00
Jared Scheib
6806f62ac0
Refactor /chronograf/v1 to not return logoutLink if not using auth
...
Use logoutLink to determine if logout menu item is shown
Signed-off-by: Chris Goller <güllère@gmail.com>
2017-05-30 17:34:55 -07:00
Chris Goller
7122c6a19d
Add kapacitor rule validation on update
2017-05-25 12:10:25 -05:00