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

Need to log EasyAuth enablement details from Host #10687

Open
mathewc opened this issue Dec 10, 2024 · 0 comments
Open

Need to log EasyAuth enablement details from Host #10687

mathewc opened this issue Dec 10, 2024 · 0 comments

Comments

@mathewc
Copy link
Member

mathewc commented Dec 10, 2024

Currently the Functions Host enables Easy Auth middleware for non-Windows SKUs based on an environment variable WEBSITE_AUTH_ENABLED configured by the platform based on site auth config (code here).

However, the host doesn't emit any logs indicating whether this auth is enabled, making investigations difficult. We should have HostEasyAuthOptions implement IOptionsFormatter which is our standard way of ensuring the host logs critical config on startup. We can add additional logs as well as needed, the goal being to be able to easily tell whether a host has EasyAuth enabled and configured correctly.

This came up in a CRI investigation recently. Without this, we have to go dump environment for a running instance.

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

No branches or pull requests

1 participant