Skip to content

Lowercase configured endpoints - #6412

Open
delthas wants to merge 2 commits into
development/9.5from
bugfix/CLDSRV-1116/lowercase-endpoint-keys
Open

delthas wants to merge 2 commits into
development/9.5from
bugfix/CLDSRV-1116/lowercase-endpoint-keys

Conversation

@delthas

@delthas delthas commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This is part of trying to make uppercase S3 endpoints work, from https://scality.atlassian.net/browse/RD-1336

This part is concerned with matching client requests with their S3 endpoints.

Previously, a request for S3.Example.com for the endpoint s3.example.com would get InvalidURI (https://scality.atlassian.net/browse/S3C-3953)

The Arsenal PR now lowercases the host header, but it needs lowercased endpoints too.

This fixes it by lowercasing the rest and web endpoints. No side effects found. (We also fail on a config with multiple endpoints having just a different casing, since that would be ambiguous, eg S3.Example.com + s3.example.com.

Issue: CLDSRV-1116

Hostnames are case-insensitive, and arsenal now matches the request
Host against the endpoints in lowercase and lowercases parsedHost
(ARSN-691), expecting lowercase endpoints. Lowercase the restEndpoints
keys when loading the config and in setRestEndpoints, and the
websiteEndpoints list, so that routing, website matching and the
endpoint location lookup in bucketPut find endpoints configured with
any case.

Rest endpoints that only differ by case are rejected: after lowercasing
they would be the same endpoint, possibly with conflicting locations.
Website endpoints that only differ by case are deduplicated.

Issue: CLDSRV-1116
Temporary pin to the unreleased ARSN-691 commit, to be replaced by the
arsenal release.

Issue: CLDSRV-1116
@bert-e

bert-e commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Hello delthas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

Comment thread package.json
"@opentelemetry/instrumentation-ioredis": "~0.70.0",
"@opentelemetry/instrumentation-mongodb": "~0.75.0",
"@scality/arsenal": "^8.6.7",
"@scality/arsenal": "git+https://github.com/scality/Arsenal.git#9c1a5d5f3304d1bab55bb728918a3a60dec08063",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Arsenal is pinned to a bare commit SHA, not a release/tag. Replace with the arsenal release containing ARSN-691 (and regenerate yarn.lock) before merging.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I know, will fix before merging

@scality scality deleted a comment from bert-e Dec 2, 2026
@bert-e

bert-e commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.57%. Comparing base (a3a9b8a) to head (2df98b8).
⚠️ Report is 5 commits behind head on development/9.5.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/Config.js 84.47% <100.00%> (+0.10%) ⬆️

... and 2 files with indirect coverage changes

@@               Coverage Diff                @@
##           development/9.5    #6412   +/-   ##
================================================
  Coverage            90.56%   90.57%           
================================================
  Files                  208      208           
  Lines                39327    39342   +15     
================================================
+ Hits                 35616    35633   +17     
+ Misses                3711     3709    -2     
Flag Coverage Δ
checksums-disabled-tests 46.35% <94.44%> (+0.02%) ⬆️
file-ft-tests 75.91% <94.44%> (+0.01%) ⬆️
file-ft-tests-null-compat 76.40% <94.44%> (+0.03%) ⬆️
kmip-ft-tests 37.91% <94.44%> (+0.02%) ⬆️
mongo-v0-ft-tests 76.95% <94.44%> (-0.02%) ⬇️
mongo-v1-ft-tests 76.94% <94.44%> (-0.02%) ⬇️
multiple-backend 44.58% <94.44%> (+0.02%) ⬆️
s3c-ft-tests-v0 71.69% <94.44%> (-0.04%) ⬇️
s3c-ft-tests-v0-null-compat 71.75% <94.44%> (+<0.01%) ⬆️
s3c-ft-tests-v0-replication-compat 71.47% <94.44%> (+0.01%) ⬆️
s3c-ft-tests-v1 71.67% <94.44%> (+0.01%) ⬆️
sur-tests 45.06% <94.44%> (+<0.01%) ⬆️
sur-tests-inflights 48.44% <94.44%> (+0.01%) ⬆️
unit 80.59% <100.00%> (+<0.01%) ⬆️
utapi-v2-tests 45.27% <94.44%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@francoisferrand francoisferrand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is the wrong place : such normalization should be done earlier, i.e. in Pensieve-API (and possibly zkop, for initial overlay?), as it will be used for various k8s resources.

@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Incorrect fix version

The Fix Version/s in issue CLDSRV-1116 contains:

  • 9.5.14

  • 9.6.4

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 9.5.14

  • 9.6.4

  • 9.7.0

Please check the Fix Version/s of CLDSRV-1116, or the target
branch of this pull request.

This branch has not been deployed

No deployments
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.

3 participants