logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Reuse signature when running Logic App Preview (Docker) with HTTP trigger

Open scleynen opened this issue 4 years ago • 5 comments

Everytime you start a new version of your Logic App Preview container image, a new "secret" is generated. So this means that everytime you need to go to the storage, get the Master Key and call a url to get the sig.

Isn't there a way to make this more transparent so that we can pass by a key fe to make it possible to use the same url again and again and use this one in fe APIM

scleynen avatar Sep 07 '20 15:09 scleynen

Further to this - how do I know what {deployment-name} is ... each time I spin up the docker container it takes a different sequence of digits? Ideally would like this to be a fixed / known value that I can control for my container instance.

markharrison avatar Nov 10 '20 22:11 markharrison

ive worked out that I can control the first part of the deployment name with a -h on the Docker Run command. docker run -e WEBSITE_HOSTNAME=localhost -p 8080:80 -h FRED local/workflowcontainer

Where is the second part 2137340777 coming from / can I control it to a known value .

image

markharrison avatar Nov 11 '20 00:11 markharrison

Frankly, this is a big blocker @joechung-msft @divyaswarnkar @laveeshb

tomkerkhove avatar Nov 12 '20 07:11 tomkerkhove

It is possible to force this hostId by setting the environment variable AzureFunctionsWebHost:hostid (c.f. https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script/Config/ConfigurationSectionNames.cs#L14).

You will get a warning like below, but it will always take the content of this environment variable.

warn: Host.Startup[400]
      Host id explicitly set in configuration. This is not a recommended configuration and may lead to unexpected behavior.

rikroe avatar Nov 30 '21 10:11 rikroe

The two environment variables that need to be set when running in docker are:

WEBSITE_SITE_NAME and WEBSITE_HOSTNAME

Set WEBSITE_SITE_NAME what you want the container name to be in azure-webjobs-secrets.

inuvano-labs avatar May 12 '22 19:05 inuvano-labs

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 21 '22 16:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 28 '22 17:10 github-actions[bot]