1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-26 12:31:00 +01:00

1677 Commits

Author SHA1 Message Date
tyranron
94ade4b01f
Update Debian "bookworm" to 20240130 snapshot in Docker image 2024-02-01 12:33:57 +02:00
Michael Jones
2459db6266
Adjust wording in cmake message when prometheous cannot be found. (#1418) 2024-01-31 17:57:20 -08:00
tyranron
d274637d51
Update Alpine to 3.19.1 version in Docker image to fix CVE-2023-6129, CVE-2023-6237 and CVE-2024-0727 docker/4.6.2-r8 2024-01-29 12:07:35 +02:00
Michael Jones
da332ed9e7
Add the InsertBraces command for clang-format to ensure that all conditionals always have braces (#1408)
- Why? Because code where conditionals lack braces is much harder to read, and prone to indentation confusion.
- How? Just added an extra flag to .clang-format and re-ran clang-format on all the files.

I also moved .clang-format up to the top level of the repo so that it can be applied to the fuzz targets as well.
2024-01-27 16:38:40 -08:00
Pavel Punsky
168305494d
Exclude testing alpine Docker image on s390x arch on CI due to QEMU emulation problems (#1395, #1390)
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Michael Jones <jonesmz@users.noreply.github.com>
2024-01-24 13:08:08 +01:00
Pavel Punsky
87602ea2b6
Change minimal required cmake version to 3.16 (#1388) 2024-01-19 20:39:19 -08:00
Pavel Punsky
0afbc6204d
Replace HeapAlloc with malloc (#1378)
Use malloc/free instead of HeapAlloc/HeapFree
2024-01-18 21:08:28 -08:00
korayvt
348380f248
Added sessionID to some log lines (#1334)
Co-authored-by: KORAY VATANSEVER <koray.vatansever@turkcell.com.tr>

Some events are missed when logs are filtered by session ID. That's why I added the sessionID to some log lines.
2024-01-17 22:16:57 -08:00
dependabot[bot]
8aa827acd9
Bump actions/cache from 3 to 4 (#1385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:15:38 -08:00
dependabot[bot]
9a8408725a
Bump github/codeql-action from 2 to 3 (#1386)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:14:57 -08:00
Kang Lin
d33112f84a
Update FlowChart (#1377) 2024-01-16 19:54:19 -08:00
Michael Jones
72ad1f01d1
Add clang-tidy, include-what-you-use, and msvc-analyzer github actions (#1363) 2024-01-16 19:49:30 -08:00
Kang Lin
05900adb2e
Doc: add flowchart (#1328)
The flowchart will be kept updated:

- Use [drawio](https://app.diagrams.net/) to edit.

1. Open [drawio](https://app.diagrams.net/) in brower
2. Menu → File → Open from ... → Device:

Select [FlowChart.html](FlowChart.html)

3. Edit flow chart
4. Export to svg:

Menu → File → Export as... → SVG...
2024-01-15 19:14:21 -08:00
Cybermilitia
7546c24b2f
Missing session ID in coturn logs for denied IP - 1330 (#1332)
Co-authored-by: CUMHUR KARAHAN <cumhur.karahan@turkcell.com.tr>

Added session id parameter to use it in "A peer IP denied in the range" logs. Besides, server ID has been made visible in this logs.
Before
```
023-08-24T17:23:17.221745770+03:00 stdout F 268472: : ERROR: A peer IP 169.254.38.68 denied in the range: 169.254.0.0-169.254.255.255
```

And after - new view:
```
2023-09-28T10:53:49.627778472+03:00 stdout F 1247: : ERROR: session 006000000000000004: A peer IP 172.21.198.41 denied in the range: 172.21.198.40-172.21.198.50 in server 6
```
2024-01-15 19:12:24 -08:00
Pavel Punsky
1f2bb51279
Update lukka/run-vcpkg@11 (#1374)
- update lukka/run-vcpkg@11
- vcpkg 2023-11-16 Release (new version was required anyway but taking somewhat newer but not latest)
- lukka/run-vcpkg@11 documentation states cache is not needed so deleted anything related to caching

Test plan: edited yaml file to run msvc job on PR and confirmed that it passes successfully
2024-01-15 19:06:31 -08:00
vuittont60
da6bc6b0c4
Fix typos (#1345) 2024-01-15 18:31:16 -08:00
Pavel Punsky
acf607ee50
Fix mingw build (#1376) 2024-01-15 18:26:54 -08:00
Michael Jones
8f2a482ad9
Add github action that runs tests with compiler sanitizers (#1370) 2024-01-15 18:26:31 -08:00
Pavel Punsky
c062d5e2af
Simplify macOS detection macros (#1372) 2024-01-15 15:18:35 -08:00
Pavel Punsky
f8e9892d3e
Fix potential null passed to function expecting nonnull (#1373) 2024-01-15 15:13:32 -08:00
Evgeny Khramtsov
7ecfb537e9
Only set MHD_USE_DUAL_STACK if IPv6 is available (#1362)
Co-authored-by: Evgeny Khramtsov <evgeny.khramtsov@ringcentral.com>

If IPv6 is not enabled during runtime, prometheus server fails to start with `EAFNOSUPPORT` because `MHD_USE_DUAL_STACK` is set unconditionally.

This PR fixes it. As a bonus, it also checks if libmicrohttpd is compiled with IPv6 support.
2024-01-14 12:49:59 -08:00
Pavel Punsky
9e7f31a84d
Remove unimplemented test folder reference from CMakeLists.txt (#1371) 2024-01-14 12:49:05 -08:00
tyranron
131ada68e6
Update Debian "bookworm" to 20240110 snapshot in Docker image 2024-01-11 12:24:29 +01:00
tyranron
d11451b902
Update Debian "bookworm" to 20231218 snapshot in Docker image 2023-12-19 13:37:11 +01:00
dependabot[bot]
1c7171b74a
Upgrade github/codeql-action from 2 to 3 version (#1348)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 13:27:53 +01:00
dependabot[bot]
4134344838
Upgrade actions/download-artifact from 3 to 4 version (#1350)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 12:48:28 +01:00
dependabot[bot]
a437bcbc12
Upgrade actions/upload-artifact from 3 to 4 version (#1349)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 12:17:41 +01:00
tyranron
7dc52de6c3
Upgrade Alpine to 3.19 version in Docker image docker/4.6.2-r7 2023-12-08 13:20:35 +01:00
tyranron
e0a040caac
Update Alpine to 3.18.5 version to fix CVE-2023-5678 in Docker image docker/4.6.2-r6 2023-12-01 13:21:55 +01:00
Kang Lin
294f897ccd
CMake: find prometheus(fix #1304) (#1315)
fix #1304
2023-11-22 20:34:53 -08:00
Kang Lin
c7a18c6296
Fix: run cmake.yml in any github action (#1320) 2023-11-22 20:34:13 -08:00
Subhra264
9485c9567e
Fix: Return correct error code for create_relay_connection in case of RESERVATION-TOKEN failure (#1319)
Fixes #1266 

According to RFC 5766, [section 6.2](https://www.rfc-editor.org/rfc/rfc5766#section-6.2) point no. 5, the turn server needs to reject the request with 508 (Insufficient Capacity) error code when the given RESERVATION-TOKEN is not valid.
2023-11-22 20:30:27 -08:00
tyranron
4353f05021
Update Debian "bookworm" to 20231120 snapshot in Docker image 2023-11-21 13:29:05 +01:00
dependabot[bot]
0a95c8435a
Upgrade actions/github-script from 6 to 7 version (#1316)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 14:37:05 +01:00
Pavel Punsky
99cc8aaa65
Reduce ifdefs in code: TURN_NO_PROMETHEUS (#1116)
TURN_NO_PROMETHEUS define is used in minimal amount of places now
2023-11-05 17:49:03 -08:00
Richard Russo
4bc872b663
strncpy doesn't return size_t (#1296)
follow up to https://github.com/coturn/coturn/pull/1282/files
2023-11-05 17:48:32 -08:00
Dave Lambley
20c8d86a34
Return a 400 response to HTTP requests (#1231)
For our deployment, it is useful if coturn returns a valid HTTP response to an HTTP request. To do this on the same port as STUN/TURN and without enabling the admin site, I have extended `read_client_connection()` to return a canned HTTP response, in response to an HTTP request, rather than immediately closing the connection.
2023-11-05 17:25:12 -08:00
tyranron
0fb6addecb
Update Debian "bookworm" to 20231030 snapshot in Docker image 2023-11-01 12:19:46 +02:00
tyranron
e7c1551de1
Try test s390x platform Docker images in MacOS on CI docker/4.6.2-r5 2023-10-05 14:25:26 +03:00
tyranron
66bea108a1
Try 6.1.0 QEMU version for Docker tests on CI 2023-10-05 13:21:34 +03:00
tyranron
078bc829bd
Try edge QEMU version for Docker tests on CI 2023-10-05 13:03:07 +03:00
tyranron
a68c57caac
Try BuildKit QEMU auto-emulation on CI for Docker images 2023-10-05 12:45:25 +03:00
Gustavo Garcia
597b36c5a2
Fix missing strncpy in fix_stun_check_message_integrity_str (#1282)
Co-authored-by: Gustavo Garcia <gustavogb@mail.com>
Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2023-10-04 10:06:40 -07:00
tyranron
213ecd3388
Try build s390x platform Docker images in MacOS on CI 2023-10-04 16:58:52 +03:00
tyranron
c03096ee7b
Update Alpine to 3.18.4 version and Debian "bookworm" to 20230919 snapshot in Docker image 2023-10-04 14:04:56 +03:00
Gustavo Garcia
4ddca0b0b9
Fix ubuntu 16 build with GH action checkout version to v3 (#1281)
Co-authored-by: Gustavo Garcia <gustavogb@mail.com>
2023-10-03 20:44:31 -07:00
Pavel Punsky
95c2967252
Fix memleak in pgsql_reread_realms (#1278)
Fixes #1259

If `ur_string_map_put ` fails then the string that was just `strdup`-ed
will leak memory
Now the return value is checked and memory free-ed in case of failure
2023-10-02 16:20:14 +02:00
Gustavo Garcia
88ced47138
Replace srand/rand with srandom/random (#1279)
- srandom/random provide stronger randomness characteristics than
srand/rand in some operating systems.
- usage of srand/rand is not very consistent in coturn.

There is room for more refactoring and use apputils helper functions in
ns_turn_msg.c too but i'm not sure that dependency from "client" module
to "apps" module is a good idea yet.

Thx @0xdea

Co-authored-by: Gustavo Garcia <gustavogb@mail.com>
2023-10-02 16:19:57 +02:00
Gustavo Garcia
4e0d21e1b5
Fix memcpy len checks stun_is_challenge_response_str (#1280)
Add missing checks for length of realm/nonce/server_name before copying
those values to the buffer passed to stun_is_challenge_response_str.

The function stun_is_challenge_response_str is only used in uclient test
application.

Thank you very much @0xdea

Co-authored-by: Gustavo Garcia <gustavogb@mail.com>
2023-10-02 16:19:38 +02:00
dependabot[bot]
17e3b81a36
Upgrade docker/setup-qemu-action to 3 version (#1265)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 14:43:53 +02:00