Commit Graph

34421 Commits (6e7a6313d7d3bd3f4ce5459d0795e748ad13fc74)

Author SHA1 Message Date
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
Faith Chikwekwe bd38374147
Merge pull request #19807 from influxdata/feat/enable-mean-pushdown
feat(storage): enable window agg mean pushdown
2020-10-27 13:24:37 -07:00
Faith Chikwekwe 5e1cdda597 feat(storage): enable window agg mean pushdown 2020-10-27 12:53:54 -07:00
pierwill 491b7b46a8
Merge pull request #19834 from influxdata/swagger-typos
docs: Fix typos in http/swagger.yml
2020-10-27 13:25:48 -05:00
dependabot[bot] fe7dbf0a83
build(deps): bump papaparse from 4.6.3 to 5.2.0 in /ui (#19784)
Bumps [papaparse](https://github.com/mholt/PapaParse) from 4.6.3 to 5.2.0.
- [Release notes](https://github.com/mholt/PapaParse/releases)
- [Commits](https://github.com/mholt/PapaParse/compare/4.6.3...5.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 11:03:43 -07:00
pierwill e4b7b09526 docs: Fix typos in http/swagger.yml 2020-10-27 10:25:52 -07:00
Christopher M. Wolff 790165b05a
refactor: allow newIndexSeriesCursor() to accept an influxql.Expr (#19833)
* refactor: allow newIndexSeriesCursor() to accept an influxql.Expr

In order to let TagKeys and TagValues get the right answer,
sometimes they will need to examine their predicate and
see if using the index is possible, or if a block scan is needed.
For those cases we want to examine the predicate before creating
the index series cursor. This change allows us to create an
index series cursor with an already-deserialized influxql.Expr.
2020-10-27 09:31:46 -07:00
Stuart Carnie 5c63c2163d feat(authorization): Create a v1 authorization service
This service is a private API for managing authorization tokens
for v1 API requests.

Note that this commit does not hook up the service to the v1
`/query` and `/write`, which will occur in a subsequent PR.

Closes #19812
2020-10-27 08:26:10 -07:00
Paul Hummer a2dbb572fe
Merge pull request #19826 from influxdata/flux-staging/v0.91.0
build(flux): update Flux to v0.91.0
2020-10-27 09:05:33 -06:00
George 3d643e0681
refactor(notification): move rule service into own package (#19804)
* refactor(notification): move rule service into own package

* chore(launcher): fix tests to use clients as opposed to direct kv service

* chore(influx): update task cli to consume core domain model task from client

* chore(kv): remove rule service behaviours from kv

This also introduces the org id resolver type. Which is transplanted
from the kv service. As this one function coupled all resource
capabilities onto the kv service. Making removing these capabilities
impossible. Moving this type out into its own package which depends on
each service explicitly ensures we don't have one type which has to
implement all the service contracts.

* fix(launcher): remove double reference to influxdb package
2020-10-27 11:45:05 +00:00
Zoe Steinkamp 87061bb1cb
fix: clear logout (#19823) 2020-10-26 23:06:52 -06:00
Adrian Thurston 7a4b81bf3d fix: profiler testing: stub GetSortedResult from execute.Profile
This function is used by the end-to-end test harness to stabilize query profile
results before diff and is needed when implementing the Profile interface.
2020-10-26 14:39:30 -07:00
pierwill 485a9d0a7f
Merge pull request #19825 from influxdata/pierwill-patch-rm-oss-fuzz
docs: Update FUZZ.md
2020-10-26 15:58:24 -05:00
Paul Hummer 5884b26d38 build(flux): update Flux to v0.91.0 2020-10-26 13:00:21 -06:00
pierwill 0566346d30 docs: Update FUZZ.md 2020-10-26 10:43:21 -07:00
Ayan George bd47d8efe1
fix: Type-convert fs.Bavail for portability (#19816)
Prior to this patch, DiskUsage() would calculate bytes available
by multiplying blocks available by block size in bytes:

  disk.Avail = fs.Bavail * uint64(fs.Bsize)

Under some versions of Unix, fs.Bavail is of type uint64 and on
others (like FreeBSD) it is of type int64.

This causes a compile time error:

  $ go build
  # github.com/influxdata/influxdb/v2/pkg/fs
  ./fs_unix.go:81:25: invalid operation: fs.Bavail * uint64(fs.Bsize) (mismatched types int64 and uint64)

This patch type-converts fs.Bavail to unit64 to ensure that all
types in the expression align.

This prevents compile time errors under FreeBSD and other platforms
where fs.Bavail isn't uint64.
2020-10-26 05:32:04 -04:00
jl b7ac9f07be feat: aggregate array cursors 2020-10-23 15:13:28 -07:00
George 3b7cb529dc
chore(docs): update PostDBRP docs to reflect mutual exclusive requirement of org vs orgID (#19802) 2020-10-22 17:02:32 +01:00
Gershon Shif ce00f0d226
fix(build): building arm 6 (#19756) 2020-10-21 16:29:48 -07:00
Gershon Shif 79c0b9bc4a
chore: CHANGELOG updates for v2.0.0-rc.2 (#19795) 2020-10-21 15:33:03 -07:00
vlastahajek 7947a7fffd fix(upgrade): improving upgrade help 2020-10-21 07:58:32 -07:00
Stuart Carnie 2705c57554 fix(launcher): Switch to AuthorizationService from authorization package
This commit ensures OSS is using the new implementation of the
AuthorizationService from the authorization package.

It also removes the associated feature flag.
2020-10-21 07:44:15 -07:00
Ales Pour 6a43939546 fix: proper default 2.x config filename 2020-10-20 08:03:34 -07:00
Greg b63bcb43c4
fix: use valid flux in pkger test templates (#19465) 2020-10-19 15:45:11 -06:00
Ales Pour 2b828c5b8c fix: fallback to user's home 2020-10-19 12:35:58 -07:00
Russ Savage 06f1e80216
fix(timeMachine): change derivative to 1s (#19776) 2020-10-19 11:03:26 -07:00
Russ Savage 683aa014c2
fix(plugins): Telegraf plugin updates (remove RAS for now) (#19775)
* fix(plugins): latest readme changes into oss

* fix(plugins): remove RAS plugin
2020-10-19 11:01:32 -07:00
Paul Hummer 6192dd74e8
Merge pull request #19774 from influxdata/flux-staging/v0.90.0
build(flux): update Flux to v0.90.0
2020-10-19 11:54:25 -06:00
Paul Hummer 1a81ca4401 build(flux): update Flux to v0.90.0 2020-10-19 11:30:28 -06:00
Greg 8c0ff75c6d
fix(cli): return error on failed resource addition (#19750) 2020-10-15 09:29:00 -06:00
Faith Chikwekwe 447ae59fa8
Merge pull request #19725 from influxdata/feat/window-agg-res-set
feat(storage/reads): add window agg result set
2020-10-15 07:53:48 -07:00
Gershon Shif 5304b77577
chore: remove arm6 from build and add private.key to gitignore (#19748) 2020-10-14 14:02:44 -07:00
Lyon Hill 4f737f1c0a
chore: clean todo (#19745) 2020-10-14 14:22:12 -06:00
Greg 9ab10c8b6c
feat(cli): provide means to remove stack without confirmation (#19740) 2020-10-14 13:35:58 -06:00
Russ Savage 873ca960c6
chore(changelog): changelog updates for rc1 (#19747) 2020-10-14 12:24:25 -07:00
Russ Savage b60331b82e
feat(writeData): adding intel_rdt and ras telegraf plugins (#19746)
* feat(writeData): adding intel_rdt and ras telegraf plugins

* fix: typo in exec.md

* fix(ras): update RAS name
2020-10-14 11:18:11 -07:00