Hello! I’ve been using Kong for a long time, using the key-auth
plugin. From time to time I’ve needed to move an existing API key from one consumer to another. For example, when one of our customers has ended up with two accounts (i.e. two consumers in Kong) and we want to merge their accounts, by moving all API keys from one consumer to the other, and deleting the unnecessary consumer.
I can’t figure out if there is a good way to do this, other than running raw SQL updates on the database! There’s no mention of a method to update an existing API key in the documentation at Key Auth - Plugin | Kong Docs but perhaps there’s an undocumented method?
Of course I could delete the API key, and then create a ‘new’ API key on the correct consumer (with the specific key
attribute specified in the options) but that could lead to a brief service interruption for my customer.
Any suggestions, or any workarounds?