Unable to create Admin API key

(#605) Bug Fixed self-hosting

Summary

On /admin/admin-api-keys trying to create an admin API key says Done but no API key appears Creating the API key directly with SQL does allow keys to be created, but even with the table existing the UI does not create new ones

Steps to reproduce

  1. Go to /admin/admin-api-keys
  2. Name the admin API key
  3. Pick any permissions
  4. Click Create API Key
Expect: API key to show in the lower box Actual: Nothing happens, it says Done, but no API key is created

Environment

Version: v1.0 (selfhosted) OS: Linux (CachyOS) Browser: Zen (Firefox) Device: Desktop PC

Logs or screenshots

Confirmed by ternera#0001 and juji#0601 in #self-hosted channel image image
  • 608873696-3f00f75c-a4e9-4508-ae3b-e5e6e37d05bd.png

    608873696-3f00f75c-a4e9-4508-ae3b-e5e6e37d05bd.png

    431×230 | 127 kB

  • 608874048-be797c99-a35a-4af3-81c4-857897cc9199.png

    608874048-be797c99-a35a-4af3-81c4-857897cc9199.png

    417×125 | 46 kB

3 comments

Sign in with Fluxer to comment and vote.
Comment by @RobCubed
RexSystem 1 vote originally by @RobCubed on GitHub
I just ran into this, but discovered it is a rendering bug (if it does get created) - if you have the network log of your browser open as the key is created, you can see it in the HTML response
Comment by @nesges
RexSystem 1 vote originally by @nesges on GitHub
I get "Done" image but also image
  • 618129568-7e1dccc5-0a3c-4685-b5a0-f8df7d18db1e.png

    618129568-7e1dccc5-0a3c-4685-b5a0-f8df7d18db1e.png

    116×57 | 3 kB

  • 618129440-e8f92818-0109-4d24-bce5-90ec0857d879.png

    618129440-e8f92818-0109-4d24-bce5-90ec0857d879.png

    540×53 | 6 kB

Comment by @nesges
RexSystem 1 vote originally by @nesges on GitHub
Creating the API key directly with SQL
Can you please provide the insert statement to do that?