Skip to content

[v18] Fix App public_addr allows setting a conflicting hostname with the proxy when using capital letters #61290

Merged
cthach merged 1 commit intobranch/v18from
cthach/fix-validate-app-backport-v18
Nov 12, 2025
Merged

[v18] Fix App public_addr allows setting a conflicting hostname with the proxy when using capital letters #61290
cthach merged 1 commit intobranch/v18from
cthach/fix-validate-app-backport-v18

Conversation

@cthach
Copy link
Copy Markdown
Contributor

@cthach cthach commented Nov 12, 2025

Backport #61123 to branch/v18

Changelog: Improve conflict detection of application public address and Teleport cluster addresses.

…oxy when using capital letters (#61123)

* fix: App public_addr allows setting a conflicting hostname with the proxy when using capital letters

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Only normalize once. Remove app public_addr validate.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Fix grpc tests

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Polish and optimize ValidateApp

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Apply suggestions from code review

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Strip all trailing dots

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* NewAppV3 should never panic during fuzzing. Improve comments in fuzz test.

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

* Clarify app spec validated in CheckAndSetDefaults

Signed-off-by: Chris Thach <chris.thach@goteleport.com>

---------

Signed-off-by: Chris Thach <chris.thach@goteleport.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
@cthach cthach self-assigned this Nov 12, 2025
@cthach cthach added security Security Issues backport size/md sec-internal Security Vulnerability - Reported by employees or auditors, no known exploitation labels Nov 12, 2025
@cthach cthach requested a review from tangyatsu November 12, 2025 15:41
@cthach cthach marked this pull request as ready for review November 12, 2025 16:03
@cthach cthach enabled auto-merge November 12, 2025 16:03
@cthach cthach added this pull request to the merge queue Nov 12, 2025
Merged via the queue into branch/v18 with commit ee01cc0 Nov 12, 2025
47 of 48 checks passed
@cthach cthach deleted the cthach/fix-validate-app-backport-v18 branch November 12, 2025 17:45
@aadc-dev aadc-dev mentioned this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport sec-internal Security Vulnerability - Reported by employees or auditors, no known exploitation security Security Issues size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants