Skip to content

Restrict hosts to localhost for sidecar - #3579

Merged
Keegan (keegan-caruso) merged 1 commit into
masterfrom
kecaruso/host-filtering-localhost
Oct 29, 2025
Merged

Restrict hosts to localhost for sidecar#3579
Keegan (keegan-caruso) merged 1 commit into
masterfrom
kecaruso/host-filtering-localhost

Conversation

@keegan-caruso

@keegan-caruso Keegan (keegan-caruso) commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

Restrict hosts

Description

Implemented host filtering to restrict connections to localhost outside of development environments. Updated
Program.cs to include AddHostFiltering and UseHostFiltering.

Removed AllowedHosts from appsettings.json as it is now hardcoded. Updated README.md to clarify this behavior.

Fixes #3580

Implemented host filtering to restrict connections to `localhost`
outside of development environments. Updated
`Program.cs` to include `AddHostFiltering` and `UseHostFiltering`.

Removed `AllowedHosts` from `appsettings.json` as it is now
hardcoded. Updated `README.md` to clarify this behavior.
@keegan-caruso
Keegan (keegan-caruso) requested a review from a team as a code owner October 29, 2025 18:29
@keegan-caruso Keegan (keegan-caruso) changed the title Restrict hosts Restrict hosts to localhost for sidecar Oct 29, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keegan-caruso
Keegan (keegan-caruso) merged commit 091a71d into master Oct 29, 2025
4 checks passed
@keegan-caruso
Keegan (keegan-caruso) deleted the kecaruso/host-filtering-localhost branch October 29, 2025 20:54
This was referenced Nov 19, 2025
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

Successfully merging this pull request may close these issues.

[Feature Request] Restrict hosts to local host for sidecar

4 participants