I have an influxdb setup with existing tokens.
I would like to move the influx server (a complete replace) but do not want to re-distribute new tokens.
Is it possible to create tokens in influxdb with a specified token value.
I have a list of all tokens, their roles and tags in a csv file so is there is a way to create a token with a specified value via the API doing this will be trivial for me.
Any suggestions on how to do this would be very helpful.
You could move the entire db with all the data. But it seems you don’t want to copy/move all the data.
You can recreate new authorizations with an existing token in a serveral ways:
${TOKEN} ins an environment variable which is the token main user on the influxdb server.
This command outputs a JSON document with a new (randomised) token in the .token path
If my client already has a token with value TTT configured can I make a token in influxdb with value TTT?
I can`t see any api documentation allowing me to specify the token’s value.
Is there something I can add to my josn?
I pass TOKENTOKENTOKENTOKEN as the input and get a new token created RE0FQR2LnuT0qh9ODwCwBmjGUTAaHVcVxabRM-QDFrhypXVO98qXDKgRTjwOUO7ugT2-CdK0GXy8QYrwCpoWvQ==
I’m sorry, I had misled you. I thought this should work, but looking at the server sources the token is not copied from the request.
Feel free to create an issue for this.