Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlo-quinonez opened this issue Oct 24, 2023 · 11 comments
Assignees

Comments

@carlo-quinonez
Copy link

carlo-quinonez commented Oct 24, 2023

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 bhagyshricompany self-assigned this Oct 25, 2023
@bhagyshricompany
Copy link

Thanks for informing. pls refer updated document.

@carlo-quinonez
Copy link
Author

@bhagyshricompany What updated document are you referring to?

@carlo-quinonez
Copy link
Author

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

@bhagyshricompany
Copy link

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

@carlo-quinonez
Copy link
Author

@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
Copy link
Author

Any update?

@carlo-quinonez
Copy link
Author

ping

@carlo-quinonez carlo-quinonez changed the title Using web.config to modify headers HTTP response headers from Azure Functions should align with OWASP best-practices Feb 1, 2024
@carlo-quinonez
Copy link
Author

?

@carlo-quinonez
Copy link
Author

@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
Copy link
Author

any thoughts?

@carlo-quinonez
Copy link
Author

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants