I don’t have to do this yet, but i am dreading it. I have been programming a new Dashboard/program inside of App Studio for the past few months and it uses Functions. As such i am required to enter my API key inside of every Function object.
Now i have Multiple (probably close to a Dozen) of these function calls. When i move my app from my Test environment to my Live environment my understanding is ill need to generate a new API Key and then manually replace the Key on each and every Function call.
Is there a way to transfer the Keys in a less manual way? I am using solutions to transfer the App if it matters.
API-Keys should never be held at the client, because reasons. But it would be nice to have a way to manage secrets at the server for external REST calls and usernames/passwords for various environments until we get to a passwordless world.
I tried * for the API Key when running an erp-function in a Kinetic client customization and get error:
: Invalid API Key *.\r\nCompany
We are on Kinetic 2023.2 and I am wondering if 2023.2 required API Keys?
Second, Store the key in Kinetic somewhere (UD Table, etc.) like Jose suggests above.
If you want to get cute, bury the key in a Kinetic Function that inspects the AppServerUrl and returns the appropriate one for each instance. If in the future we get Secrets Management, then you would replace the logic in that function.
@leonardpothier is spot on. If you are calling external/non-Kinetic functions, then use the Kinetic Function method since you’ll need a function anyway.