Commit Graph

11 Commits (85f725f8b975eae0d238cbc33bd372386708d9b0)

Author SHA1 Message Date
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
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 cc6accf106
chore: delete old-style DBRP mapping (#22339) 2021-08-30 18:27:11 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran 1494840fb9
fix(http): don't return 500 errors for partial writes (#20442) 2021-01-05 07:06:25 -08:00
Daniel Moran 71f8de3b98
fix(http/legacy): filter on Default=true when no RP given in V1 write (#20074) 2020-11-17 16:04:50 -05:00
Daniel Moran d8e7de93cc
fix: check write permission in legacy write path (#19980) 2020-11-10 18:41:50 -05:00
Stuart Carnie 778b9ff9eb chore: Address linter issues 2020-11-10 11:53:34 +11:00
Stuart Carnie acd30c863b fix: Remove bucket and mapping auto-creation from /write API
Fixes #19954
2020-11-10 11:53:34 +11:00
Stuart Carnie f38f19787f
fix: Ensure precision is passed to points parsing
In addition, adds additional precision parameters for v1 /write
compatibility.

Should address e2e bucket tests failing
2020-08-31 17:39:52 -07:00
Stuart Carnie 4330496d91
feat(http): V1 write support
* Basic auth requires using <username:token>; same as Cloud 2
* Move V1 HTTP handlers for InfluxQL and write to legacy package
2020-08-18 14:04:35 -07:00