Commit Graph

174 Commits (02875f68106879a074312407b9bac6aab18030d9)

Author SHA1 Message Date
Pavel Zavora c981751433 chore(server): refactor HTTP transport factory to avoid circular dependency 2022-01-23 10:29:08 +01:00
Pavel Zavora e7ebd2755b fix(server): allow proxy in OAUTH messaging 2022-01-23 10:04:12 +01:00
Pavel Zavora f451cd32da feat: use semicolon to separate custom auto refresh options 2021-04-20 20:36:39 +02:00
Pavel Zavora 00977512c0 feat(server): add --custom-auto-refresh option 2021-04-20 20:36:39 +02:00
Pavel Zavora 30d1ca86a3 feat(server): allow to setup influxdb v2 connection on CLI 2021-04-19 12:07:56 +02:00
Pavel Zavora 40f7d398ff feat(oauth/github): allow to specify URL for github enterprise 2021-03-29 21:02:34 +02:00
Pavel Zavora 560d5b7ae1 feat(oath): enable PKCE by default in all providers 2021-03-27 10:11:02 +01:00
Pavel Zavora b868fedb47 chore: repair error messages 2021-03-27 10:11:02 +01:00
Pavel Zavora 5ec7adc8c9 feat(oauth): use PKCE OOTB for Auth0 2021-03-27 10:11:02 +01:00
Pavel Zavora 2d6b97235d feat(oauth): add and propagate GenericPKCE option 2021-03-27 10:11:02 +01:00
Pavel Zavora 2e12852e19 feat(server): add ETCD_ROOT_CA option 2021-03-04 07:45:53 +01:00
Pavel Zavora dbee33c730 chore: refactor TLS configuration to avoid circular dependencies 2021-03-04 07:36:42 +01:00
Pavel Zavora 32bfad6663 chore: refactor TLSOptions 2021-03-04 07:36:42 +01:00
Pavel Zavora 7bc29c22e8 chore: refactor CreateTLSConfig 2021-03-04 07:36:42 +01:00
Pavel Zavora 05ea29202f feat(etcd): allow to configure ETCD with client certificate 2020-11-18 20:22:19 +01:00
Pavel Závora 2c5656c340
feat(server): allow to configure TLS ciphers and versions (#5591)
* feat(server): allow to configure TLS ciphers and versions
2020-10-06 21:23:28 +02:00
Gregory Eremin 60bc07ee71 feat(session): make session inactivity duration configurable 2020-09-28 18:50:50 +02:00
Pavel Zavora b8de7c2f73 feat(server): allow to configure basic authentication 2020-09-28 18:20:21 +02:00
Greg 00cce510f2
fix: remove common public-url config from oauth validation check (#5475) 2020-05-05 15:42:41 -06:00
Greg 3652328954
feat: add ability to ignore or verify self signed oauth certs (#5461) 2020-04-22 18:04:04 -06:00
Greg 6279df2969
fix: validate oauth settings prior to starting (#5458) 2020-04-21 13:49:18 -06:00
Greg 26458417c7
feat: add ability to authenticate single superadmin user (#5400)
* feat: add ability to authenticate single superadmin user

This short-circuits any configured authentication, allowing a user
with the correctly signed message to act against the api.

* Present an expiring message to be signed/verified

* Add chronoctl command to ouput token for use in auth header

* Add command to generate and store RSA keypair

* Test new superadmin token checks
2020-02-28 14:14:46 -07:00
Greg 80d18ee90d
feat: add flag to redirect login page to specified OAuth IdP (#5380)
Co-Authored-By: Bucky Schwarz <hoorayimhelping@users.noreply.github.com>
2020-02-13 11:37:41 -07:00
Russ Savage 1ce8806b8e feat: add flag to disable host list page 2020-02-10 13:50:28 -08:00
greg linton 67776112d1 fix: use influxdata url that happens to have the correct cors headers 2020-02-04 15:44:59 -07:00
greg linton 242ead451b fix: use matching env var for etcd-endpoints 2020-01-31 14:35:39 -07:00
greg linton 9bc3b8b5e2 chore: remove remaining layout cruft 2020-01-23 11:15:32 -07:00
greg linton a26b780036 chore: remove v2 related code 2020-01-21 13:57:09 -07:00
Greg 56353bee05
feat: add etcd as backend store (#5352)
* Add some comments about unused v2 stuff

* Add etcd as kv backend

* Add configuration options to utilize etcd backend
2020-01-21 11:05:00 -07:00
Greg f0d5e5abef
chore: add a KV layer prior to adding an etcd implementation (#5349)
* Bolt to kv/bolt

* Remove unused code

* Remove unused roles code

* Remove unused duplicate Makefile

* Clean up bolt implementation and start layering in an interface for another store

* Layer in kv interface

* Continue layering in kv interface

* Remove circuitbreaker things

* Move cell stuff out

* Convert cell logic to kv interface

* Start adding config logic to kv interface, likely will remain bolt only

* Get to compile with bolt kv before moving too far forward

* Start removing dead dashboard code

* Add generic kv implementation for dashboards

* Convert layouts to kv interface

* Migrate mappings to kv layer

* Migrate org_config to kv layer

* Migrate organizations to kv layer

* Migrate servers to kv layer

* Migrate sources to kv layer

* Migrate users to kv layer

* Start removing unused migration logic

Since there is a migration path for users via updating to 1.7.x line then to 1.8, there isn't any real reason to continue supporting migrating from a version ~2 years old.

* Cleaning up bolt dead codes

* Re-add disabled code

* Migrate tests over to kv layer

* Migrate config to kv layer

* Create default organization

* Remove etcd for now

* Improve new client and new service implementations

* Uncomment bolt build tests

* Add layouts test

* Add more dashboard tests to kv
2020-01-21 09:26:23 -07:00
Greg 1806d6c298
chore: tidy prior to kv refactor (#5342)
* Start cleaning up/reviewing for kv refactor

* Remove dependency on graceful http layer

* Remove deprecated cli option --new-sources

* Run gofmt and remove dep related files

* Update non-influx deps

* Update kapacitor dep

* Compile regexp's once

* Remove un-needed struct members

* Remove unused integrations code
2020-01-09 08:49:42 -07:00
Christopher Henn 95201e9268 Add LOGIN_HINT OAuth config option 2019-07-09 15:02:44 -07:00
Deniz Kusefoglu 9924d577a5 Get protoboards from multistore if not able to find from ProtoboardsPath 2018-11-08 17:27:27 -08:00
Edd Robinson a7c1800143 Improve asset loading performance
This commit improves the loading performance of static assets on devices
with low CPU, such as Pies or other embedded devices.

One characteristic of these devices is that they don't often have the
intrinsics available used in gzip compression.

This commit does two things:

  (1) Adds an option to explicitly disable gzip compression of requested
assets.
  (2) Avoids the very expensive URL prefix Handler wrapper if no base
path has been set.
2018-09-19 08:48:06 -07:00
Jared Scheib bdf4036042 fix: go vet server/server.go 2018-09-12 18:32:06 -04:00
Michael Desa 8201a0d55c fix(server): pass pprof enabled option down to NewMux properly 2018-09-05 13:04:31 -04:00
Jared Scheib f57daa8bc5 feat: protoboard api
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-08-14 14:29:10 -07:00
Michael Desa 4ba1dba579 feat(server): add cells api 2018-07-16 11:25:15 -04:00
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