Skip to content

influx auth create does not work as expected for system buckets #21607

@williamhbaker

Description

@williamhbaker

The issue here is that if you use influx auth create with read/write access to a system bucket like _monitoring, the token appears to be created successfully, however these system buckets are not actually accessible to anything other than an all-access token (apparently).

For example:

./influx bucket list
ID			Name		Retention	Shard group duration	Organization ID
1c9450961b31a442	_monitoring	168h0m0s	24h0m0s			f50eed62e5df577e
3d216bc6005d3847	_tasks		72h0m0s		24h0m0s			f50eed62e5df577e
6e480b4d6faf6d3b	bucket		infinite	168h0m0s		f50eed62e5df577e
./influx auth create --read-bucket 1c9450961b31a442 --write-bucket 1c9450961b31a442

Then if you make a config using that token and set it to active...

./influx bucket list
ID	Name	Retention	Shard group duration	Organization ID

Ideally, the created token would either have access to the bucket, or an error would be returned to indicate that such a token is not possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions