Skip to content

fix(security): remove hardcoded backend IP and enforce secure transport#6574

Open
karthik-dev56 wants to merge 1 commit intosugarlabs:masterfrom
karthik-dev56:fix-hardCoded-BackendIP-HTTPPusage
Open

fix(security): remove hardcoded backend IP and enforce secure transport#6574
karthik-dev56 wants to merge 1 commit intosugarlabs:masterfrom
karthik-dev56:fix-hardCoded-BackendIP-HTTPPusage

Conversation

@karthik-dev56
Copy link
Copy Markdown
Contributor

Replace the hardcoded IP address with a dynamic hostname pattern or an environment-based configuration (similar to how aidebugger.js handles it!).
Enforce https:// for all backend routing to ensure the data is transmitted safely over the network.

@github-actions github-actions bot added bug fix Fixes a bug or incorrect behavior size/S Small: 10-49 lines changed area/javascript Changes to JS source files labels Apr 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

❌ Some Jest tests failed. Please check the logs and fix the issues before merging.

Failed Tests:

reflection.test.js

@karthik-dev56 karthik-dev56 force-pushed the fix-hardCoded-BackendIP-HTTPPusage branch from 2e765d1 to d8fc551 Compare April 12, 2026 18:26
@github-actions github-actions bot added the area/tests Changes to test files label Apr 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@karthik-dev56
Copy link
Copy Markdown
Contributor Author

Hey @walterbender please have a look when u have time

vanshika2720

This comment was marked as off-topic.

@karthik-dev56
Copy link
Copy Markdown
Contributor Author

karthik-dev56 commented Apr 12, 2026

@vanshika2720 this protocol dynamically is the safe approach. If anyone deploys Music Blocks on an https://server, fetching from a hardcoded http:// API would be blocked by the browser for Mixed Content. It ensures it works on both localhost and deployments

@Ashutoshx7
Copy link
Copy Markdown
Contributor

Ashutoshx7 commented Apr 12, 2026

#5919 duplicate pr ( we are actively reviewing pr 5919 ) and even had discussion today in the meet for 5919

@Sidharthwin
Copy link
Copy Markdown
Contributor

hey @Ashutoshx7 where does this meet link comes , I can't see it in the channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/javascript Changes to JS source files area/tests Changes to test files bug fix Fixes a bug or incorrect behavior size/S Small: 10-49 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Hardcoded Backend IP Address and Plain HTTP Usage in reflection.js

4 participants