Is there a way to globally specify an App Key for all the functions I am registering with CloudScript? I see that I can specify ?code= as a parameter and that appears to work, but that makes key rotation pretty onerous.
Is there a way to globally specify an App Key for all the functions I am registering with CloudScript? I see that I can specify ?code= as a parameter and that appears to work, but that makes key rotation pretty onerous.
May I ask what's the scenario? What does it mean by "when linking to Cloud Script"? Do you mean the App settings of Azure? https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings#settings
Specifically, I'm registering an Azure HTTP Function with PlayFab's CloudScript capability. I want to secure these functions, and so I've set the Azure Function's security authLevel to "function". This means, I need a pre-shared key to be passed as the `code` query parameter. From what I can tell, I can hard code this param directly into the URL when I register the function, but this will make rotating these keys take more time. I'd like a way to provide an Azure Function pre-shared App Key that can apply to all my functions so that it can be easily rotated out.
Sorry, are you trying to deploy Azure Function for external use? In the common scenario, if it is simply for PlayFab use, after the function is deployed on Azure from Visual Studio (Code). You may register the function in PlayFab Game Manager. What you are trying to do should have done by PlayFab, which means when a player call ExecuteFunction API, the context of the player will be verified by PlayFab and pass through to Azure Function's argument.
Both Cloud Script and Azure function are not designed to handle administrative actions.
2 People are following this question.