Commit Graph

34306 Commits (23679c2375161ddf98bcd1ea13b98432c8a95c87)

Author SHA1 Message Date
Ben Johnson 23679c2375 feat: Implement backup/restore CLI subcommands. 2020-11-05 10:05:01 -07:00
Gershon Shif 89773ba30b
chore: make 2.0 RC builds optional (#19900) 2020-11-04 14:31:37 -08:00
Gershon Shif 9b6d4f9499
chore: do not build arm arch (#19902) 2020-11-04 14:29:57 -08:00
Christopher M. Wolff 14443a5c39
fix: return empty iterator instead of null in tagValues (#19894)
Fixes influxdata/flux#3300.
2020-11-04 08:09:27 -08:00
George 8ca2989717 feat(dashboards): isolate service in own package (#19852)
feat(dashboard): add owner ID to dashboard model

This adds the explicit OwnerID field to Dashboard and also adds a
migration which populates dashboard owners IDs based on dashboard owner
URMs.

feat(dashboards): isolate service in own package

This change isolates the dashboards service into its own package. It
also updates the API to no longer interface with user resource mappings.
Instead it defines new handlers which rely on the newly populated owner
ID field.

chore(dashboards): port tests from http package into new service transport package

chore(launcher): use dashboard transport package client in launcher tests

chore(kv): remove now defunkt dashboard service implementations
2020-11-04 15:53:02 +00:00
George MacRorie b274e15eac fix(telegraf): support pagination parameters when listing 2020-11-04 15:53:02 +00:00
George MacRorie 42445a71ff chore(testing): remove unused mapping variable 2020-11-04 15:53:02 +00:00
George MacRorie 5feea36e16 refactor(telegraf): remove references to kv service telegraf service implementation 2020-11-04 15:53:02 +00:00
George MacRorie 222470b1ef refactor(telegraf): add new isolated config service 2020-11-04 15:53:02 +00:00
Adrian Thurston 37ef9d2791
fix: use fluxinit package to init flux library instead of builtin (#19887)
* fix: use fluxinit package to init flux library instead of builtin

The builtin package performs costly initialization work in the go init()
function, which causes the work to be performed for all paths of the main
executables that need it, including help screens. This patch uses the fluxinit
package, which requires a call to do the costly work. It allows help screens
and other code paths to execute quickly.

* fix: need to draw in the influxdb-specific standard library in fluxinit
2020-11-03 13:07:41 -08:00
Dan Moran 428a46b75e fix: remove division of RP in upgrade command
DB-side services no longer multiply requested RPs by time.Hour, so
the upgrade command shouldn't divide by that factor.
2020-11-03 12:37:50 -05:00
Dan Moran a24df83de9 chore: update CHANGELOG 2020-11-03 12:37:50 -05:00
Dan Moran ace60ed322 fix(kv): remove extra multiplication of RP to avoid overflow
Mirrors change from the onboarding service.
2020-11-03 12:37:50 -05:00
Dan Moran d3dd440c5f test: fix expected RP in existing test. 2020-11-03 12:37:50 -05:00
Dan Moran 64ef556c2b fix(onboard): remove extra multiplication of RP to avoid overflow
Fixes #19884.
2020-11-03 12:37:50 -05:00
Stuart Carnie 9b78357bce fix: PR feedback 2020-11-02 18:00:22 -07:00
Stuart Carnie ef1ddae6c9 chore: Update CHANGELOG.md 2020-11-02 18:00:22 -07:00
Stuart Carnie a0958e6603 fix: Add Logger to constructor function to ensure it is initialized 2020-11-02 18:00:22 -07:00
Paul Hummer ab5e0b1ff3
Merge pull request #19881 from rockstar/flux-staging/v0.93.0
build(flux): update Flux to v0.93.0
2020-11-02 12:13:48 -07:00
Paul Hummer fd95506e75 build(flux): update Flux to v0.93.0 2020-11-02 11:49:11 -07:00
Greg 285c6ce06d
chore: add simple metrics related to installed templates (#19873) 2020-11-02 10:59:01 -07:00
Yiqun (Ethan) Zhang 17fcd2dce2
feat: make sure the query plan nodes have unique ids (#19879) 2020-11-02 11:15:39 -06:00
Ales Pour 0853370cda refactor: use v1 auth service to create tokens 2020-11-02 09:06:34 -07:00
Stuart Carnie 755221516c chore: Update CHANGELOG.md 2020-11-02 08:28:22 -07:00
Stuart Carnie 62a00fcf71 chore: Use new authorization client 2020-11-02 08:28:22 -07:00
jl fbe85ef548 feat: enable window pushdowns 2020-10-30 18:09:38 -07:00
jl b9d3dbcc0f refactor: remove capabilities from planner tests 2020-10-30 18:09:38 -07:00
jl 2cc5d86ebd refactor: remove feature flags for pushdowns 2020-10-30 18:09:38 -07:00
Stuart Carnie 13b3bb81cd fix: PR feedback to move defer logic to its own function for clarity 2020-10-30 11:56:09 -07:00
Stuart Carnie ce8034073e fix: Fixed typos in doc comments 2020-10-30 11:56:09 -07:00
Stuart Carnie 7e1226b298 feat: Use AuthorizerV1 for authorizing 1.x API requests
Setup the AuthorizerV1 in the launcher and pass this to the V1
authentication handler for authorizing 1.x HTTP requests.
2020-10-30 11:56:09 -07:00
Stuart Carnie 3fbbd6afcf feat: Implementation of AuthorizerV1
The `AuthorizerV1` defines the behavior for authorizing an InfluxDB
1.x API using `CredentialsV1`. These credentials are extracted from
an API, such as the Authorization header of a HTTP request.
2020-10-30 11:56:09 -07:00
Mark Rushakoff 0e0a784e29
fix(models): correctly parse float as 64-bits (#19870)
Go tip now enforces that strconv.ParseFloat receives a bitSize parameter
of 32 or 64. Previously, any value that was not 32, was treated as 64.

The previous value of 10 was likely a copy-paste error from integer
parsing.
2020-10-30 11:27:37 -07:00
Christopher M. Wolff 5a60488729
fix: make tagKeys and tagValues work for edge cases involving _field (#19856) 2020-10-30 10:37:08 -07:00
Gershon Shif f46a3bd91e
chore: Update CHANGELOG for rc3 (#19857) 2020-10-29 14:38:23 -07:00
Timmy Luong f6a26ee2b9
feat: update generate ticks into an array of properties for each axis (#19850)
* feat: update generate ticks into an array of properties for each axis

* fix: add missing operand

* chore: reorder properties to be consistent

* fix: update GenerateYAxisTicks to array of strings

* fix: change expected property to null
2020-10-29 10:59:25 -07:00
Greg 8aa3e6a6ca
fix: add 1.x compatible endpoints to swagger (#19828) 2020-10-29 11:51:32 -06:00
Stuart Carnie ecbb5987a6 feat: add v1 auth set-password command to set token passwords
* Added capability to HTTP API to search for tokens by ID or Token
2020-10-29 08:21:38 -07:00
Stuart Carnie 4e96f30f8d fix: V1 user authentication tokens no longer require SHA256
Remove remnants of previous token implementation

* As of #19840, V1 API tokens will be authorized using bcrypt passwords
2020-10-29 08:21:38 -07:00
Stuart Carnie 4f85ce82a8 feat(cli): Extend CLI with v1 authorization commands
This commit add a series of new subcommands to the `influx` CLI tool.

* `influx v1` to host any InfluxDB v1 specific commands
* `influx v1 auth` for v1 authorization token management.

The commands provide access to the private authorization APIs
used to manage authorization tokens for v1 compatibility APIs,
including:

* `/write`
* `/query`

Closes #19765
2020-10-29 08:21:38 -07:00
Stuart Carnie 6bc4158a46 feat(authorization): Add bcrypt password support to v1 authorizations
This commit extends the `v1/authorization` package to support
passwords associated with a token.

The summary of changes include:

* authorization.Service implements influxdb.PasswordsService
* Setting passwords for authorizations
* Verifying (comparing) passwords for a given authorization
* A service to cache comparing passwords, using a weaker hash
  that will live in memory only. This implementation is copied
  from InfluxDB 1.x
* Extended HTTP service to set a password using
  /private/legacy/authorizations/{id}/password

Closes #
2020-10-28 13:03:42 -07:00
Mark Rushakoff 82903c4922
Merge pull request #19846 from influxdata/chore/prune-unused-packages
chore: prune some unreferenced packages
2020-10-28 11:38:40 -07:00
Mark Rushakoff 1f1f520c58 chore: remove unreferenced tsdb/index/internal package 2020-10-28 12:38:01 -04:00
Mark Rushakoff 041dfecb15 chore: remove unused internal yaml2json command
The string "yaml2json" doesn't occur anywhere outside of this package.
2020-10-28 12:38:01 -04:00
Mark Rushakoff 4c5aea8103 chore: remove unreferenced pkg/hll package 2020-10-28 12:38:01 -04:00
Mark Rushakoff c11ce82d2f chore: remove unreferenced pkg/bufio package 2020-10-28 12:38:01 -04:00
Mark Rushakoff 10c32e4079 chore: remove unreferenced kit/grpc package 2020-10-28 12:38:01 -04:00
George 78cafa861b
refactor(notifications): isolate endpoint service (#19818)
* refactor(notifications): isolate endpoint service

Following the ongoing effort to isolate behaviours into their own
packages and off of kv.Service, this change move the notification
endpoints service implementation into its own package. It removes the
endpoint behaviors from the kv service completely.

* chore(influxd): wire up the isolated check service in place of kv service
2020-10-28 15:22:14 +00:00
Timmy Luong 9dd37a1d1b feat: add tick generation properties and legendColorizeRows 2020-10-27 16:50:53 -07:00
Sean Brickley bfe32bf10e build(ui): import flux-lsp v0.5.21 2020-10-27 16:29:39 -04:00