Follow up testing.
I went back to my 5.0.8 install and ran the exact same command into the broker to create a new API key using the “admin” user/password for credentials. It worked exactly as expected. Starting the 5.0.19 install back up and running the same command I get the json payload response as mentioned above and in the logs I see the following message.
2023-03-07T10:31:15.448000-05:00 [error] crasher: initial call: cowboy_stream_h:request_process/3, pid: <0.2778.0>, registered_name: [], exit: {{{request_error,{header,<<“authorization”>>},‘Malformed header. Please consult the relevant specification.’},[{base64,decode_binary,5,[{file,“base64.erl”},{line,386}]},{cow_http_hd,parse_authorization,1,[{file,“cow_http_hd.erl”},{line,894}]},{cowboy_req,parse_header,3,[{file,“cowboy_req.erl”},{line,417}]},{emqx_dashboard,authorize,1,[{file,“emqx_dashboard.erl”},{line,229}]},{minirest_handler,do_auth,2,[{file,“minirest_handler.erl”},{line,56}]},{minirest_handler,handle,2,[{file,“minirest_handler.erl”},{line,44}]},{minirest_handler,init,2,[{file,“minirest_handler.erl”},{line,27}]},{cowboy_handler,execute,2,[{file,“cowboy_handler.erl”},{line,41}]},{cowboy_stream_h,execute,3,[{file,“cowboy_stream_h.erl”},{line,318}]},{cowboy_stream_h,request_process,3,[{file,“cowboy_stream_h.erl”},{line,302}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},[{base64,decode_binary,5,[{file,“base64.erl”},{line,386}]},{cow_http_hd,parse_authorization,1,[{file,“cow_http_hd.erl”},{line,894}]},{cowboy_req,parse_header,3,[{file,“cowboy_req.erl”},{line,417}]},{emqx_dashboard,authorize,1,[{file,“emqx_dashboard.erl”},{line,229}]},{minirest_handler,do_auth,2,[{file,“minirest_handler.erl”},{line,56}]},{minirest_handler,handle,2,[{file,“minirest_handler.erl”},{line,44}]},{minirest_handler,init,2,[{file,“minirest_handler.erl”},{line,27}]},{cowboy_handler,execute,2,[{file,“cowboy_handler.erl”},{line,41}]},{cowboy_stream_h,execute,3,[{file,“cowboy_stream_h.erl”},{line,318}]},{cowboy_stream_h,request_process,3,[{file,“cowboy_stream_h.erl”},{line,302}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [<0.2777.0>,<0.2285.0>,<0.2284.0>,ranch_sup,<0.1908.0>], message_queue_len: 0, messages: [], links: [<0.2777.0>], dictionary: [], trap_exit: false, status: running, heap_size: 987, stack_size: 29, reductions: 4878; neighbours: