Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.92k stars 442 forks source link

HTTP response headers from Azure Functions should align with OWASP best-practices #9636

Open carlo-quinonez opened 11 months ago

carlo-quinonez commented 11 months ago

Scope

This question applies to a Function App running on a Windows App Service Plan.

On AppServices, we're able to modify the web.config to update response headers to meet the OWASP Secure Headers recommendations. This is a corporate policy, and violdating it includes penalties "up to and including termination". I doubt anyone would actually be fired for this, but...

Can we access the web.config file to do the same on Azure Functions?

bhagyshricompany commented 11 months ago

Thanks for informing. pls refer updated document.

carlo-quinonez commented 10 months ago

@bhagyshricompany What updated document are you referring to?

carlo-quinonez commented 10 months ago

@bhagyshricompany If it's relevant, we need to do this on a NodeJS function app.

bhagyshricompany commented 10 months ago

Direct manipulation of the web.config file is generally not recommended for Azure Functions.

carlo-quinonez commented 10 months ago

@bhagyshricompany Understand that if we modify webconfig we might encounter problems.

How do we even access the web config in a zip deployment? We use Azure DevOps to build and deploy.

carlo-quinonez commented 9 months ago

Any update?

carlo-quinonez commented 8 months ago

ping

carlo-quinonez commented 7 months ago

?

carlo-quinonez commented 6 months ago

@bhagyshricompany I updated the title to reflect the reason I asked about the web.config. Hopefully the new title and description are helpful in prioritizing this issue

carlo-quinonez commented 4 months ago

any thoughts?

carlo-quinonez commented 3 weeks ago

?