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

Enhance server hostName handling #1023

Merged
merged 4 commits into from
Dec 23, 2024
Merged

Conversation

ARolek
Copy link
Member

@ARolek ARolek commented Dec 20, 2024

The hostName func is used to dynamically determine the hostName value in various API endpoints. The previous logic favored the Host value of request URL, but this value is often not set (i.e. when not operating behind a proxy). The default handling has been changed to return the request Host value if the request URL Host is not set.

This PR also addresses the outstanding ui vulns.

@ARolek ARolek requested review from gdey and iwpnd December 20, 2024 23:38
The hostName func is used to dynamically determine
the hostName value in various API endpoints. The previous
logic favored the Host value of request URL, but this value
is often not set (i.e. when not operating behind a proxy).
The default handling has been changed to return the
request Host value if the request URL Host is not set.

closes #1022
@ARolek ARolek force-pushed the issue-1022-enahce-hostName-handling branch from 1091990 to 5c1fec9 Compare December 20, 2024 23:40
@ARolek ARolek changed the title Issue 1022 enhance host name handling Enhance server hostName handling Dec 20, 2024
@coveralls
Copy link

coveralls commented Dec 20, 2024

Pull Request Test Coverage Report for Build 5c1fec939

Details

  • 10 of 10 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 42.865%

Totals Coverage Status
Change from base Build df9932aa1: 0.02%
Covered Lines: 7032
Relevant Lines: 16405

💛 - Coveralls

Copy link
Member

@iwpnd iwpnd left a comment

Choose a reason for hiding this comment

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

👀👍

Copy link
Member

@gdey gdey left a comment

Choose a reason for hiding this comment

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

LGTM

@ARolek ARolek merged commit 60841ec into master Dec 23, 2024
18 checks passed
@ARolek ARolek deleted the issue-1022-enahce-hostName-handling branch December 23, 2024 20:02
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.

4 participants