You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to create phantom databases with cluster admin – phantom databases are databases into which cluster admins can insert and read from, but the database is not visible when listing all databases, even when listing them as a cluster admin. Here's a scenario I used:
started with empty influxdb, just root user (this is optional, I managed to reproduce it with a populated influxdb)
list cluster admins → returns only root
list databases → returns nothing
create a new database, and then list databases → returns a list of length one, with previously created database, as expected
list users for previously created database → returns an empty list, as expected
write a single point to a nonexistent database (I used "this_database_nonexistent" as a database name) and then read points from the same database (everything with cluster admin credentials) → returns the expected single point
list databases again (as cluster admin) → still returns a list of length one, with the database created in step 4.
list database users for the phantom database → returns an empty list
Here are some additional steps with interesting results:
if another database user exists (for some other regular database), adding it to the phantom database and/or setting an admin permission for the phantom database (with cluster admin credentials) fails with the BadRequestException (Invalid username ...) as expected.
creating a database user (with cluster admin credentials) for the phantom database fails with the BadRequestException, as expected.
And the best thing? Creating a new database with the name of the phantom database just works, with all the data retained. Creating a new user for that database now works and everything is behaving regularly.
Hope my description helps, available for additional details. Oh, and this happens with the newest brew version (0.7.0) and it happened before (0.6.x).
The text was updated successfully, but these errors were encountered:
It is possible to create phantom databases with cluster admin – phantom databases are databases into which cluster admins can insert and read from, but the database is not visible when listing all databases, even when listing them as a cluster admin. Here's a scenario I used:
root
user (this is optional, I managed to reproduce it with a populated influxdb)root
Here are some additional steps with interesting results:
BadRequestException
(Invalid username ...) as expected.BadRequestException
, as expected.And the best thing? Creating a new database with the name of the phantom database just works, with all the data retained. Creating a new user for that database now works and everything is behaving regularly.
Hope my description helps, available for additional details. Oh, and this happens with the newest brew version (0.7.0) and it happened before (0.6.x).
The text was updated successfully, but these errors were encountered: