influxdata / influxdata/influxdb
Backup not working with all access token
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
I generated an all access token for my org via the UI and created a config. backup fails with permission issues, listing buckets works.
> influx config
```
Active Name URL Org
* influx-remote http://localhost:8086 default
```
> influx ping
OK
> influx backup ./influx-dump
```
2024/09/27 11:37:40 INFO: Downloading metadata snapshot
Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized
```
> influx bucket list
works fine
> influx version
Influx CLI dev (git: a79a2a1b825867421d320428538f76a4c90aa34c) build_date: 2024-04-16T14:34:32Z
> influxd version
InfluxDB v2.7.4 (git: 19e5c0e1b7) build_date: 2023-11-08T17:07:39Z
happy to provide more info
Contributor guide
Research direction
Reproduce the failure with the shown `influx config`, `influx ping`, `influx backup`, and `influx bucket list` commands. Start by tracing the backup metadata snapshot entry point and its authorization requirements, then verify that an all-access token can complete the metadata backup without the `read:authorizations` 401 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, rust
- Domain
- authentication, authorization, cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100