API key management

Chris Merrick · Friday Demos · January 5, 2024 · 4:35

Our administrative experience for API key management, a simple way to organize API users for specific use cases in Omni for better security and administration.Tags: Administration

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I can do one um let me share uh so um I built uh an API that we can use for SK um which is user provisioning I've actually demoed skim before I just Spike on it a few months ago um but now it's actually fully tested um and actually supports real API keys so uh we can go into settings uh generate a new API key give it a name generate it get my API key I'm only going to be able to see this once uh I close that that go over to OCTA uh pull open my Omni application go to provisioning which is how you configure skim go in here and I'm using enro to expose my local development publicly so that's why you see

  2. that um so I'm going to put the API key into here hit test pray this works cool all right so it works um now I can uh when I so if we go back over to Omni can check out my users list uh just you know couple standard users here I can go assign new users so I've got this sample test user cool so oh of course click provision user okay cool I'll provision the user cool hey there they are all right so they got provisioned um and then I can similarly go in here if I remove them go back over to Omni they disappear so uh this currently supports user creation and deletion um I'm going to get it out and working in that

  3. state uh which is pretty close just need to get some code review and some UI help uh and then uh we'll add user attribute setting and group assignment right after that um so skim is pretty close to being done um but the other thing that this affords us the ability to do is use an API for other things so if I go in here and create a new API key called cicd I can copy this uh I can go over to my terminal here of course ideally you probably do this through GitHub I can hit the API endpoint called Model refresh and I put in the right API key because that's an old one um the refresh runs um so that's the only other API

  4. in point I built so far but just to give you a taste of kind of what's possible here um there is some funky authentication stuff in terms of like how the back end authenticates the API key that I need to work through so uh this API end point is a little bit duct taped together still um but I don't think it will be a tremendous effort to to get that working in the way we want it to work so um probably just the extra couple days so I think we're we're really close to having an interesting story for like a cicd type use case very nice if anyone's passionate about apis I would love to show you how the API key stuff is working um

  5. I went through a bit of research to land on the approach I took so would be happy to share that with anybody who's interested