influxdata / influxdata/influxdb
Influx export all: misleading message when using token with limited rights
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__Steps to reproduce:__
1. Create Dashboard, Variables, Telegraf config etc.
2. Using Influx cmd tool try to export only selected items based on assigned label/tag as documented: https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/export/all/#export-all-resources-associated-with-label-foo
It fails with: `Error: Kind=Package field=resources reason="at least 1 kind must be provided".`
3. Using Influx cmd tool try to export only selected items based on assigned label/tag and with specific Kind as documented: https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/export/all/#export-all-bucket-resources-and-with-label-foo
It fails with: `Error: Kind=Package field=resources reason="at least 1 kind must be provided".`
__Expected behavior:__
a message informing about Insufficient rights
__Actual behavior:__
`Error: Kind=Package field=resources reason="at least 1 kind must be provided".`
__Environment info:__
Influx CLI 2.0.8 (git: e91d41810f) build_date: 2021-08-13T18:22:30Z
Contributor guide
Research direction
Start by reproducing the documented `influx export all` commands with a token limited by labels or tags, using the environment details in the issue. Trace the resulting `Kind=Package` error and compare it with the expected insufficient-rights behavior; done means the CLI reports the permission problem instead of the misleading missing-kind message.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100