Commit Graph

39 Commits

Author SHA1 Message Date
Storm Dragon e31bffd256 Error messages updated. While Haha! is awesome, it is not very descriptive. 2026-07-07 16:54:28 -04:00
Storm Dragon 26c7808587 Started reworking skaldctl. Give room status along with room name. 2026-05-30 22:46:32 -04:00
Storm Dragon 965347cad4 Checkpoint audio-only Skald fork work 2026-05-18 13:06:57 -04:00
Storm Dragon a8ada950d5 Rename group package and defaults to halls 2026-05-17 22:37:38 -04:00
Storm Dragon 55528b8e62 Rename public group URLs to halls 2026-05-17 22:22:46 -04:00
Storm Dragon bda0e548d3 Rebrand project as Skald 2026-05-17 22:16:08 -04:00
Juliusz Chroboczek 213e3e5c6d Limit message size in keyHandler.
Thanks to Vinayak Mishra.
2026-04-07 17:41:24 +02:00
Juliusz Chroboczek eea92c5ac5 Fix CORS headers for key handler. 2026-04-07 17:40:16 +02:00
Juliusz Chroboczek d76f594130 Limit the size of API requests.
Thanks to Vinayak Mishra.
2026-04-07 15:47:11 +02:00
Juliusz Chroboczek ea5ad4a725 Improve error handling in web server. 2025-08-13 14:32:33 +02:00
Juliusz Chroboczek b78b2c040d Implement global tokens. 2025-08-12 18:13:14 +02:00
Juliusz Chroboczek 1ebb993fab Simplify apiHandler. 2025-08-12 16:02:04 +02:00
Juliusz Chroboczek a6410b5a68 Implement CORS for the administrative interface. 2025-06-13 15:00:16 +02:00
Juliusz Chroboczek 910b60f3c4 Change default password hashing algorithm to bcrypt.
Now that we limit the number of concurrent password hashing
operations, it is safe to use an algorithm that uses a fait
amount of memory.  We use strength 8, which is below the recommended
default, in order to keep password hashing time below 25ms.
2025-01-20 16:47:49 +01:00
Juliusz Chroboczek 9a6ed2c8c8 Return 404 errors for tokens in unknown groups. 2024-12-04 13:32:51 +01:00
Juliusz Chroboczek 1db15045a3 Fix incorrect parsing of wildcard user password. 2024-10-25 15:41:05 +02:00
Juliusz Chroboczek cb7a087ea2 Use mime.ParseMediaType instead of our version. 2024-08-15 00:41:27 +02:00
Juliusz Chroboczek f3ceb05033 Add Accept header to 415 replies.
Also fix return code in WHIP.
2024-05-09 17:48:17 +02:00
Juliusz Chroboczek c1915cf3fc Don't include group and name in token API.
The group and name are in the path, this avoids redundancies.
2024-05-09 00:46:52 +02:00
Juliusz Chroboczek ef6cff1d24 Add HTTP API for wildcard and empty users. 2024-05-08 14:53:45 +02:00
Juliusz Chroboczek d29d14da16 Add low-level support for managing wildcard user. 2024-05-08 14:28:28 +02:00
Juliusz Chroboczek 46ed942300 Split out userHandler. 2024-05-03 20:36:51 +02:00
Juliusz Chroboczek dc0610dc59 Fix 405 result in usersHandler. 2024-05-03 20:30:46 +02:00
Juliusz Chroboczek 9eb0364016 Allow a single wildcard user.
Rename the fallback-users entry to wildcard-user, and only
allow a single fallback user.  This is missing the HTTP API.
2024-05-03 20:24:32 +02:00
Juliusz Chroboczek f5279022ce Minor refactoring in api.go. 2024-05-03 20:11:36 +02:00
Juliusz Chroboczek a12331ee09 Use JSON arrays instead of plain text in API.
Suggested by Dianne Skoll.
2024-05-03 18:54:22 +02:00
Juliusz Chroboczek aa35408dba Rename /galene-api/0/ to /v0/. 2024-05-03 18:33:37 +02:00
Juliusz Chroboczek d7a2a2e8e0 Check for mismatched token in API. 2024-05-02 18:29:03 +02:00
Juliusz Chroboczek b7f9ef00b6 Token API. 2024-05-01 23:12:20 +02:00
Juliusz Chroboczek fe15057252 Check for empty path in api. 2024-05-01 22:20:51 +02:00
Juliusz Chroboczek 3409f5a27f Replace uses of os.IsExist and os.IsNotExist with errors.Is.
The former don't properly unwrap errors.
2024-04-14 13:34:32 +02:00
Juliusz Chroboczek 8fb1c1556e Fix typo in usersHandler. 2024-04-14 01:10:02 +02:00
Juliusz Chroboczek df46e6df21 Rename usersHandler. 2024-04-14 01:04:44 +02:00
Juliusz Chroboczek 695c379a6c Distinguish empty key in password from absence of key. 2024-04-12 01:05:48 +02:00
Juliusz Chroboczek 7673a95b05 Implement FallbackUsers in API. 2024-04-11 17:53:48 +02:00
Juliusz Chroboczek 31a18bcf44 Implement keys handling in API. 2024-04-11 14:30:44 +02:00
Juliusz Chroboczek cc38c53075 Implement administrative API. 2024-04-11 13:27:08 +02:00
Juliusz Chroboczek e14eec86d3 Implement parseContentType. 2024-04-09 22:49:03 +02:00
Juliusz Chroboczek b7094fc373 Beginnings of administrative API.
The "stats.json" file is moved under "galene-api", where the rest
of the API will live.
2024-04-09 22:49:03 +02:00