Commit Graph

5510 Commits

Author SHA1 Message Date
quaff 147403ea73 IRCv3 spec no-implicit-names has been ratified. (#2390) 2026-04-21 14:40:37 -04:00
Shivaram Lingamneni 49192e6fa5 add /v1/whois to API (#2387) 2026-04-20 00:58:29 -04:00
Shivaram Lingamneni 7c8d81ac79 pointless optimization to (*caps.Set).Strings (#2386)
Doesn't change anything on arm64 (where atomic load is a plain MOV),
but reduces atomic instructions on arm64 and other platforms.
2026-04-20 00:56:48 -04:00
Shivaram Lingamneni de005ee69f enhanced auth integrations (#2383)
* Harvest cookies from the initial websocket handshake to pass to an
  auth-script (#2185)
* Allow running auth-script and ip-check-script over unix domain socket
  (#2280)
2026-04-15 01:48:29 -04:00
Shivaram Lingamneni cfee1917f3 use deferred unlock in two more places (#2381)
No functional change, just defensive coding
2026-04-13 23:06:08 -04:00
Shivaram Lingamneni 9556e5c025 add support for draft/chathistory-end tag (#2379) 2026-04-13 22:50:24 -04:00
Shivaram Lingamneni 10da32292f fix missing read permissions checks for METADATA (#2382)
These were incorrectly refactored out in #2277.
Also group the two write subcommands together, then the
three read subcommands.
2026-04-13 22:46:10 -04:00
Shivaram Lingamneni 5bb94efaf6 fix handling of invalid API bearer tokens (#2380)
Not doing a pointfix since this only affects obvious misconfigurations of Ergo
(our attempt to be defensive against those misconfigurations failed)
2026-04-10 13:32:09 -04:00
Shivaram Lingamneni cbbe18314a documentation updates (#2378) 2026-04-10 05:17:49 -04:00
Shivaram Lingamneni 44cd51ef36 new development version 2026-03-22 01:38:47 -04:00
Shivaram Lingamneni 4fabfb8ee3 release v2.18.0 2026-03-22 00:55:45 -04:00
Shivaram Lingamneni ef28345fd5 Merge pull request #2371 from slingamn/sqlite_fix
fix (*SQLite).ListChannels
2026-03-19 22:41:40 -07:00
Shivaram Lingamneni f9a11db153 fix (*SQLite).ListChannels
If the final channel we attempted to list had no messages, sql.ErrNoRows
would be returned as the error for the entire function, which would
prevent any channels from appearing in the targets list.
2026-03-20 04:15:29 +00:00
Shivaram Lingamneni 73276d8685 changelog for build tags 2026-03-19 22:54:23 -04:00
Shivaram Lingamneni 56f0691bef fix 2026-03-19 17:50:25 -04:00
Shivaram Lingamneni 9ea307c92e add more build documentation 2026-03-19 17:49:22 -04:00
Shivaram Lingamneni e6b55903f0 tweaks to changelog 2026-03-17 14:42:06 -04:00
Shivaram Lingamneni 45548138c3 update changelog 2026-03-17 14:34:56 -04:00
Shivaram Lingamneni 937bad6717 fix #2287 (#2369)
Allow restricting metadata modification to server operators
2026-03-17 14:33:11 -04:00
Shivaram Lingamneni 9e61528711 update documentation for persistent history (#2368) 2026-03-17 03:23:59 -04:00
Shivaram Lingamneni 2a114dc78a release v2.18.0-rc1 (#2364) 2026-03-16 00:53:01 -04:00
Shivaram Lingamneni da037c0162 clean up config tests 2026-03-15 05:56:31 -04:00
Shivaram Lingamneni 0e76470249 allow testing irc/ with i18n compiled out (#2363)
Add to `make test` as well
2026-03-15 03:47:33 -04:00
Shivaram Lingamneni 93495e2cf5 update FAQ entry for OPER issues (#2230) 2026-03-15 03:38:25 -04:00
Shivaram Lingamneni 620e7d13d5 Merge pull request #2362 from slingamn/issue2275.6
fix #2275
2026-03-15 00:28:09 -07:00
Shivaram Lingamneni 218cac3037 fix environment overrides against map fields 2026-03-15 07:16:44 +00:00
Shivaram Lingamneni 3bc010a6d9 document limitations of environment overrides 2026-03-15 04:40:26 +00:00
Shivaram Lingamneni e4e9e20986 bump irctest 2026-03-13 16:38:07 -04:00
Shivaram Lingamneni 52fc77433e api: defcon endpoint (#2359) 2026-03-13 03:18:23 -04:00
Shivaram Lingamneni 05c37122fc api: add /v1/list to list channels (#2358) 2026-03-13 01:53:17 -04:00
Shivaram Lingamneni ca4c3c09df goreleaser updates for v2.18 (#2357)
* Full build is default
* sqlite is only supported on Linux, MacOS, and FreeBSD;
  override the sqlite build tag based on OS where unsupported
2026-03-12 22:37:56 -04:00
Shivaram Lingamneni e7558f292c build changes (#2356)
* default build includes everything
* allow compiling out PRECIS and Skeleton (still included by default)
* consistently use `postgresql` in identifiers
2026-03-12 21:48:37 -04:00
Shivaram Lingamneni 768c01c17b add a sqlite history backend (#2352) 2026-03-12 21:32:13 -04:00
Shivaram Lingamneni 1b673f049f remove defer in AuthenticateByCertificate (#2355)
Makes the control flow unnecessarily confusing now that the check
is its own function.
2026-03-12 12:58:29 -04:00
Shivaram Lingamneni 4e65b76c67 fix #2353 (#2354)
Check certfp in API /v1/check_auth
2026-03-12 01:41:49 -04:00
Shivaram Lingamneni c61859927f fix WEBPUSH FAIL responses (#2351)
* All FAIL messages take the endpoint as a parameter when available
* Use MAX_REGISTRATIONS instead of FORBIDDEN when appropriate
* Add handler for unknown subcommand
2026-03-11 04:21:36 -04:00
Shivaram Lingamneni ec7db5a02b fix #2349 (#2350)
Add msgid to push messages when available, as required by the spec
2026-03-10 17:50:01 -04:00
Shivaram Lingamneni 3c41a81921 bump irctest 2026-03-10 11:43:32 -04:00
Shivaram Lingamneni 69efae2c2e postgres: accept libpq URIs (#2347) 2026-03-05 14:58:09 -05:00
Shivaram Lingamneni 5fd8ed8ed6 add a postgres history backend (#2322)
Postgres support is behind a build tag; use `make build_full`
or `make install_full` to compile it in.
2026-03-05 01:18:28 -05:00
Shivaram Lingamneni ee0071b37a bump irctest 2026-03-02 23:19:50 -05:00
Shivaram Lingamneni 2e6fd75525 support draft/ACCOUNTREQUIRED in 005 (#2341)
https://github.com/ircv3/ircv3-specifications/pull/585
2026-03-02 04:10:58 -05:00
Shivaram Lingamneni 76e8e61705 fix #2227 (#2334)
* fix #2227

Instead of returning an error from Accept(), force the caller to process
errors from trying to read and parse the PROXY protocol.

The advantage here is that we don't have to rely on (net.Error).Temporary
or incur timed backoff from net/http when hitting these errors. However,
we still risk stalling processing of new incoming connections if someone
opens a connection to the proxy listener and doesn't send anything.
This is hard to fix while maintaining the net.Listener abstraction in
cooperation with http.Server.

* reduce proxy deadline to 5 seconds
2026-03-02 04:10:26 -05:00
Shivaram Lingamneni b120806fd5 fix #2345 (#2346)
Nil dereference from CS DEOP and EXTJWT; no security implications
2026-03-01 12:45:21 -05:00
Shivaram Lingamneni 23e1ef384c mysql: fix channels allocation 2026-03-01 06:04:07 -05:00
Shivaram Lingamneni 3e83f52f3a Merge pull request #2338 from ergochat/dependabot/go_modules/filippo.io/edwards25519-1.1.1
Bump filippo.io/edwards25519 from 1.1.0 to 1.1.1
2026-02-19 12:15:13 -08:00
dependabot[bot] 1e00095055 Bump filippo.io/edwards25519 from 1.1.0 to 1.1.1
Bumps [filippo.io/edwards25519](https://github.com/FiloSottile/edwards25519) from 1.1.0 to 1.1.1.
- [Commits](https://github.com/FiloSottile/edwards25519/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: filippo.io/edwards25519
  dependency-version: 1.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 18:51:35 +00:00
Shivaram Lingamneni 11a38b7119 bump irctest to test websockets (#2331)
Install python3-websockets for irctest in CI. This won't actually work
as expected until Ubuntu 26.04.
2026-02-16 18:19:04 -05:00
Shivaram Lingamneni c79b65cf8a bump irc-go 2026-02-11 04:01:40 -05:00
Shivaram Lingamneni 8fe491156c upgrade to go 1.26 (#2330)
Also upgrade actions for compatibility with 1.26
2026-02-10 19:19:08 -05:00