Skip to content

Conversation

@xinze-zheng
Copy link
Member

Description

This is a draft for TURN STUN sidecar for ION. I'm hoping to have some feedbacks before proceeding.

  • Implements STUN-only (not TCP support) and STUN-TURN service
  • ice/config.go implements logic to parse an endoint to one of (stun|turn|stun-turn). This allows sidecar to run corresponding services.
  • Lots of unit tests and integration tests with clients.

TODO

  • TURN-only service using allocaiton callback.
  • Metrics
  • Quota
  • Dockerfile
  • More integration test

Reference issue

Fixes #20 #21

@xinze-zheng xinze-zheng requested a review from JoeTurki November 2, 2025 22:07
@codecov
Copy link

codecov bot commented Nov 2, 2025

Codecov Report

❌ Patch coverage is 71.84987% with 105 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@12fdb27). Learn more about missing BASE report.

Files with missing lines Patch % Lines
cmd/ice/main.go 64.62% 63 Missing and 12 partials ⚠️
internal/config/config.go 46.87% 17 Missing ⚠️
internal/ice/config.go 89.92% 7 Missing and 6 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #23   +/-   ##
=======================================
  Coverage        ?   77.05%           
=======================================
  Files           ?       10           
  Lines           ?      767           
  Branches        ?        0           
=======================================
  Hits            ?      591           
  Misses          ?      155           
  Partials        ?       21           
Flag Coverage Δ
go 77.05% <71.84%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Add TURN sidecar service

2 participants