How to get generated KeyAuth keys for hashing

Basically we just call this:

When we do process_auto_fields:

Which we call on DAO insert:


Perhaps you can automatically generate the key yourself using the kong.tools.utils.random_string() and put that to self.args.post.key in case the request does not contain key?