Skip to content

fix: check hostname for profile endpoint url#37

Merged
anisaoshafi merged 5 commits intomainfrom
fix-profile-endpoint-url
Sep 8, 2025
Merged

fix: check hostname for profile endpoint url#37
anisaoshafi merged 5 commits intomainfrom
fix-profile-endpoint-url

Conversation

@anisaoshafi
Copy link
Copy Markdown
Contributor

  • Use uppercase "Override" in aws profile override.
  • Check hostname instead of only http protocol (https should also work)

Comment thread src/utils/configure-aws.ts Outdated
Comment on lines +60 to +61
parsed.port !== "" && // port must be present
(parsed.port === DEFAULT_PORT || /^\d+$/.test(parsed.port))
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.

The condition parsed.port !== "" is unnecessary because later we check for (parsed.port === DEFAULT_PORT || /^\d+$/.test(parsed.port)

Copy link
Copy Markdown
Contributor

@skyrpex skyrpex Sep 8, 2025

Choose a reason for hiding this comment

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

On a second thought, are we just trying to make sure there is a port, whatever it is? In that case, having parsed.port !== "" or just parsed.port only should be enough.

Comment thread src/utils/configure-aws.ts Outdated
Co-authored-by: Cristian Pallarés <cristian.pallares@localstack.cloud>
Comment thread src/utils/configure-aws.ts Outdated
Co-authored-by: Cristian Pallarés <cristian.pallares@localstack.cloud>
@anisaoshafi anisaoshafi merged commit 452be25 into main Sep 8, 2025
3 checks passed
@anisaoshafi anisaoshafi deleted the fix-profile-endpoint-url branch September 8, 2025 10:55
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.

2 participants