Listen domain isn't matched when port is specified in Host header #586

Closed
opened 2024-12-17 08:36:57 +00:00 by alexvanin · 0 comments
Owner

Expected Behavior

HTTPS request with 443 port in Host header is matched with domain from listen_domains without port to process VHS request.

Current Behavior

Request isn't matched.

Possible Solution

Steps to Reproduce (for bugs)

  1. Set s3dev.frostfs.devenv domain in listen_domains section
  2. Enable VHS in S3 client and S3 gateway
  3. Try to create bucket by using port in host header (e.g. --endpoint http://s3dev.frostfs.devenv:8884)

Context

Was found during VHS fixes from #583

Regression

No

Your Environment

frostfs-s3-gw v0.31.2

## Expected Behavior HTTPS request with 443 port in `Host` header is matched with domain from `listen_domains` without port to process VHS request. ## Current Behavior Request isn't matched. ## Possible Solution <!--- Not obligatory --> <!--- If no reason/fix/additions for the bug can be suggested, --> <!--- uncomment the following phrase: --> <!--- No fix can be suggested by a QA engineer. Further solutions shall be up to developers. --> ## Steps to Reproduce (for bugs) 1. Set `s3dev.frostfs.devenv` domain in `listen_domains` section 2. Enable VHS in S3 client and S3 gateway 3. Try to create bucket by using port in host header (e.g. `--endpoint http://s3dev.frostfs.devenv:8884`) ## Context Was found during VHS fixes from #583 ## Regression No ## Your Environment frostfs-s3-gw v0.31.2
alexvanin added this to the v0.31.3 milestone 2024-12-17 08:36:57 +00:00
alexvanin added the
bug
label 2024-12-17 08:36:57 +00:00
r.loginov was assigned by alexvanin 2024-12-17 08:36:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#586
No description provided.