Dane Strandboge
82d1123e78
build: upgrade to Go 1.18.1 ( #23252 )
2022-04-13 15:24:27 -05:00
Sam Arnold
e5ccbb8831
fix: forbid reading OSS buckets for a token with only write permissions ( #23148 )
...
* fix: forbid reading OSS buckets for a token with only write permissions
We previously enabled write tokens to also find DBRP buckets, in order to allow
the legacy /write (not /api/v2/write) endpoint to read the DBRP mappings and
find the real bucket id to write to.
This had the unintended consequency of allowing tokens with only write permissions
to read data in buckets via the legacy /query (not /api/v2/query) endpoint with
InfluxQL.
This change fixes the behaviour to allow writing to /write with a write-only
token, while forbidding reading from /query.
* fix: nanosecond precision in tests
2022-02-24 09:59:14 -05:00
Jonathan A. Sternberg
2a957c9a56
chore(query/influxql): remove the influxql transpiler ( #23000 )
2022-01-31 11:34:37 -05:00
Christopher M. Wolff
a812d8b603
build(flux): update flux to v0.148.0 ( #23047 )
2022-01-11 11:30:01 -08:00
William Baker
f78f9eda9c
feat: api/v2/config endpoint displays runtime configuration ( #23003 )
...
* feat: api/v2/config endpoint for runtime config
* feat: use a type switch
* fix: add tests
* chore: add config key to returned json
* chore: update swagger ref
2021-12-23 09:27:39 -05:00
William Baker
b0a0e734e0
chore: remove unused user http code ( #23011 )
...
* chore: remove unused user http code
* fix: resolve circular dep
* fix: copy newUserResponse function
2021-12-20 15:17:18 -05:00
Jakub Bednář
fa9ba8e86f
fix: duplicated X-version and X-Build headers for /ping endpoint ( #22862 )
...
* fix: duplicated X-version and X-Build headers for /ping endpoint
Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
* chore: change branch to master
* chore: only http/handler.go is responsible for sets headers
Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
2021-11-12 13:32:12 -07:00
Daniel Moran
58139c47b2
feat: add auth to remotes & replications APIs ( #22744 )
2021-10-26 11:32:35 -04:00
Daniel Moran
504f0e4413
feat: passing `type=basic` returns task metadata without query text ( #22728 )
2021-10-22 09:14:58 -04:00
Russ Savage
1ba6581e74
feat: Add Bearer token auth ( #22498 )
...
* feat: add bearer token support
* fix: updating to use equalfold
2021-10-13 12:02:32 -07:00
Dane Strandboge
ca992e9fff
chore: use io/os over ioutil ( #22656 )
2021-10-12 16:55:07 -05:00
Sam Arnold
a02782c63f
feat: return new operator token during backup overwrite ( #22629 )
...
* feat: return new operator token during backup overwrite
* chore: update swagger
* test: e2e restore test with new token
2021-10-07 09:07:09 -04:00
Daniel Moran
15a32a0860
refactor: consolidate session-handling code ( #22626 )
2021-10-06 22:37:02 -04:00
Sam Arnold
725794ef28
feat: show measurement database and retention policy wildcards ( #22396 )
...
* feat: show measurement database and retention policy wildcards
Closes #22390
* chore: formatting
* test: this commit fails tests with empty database
* fix: show measurements with one empty database
2021-10-05 13:20:15 -04:00
Daniel Moran
d5b6f8e8a4
fix: allow empty reqeust bodies to write API ( #22574 )
2021-09-24 09:51:39 -04:00
Daniel Moran
75b9398e1a
fix: suggest setting flux Content-Type when query fails to parse as JSON ( #22537 )
2021-09-22 09:35:06 -04:00
Sam Arnold
7dfd7de81f
feat: set X-Influxdb-Version and X-Influxdb-Build headers ( #22535 )
...
Closes #20224
Also a forward port of #22038 since I saw the same test failing on 2.x
2021-09-22 07:30:45 -04:00
Daniel Moran
d307e0a2dc
chore: delete miscellaneous unused code ( #22465 )
...
* Delete unused `CreateFileWithReplacement` function
* Delete unused `http/server.go`
2021-09-13 15:48:17 -04:00
Sam Arnold
5015297d40
fix: more expressive errors ( #22448 )
...
* fix: more expressive errors
Closes #22446
* fix: server only logging for untyped errors
* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran
dc3b501298
refactor: rename Lock/Unlock on KV stores to RLock/RUnlock ( #22357 )
2021-08-31 17:03:54 -04:00
Daniel Moran
01355a068c
refactor: move helper functions for setting up test stores into testing package ( #22347 )
...
* Move tenant.Service unit tests into its package
* Delete the top-level TenantService interface now that it's not used.
* Move helper funcs for setting up test stores into testing pkg
* Delete duplicate implementations scattered through the codebase
* Move error assertions into store-creation helpers
2021-08-31 16:43:45 -04:00
Daniel Moran
cc6accf106
chore: delete old-style DBRP mapping ( #22339 )
2021-08-30 18:27:11 -04:00
William Baker
74eacf63ba
feat: add `--flux-log-enabled` flag for detailed flux logs ( #22072 )
...
* feat: add `--flux-log-enabled` flag for detailed flux logs
* feat: set query to unknown if not available
2021-08-30 14:42:05 -06:00
Daniel Moran
5c7c6c2702
feat: add APIs for management of remote InfluxDB connections ( #22219 )
2021-08-17 15:15:05 -04:00
Daniel Moran
72de805106
refactor: use updated API in restore service ( #22198 )
2021-08-13 16:15:18 -04:00
Daniel Moran
07d897d2f2
fix: switch flux formatter to one that preserves comments ( #22186 )
2021-08-12 14:17:18 -04:00
Greg
7aaba338b2
feat: add route to return platform known resources ( #22135 )
2021-08-10 09:18:06 -06:00
William Baker
3f7b996a10
chore: delete the rest of chronograf ( #21998 )
...
* chore: deleted the rest of chronograf
* chore: tidy
2021-08-02 09:02:54 -06:00
William Baker
096a478ff6
fix: return 404 instead of links page on bad /api/v2 requests ( #21950 )
...
* fix: return 404 instead of links page on bad /api/v2 requests
* chore: update CHANGELOG
2021-07-27 11:35:29 -06:00
William Baker
e7685fff01
feat: add `ui-disabled` flag to run server with UI disabled ( #21910 )
...
* feat: add `ui-disabled` flag to run server with UI disabled
* chore: update CHANGELOG
2021-07-21 19:52:57 -06:00
William Baker
0cb0da2060
chore: modify/delete some chronograf refs ( #21802 )
...
* chore: modify/delete some chronograf refs
* chore: update CHANGELOG
2021-07-08 09:14:03 -05:00
William Baker
ea5e6eabcb
feat: transfer static asset handling into own package ( #21785 )
...
* feat: transfer static asset handling into own package
* chore: added some tests
* fix: update swagger script per review
* fix: make into bash script
2021-07-06 12:54:01 -05:00
Jakub Bednář
6aae544ac8
fix(pingEndpoint): change build type to 'oss2', use correct version ( #21723 )
...
Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
2021-06-24 12:33:54 -04:00
Daniel Moran
b1b076f600
refactor: delete old backup/restore CLI commands, replace with dependency on new CLI repo ( #21703 )
2021-06-17 09:18:55 -04:00
William Baker
22f4f5bba8
chore: remove unnecessary file name from metadata backup api ( #21701 )
2021-06-16 09:17:03 -04:00
Daniel Moran
8fa7e5fa8c
feat: implement new restore/bucket-metadata API ( #21685 )
2021-06-15 10:32:47 -04:00
Daniel Moran
a216501723
feat: add support for gzip request bodies in restore API ( #21676 )
2021-06-14 11:52:31 -04:00
Daniel Moran
242e313b10
feat: add gzip support to backup API responses ( #21675 )
2021-06-14 10:37:49 -04:00
William Baker
34a4a8e60e
feat: metadata backup returns bucket manifests ( #21601 )
...
* fix: properly omit empty time.Time that are optional
* fix: optimize slice creation in manifest fns
2021-06-04 09:26:17 -04:00
William Baker
b0ea3b6675
feat: backup and restore sqlite database ( #21584 )
...
* feat: new metadata backup endpoint
* feat: added restore/sql API endpoint
* fix: content-type is multipart/mixed, part names are kv and sql
* fix: changed multipart manifest to buckets and made it .json
* feat: added lock for backing up sqlite and bolt dbs
* fix: use read lock instead of write lock on kv during backup
* fix: use filepath.Join for temp dirs
2021-06-02 19:07:53 -04:00
Christopher M. Wolff
251f43a477
build(flux): update flux to v0.117.0 ( #21539 )
2021-05-24 12:29:28 -07:00
davidby-influx
5ef6b837b0
chore: remove erroneous dependency on istio ( #21486 )
...
Use same logging functions as the rest of the points code.
2021-05-17 12:06:06 -07:00
Jakub Bednář
4becb6d01a
feat(users): list users via the API now supports `offset`, `limit` or `after` parameter ( #21367 )
2021-05-12 14:09:52 +02:00
Greg
36dd396c41
chore: add comment to unused swagger definition pointing to replacement ( #21283 )
2021-05-06 11:23:31 -06:00
William Baker
912ece0d2d
fix: add limits to delete api start and stop times ( #21369 )
...
* fix: add limits to delete api start and stop times
* chore: update CHANGELOG
* fix: use min and max time limits from models package
2021-05-05 11:01:32 -04:00
Timmy Luong
b66079f084
feat: update Static Legend properties to allow hiding without nulling ( #21364 )
2021-05-04 11:17:37 -07:00
Daniel Moran
e28377f05c
fix: deprecate PostSetupUser and `influx setup user` ( #21345 )
2021-04-30 15:30:35 -04:00
Daniel Moran
91d59d9588
fix(upgrade): ensure query config written by `influxd upgrade` is valid ( #21321 )
...
* test: refactor upgrade test to cover the config upgrade
* fix: ensure upgraded query config is valid
2021-04-28 15:41:44 -04:00
Bucky Schwarz
f6a072f82a
feat: expose task id to checks and notification rules ( #21236 )
2021-04-15 16:03:39 -07:00
Timmy Luong
0c88854486
feat: add StaticLegend ( #21218 )
2021-04-15 15:06:01 -07:00