71 Commits
Author SHA1 Message Date
renovate[bot]andGitHub c6336979c8 Update dependency rules_jvm_external to v7.1 (#8810) 2026-07-27 20:31:53 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
d94f731c50 Update dependency io.sentry:sentry to v8.50.1 (#8806)
* Update dependency io.sentry:sentry to v8.50.1

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:03:46 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
80417fd3bf Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.5 (#8803)
* Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.5

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 06:38:13 -07:00
renovate[bot]andGitHub 4df0e75137 Update dependency org.xerial:sqlite-jdbc to v3.53.2.1 (#8797) 2026-07-27 04:44:52 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
b0d1a8181b Update dependency io.sentry:sentry to v8.49.0 (#8741)
* Update dependency io.sentry:sentry to v8.49.0

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 11:41:57 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8164e91125 Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.4 (#8727)
* Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.4

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 07:20:00 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>admin
d5da95c5e3 Update dependency com.zaxxer:HikariCP to v7 (#8513)
* Update dependency com.zaxxer:HikariCP to v7

* Regenerate Maven lockfile after rebase

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dan Crosby <dan@danielcrosby.net>
2026-07-13 11:35:02 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
d3f99ccada Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.3 (#8498)
* Update dependency org.scalameta:scalafmt-cli_2.13 to v3.11.3

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:53:38 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
f4e3944716 Update dependency org.postgresql:postgresql to v42.7.13 (#8497)
* Update dependency org.postgresql:postgresql to v42.7.13

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:53:13 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
35d441d7f6 Update dependency com.thesamet.scalapb:protoc-bridge_3 to v0.9.10 (#8496)
* Update dependency com.thesamet.scalapb:protoc-bridge_3 to v0.9.10

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:20:49 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ddb49f411b Update dependency io.sentry:sentry to v8.48.0 (#8506)
* Update dependency io.sentry:sentry to v8.48.0

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:20:27 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
130c0a5f37 Update dependency grpc-java to v1.82.0 (#8505)
* Update dependency grpc-java to v1.82.0

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:19:30 -07:00
adminandGitHub 6274ba4195 Pool Postgres connections behind provider (#8372)
* Pool Postgres connections behind provider

* Use smaller production Postgres pool default
2026-07-09 10:47:54 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
edf3d7596f Update guava monorepo to v33.6.0-jre (#7144)
* Update guava monorepo to v33.6.0-jre

* Update generated dependency lockfiles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-12 08:30:19 -07:00
adminandGitHub f8ce8075e5 Update AWS SDK to 2.46.9 (#7102) 2026-06-11 15:38:54 -07:00
adminandGitHub e3f99c9649 Update AWS SDK to 2.46.8 (#7098) 2026-06-11 15:10:36 -07:00
adminandGitHub 71f0f47da2 Clean up C++ test warnings (#7065)
* Clean up C++ test warnings

* Keep player setup expected map size readable

* Declare direct Bazel module dependencies (#7069)

* Check Shardok map proto parse results

* Prepare Apple and protobuf module resolution

* Declare direct Bazel module dependencies
2026-06-11 07:39:57 -07:00
adminandGitHub 8b67adbe00 Align scala3 staging version (#7053) 2026-06-10 22:08:51 -07:00
adminandGitHub 44ae2f36a7 Update ScalaPB core (#7050) 2026-06-10 17:28:16 -07:00
adminandGitHub 78d92fee37 Update Nimbus JOSE JWT (#7049) 2026-06-10 16:17:35 -07:00
adminandGitHub 2227cce8a6 Update Guava (#7046) 2026-06-10 15:40:41 -07:00
adminandGitHub 3e618b1e6f Update OkHttp (#7048) 2026-06-10 15:34:05 -07:00
adminandGitHub c392895e12 Update Error Prone annotations (#7044) 2026-06-10 15:32:55 -07:00
adminandGitHub f86fb86870 Update Gson (#7045) 2026-06-10 15:19:30 -07:00
adminandGitHub 3cacfc5225 Update Scalamock (#7043) 2026-06-10 15:19:12 -07:00
adminandGitHub 6e94c82098 Update AWS Lambda Java libraries (#7042) 2026-06-10 15:14:03 -07:00
adminandGitHub 1a3d0a82a6 Update AWS SDK (#7041) 2026-06-10 15:13:38 -07:00
adminandGitHub ea083c8c6c Update Sentry SDK (#7039) 2026-06-10 15:06:28 -07:00
adminandGitHub aea5bc614b Update Scalafmt CLI (#7038) 2026-06-10 14:55:11 -07:00
adminandGitHub e006d9e5a0 Update SQLite JDBC driver (#7036) 2026-06-10 14:47:22 -07:00
adminandGitHub 7d6d8f3606 Update PostgreSQL JDBC driver (#7034) 2026-06-10 12:52:29 -07:00
adminandGitHub e1e714a818 Update SLF4J dependencies (#7029) 2026-06-10 09:46:41 -07:00
adminandGitHub 401fdd26cd Update Netty dependencies (#7026) 2026-06-10 09:39:23 -07:00
adminandGitHub 7408016628 Add Postgres latency benchmark admin tool (#6967) 2026-06-08 07:48:32 -07:00
adminandGitHub 0bc84928c7 Add Scala staging runtime to Eagle server (#6810) 2026-05-29 18:44:28 -07:00
adminandGitHub e543d7b53f Run scalafmt hook through Bazel (#6753) 2026-05-24 13:01:56 -07:00
16a4b8f87e Replace file-based ClientTextStore with SQLite implementation (#5553)
* Replace file-based ClientTextStore with SQLite implementation

SQLite provides indexed lookups instead of loading/parsing a 5MB+ text file.
This should significantly reduce the ~142ms spent on loadTextStore during
game loading.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add S3 sync for SQLite client text store

- Store dbPath and optional persister reference in SqliteClientTextStore
- Sync database file to cloud storage in saved() method
- Download from cloud storage on load if local file doesn't exist
- Pass persister to createWithData for new game creation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Sync SQLite to S3 immediately after migration

Prevents data loss if server restarts before saved() is called after
migrating from old text-based format to SQLite.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 16:01:52 -08:00
b55df7cf3e Upgrade dependencies: grpc-java, rules_scala, flatbuffers, and more (#5890)
Upgrades:
- grpc-java: 1.71.0 -> 1.78.0
- rules_scala: 7.1.5 -> 7.2.1
- flatbuffers: 25.9.23 -> 25.12.19
- aspect_bazel_lib: 2.22.4 -> 2.22.5
- rules_jvm_external: 6.9 -> 6.10
- Netty: 4.1.110.Final -> 4.1.127.Final (to match grpc-java)

All builds and tests pass.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 21:55:03 -08:00
a7b7b0e444 Upgrade Scala 3.7.4, rules_scala 7.1.5, protobuf 33.0, grpc 1.76.0, Bazel 7.7.1 (#5871)
* Upgrade rules_scala 7.1.5, Scala 3.7.4, protobuf 32.1

- Update rules_scala from 7.1.1 to 7.1.5
- Update Scala from 3.7.2 to 3.7.4
- Update protobuf from 29.2 to 32.1 (required by rules_scala 7.1.5+)
- Add force_version for Maven dependency conflicts (gson, errorprone, guava)
- Update -Wconf pattern in tools/BUILD.bazel for Bazel 7/8 compatibility
- Add -Wno-deprecated-copy-with-dtor to suppress protobuf 32.x warning

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add grpc 1.76.0, protobuf 33.0, and Bazel 7.7.1 compatibility fixes

- Upgrade grpc from 1.71.0 to 1.76.0.bcr.1 (required for protobuf 33.0)
- Upgrade protobuf from 32.1 to 33.0 (matches grpc 1.76.0 expectations)
- Upgrade Bazel from 7.6.1 to 7.7.1
- Add single_version_override for rules_swift 3.1.2 (grpc needs 3.x, rules_apple needs 2.x)
- Add --features=-module_maps workaround for grpc cf_event_engine macOS build issue

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 17:01:15 -08:00
e23a2ddd1b Update Sentry from 7.19.0 to 8.31.0 (#5755)
Major version upgrade with new features including:
- Feature flag evaluations on scope(s)
- MDC properties attached to structured logs as attributes
- Various bug fixes and improvements

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 08:06:01 -08:00
75c3d4cd9a Update AWS SDK from 2.28.1 to 2.41.18 (#5754)
Upgrade to the latest AWS SDK for Java v2, which includes many bug fixes,
performance improvements, and new features.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 07:48:41 -08:00
ecd089de59 Add Sentry integration for exception alerting (#5011)
- Add io.sentry:sentry dependency
- Initialize Sentry from SENTRY_DSN environment variable
- Report uncaught exceptions via ExceptionInterceptor
- Add SENTRY_DSN to docker-compose and CI workflow

When SENTRY_DSN is configured, uncaught exceptions in gRPC handlers
will be reported to Sentry for email/Slack alerts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:20:05 -08:00
ab485919ed Implement OAuth authentication with Discord and Google support (#4827)
Add server-side OAuth authentication infrastructure that supports both
Discord and Google as identity providers, while maintaining backwards
compatibility with existing Basic Auth.

## New Components

- **Auth Proto Definitions**: gRPC service with endpoints for OAuth flow
  (GetOAuthUrl, ExchangeCode, SetDisplayName, RefreshToken, GetCurrentUser)
- **User Proto**: Storage schema with admin flag for impersonation support
- **JwtService**: RS256 token creation/validation with 7-day access tokens
- **OAuthService**: OAuth code exchange with Discord and Google APIs
- **UserService**: User CRUD with file-based persistence via Persister
- **AuthServiceImpl**: gRPC service wiring OAuth flow together

## Key Features

- Dual auth: Basic Auth continues working; JWT activates when configured
- Admin impersonation: Set X-Impersonate-User header to debug as another user
- Display name validation: 3-20 chars, alphanumeric + underscore, unique
- Graceful degradation: Server starts without OAuth if keys not configured

## Environment Variables

```bash
# JWT (required for OAuth)
JWT_PRIVATE_KEY='{"kty":"RSA",...}'  # RSA key in JWK format

# Discord OAuth
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=

# Google OAuth
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
```

## Next Steps for Full Integration

1. Generate RSA key for JWT signing
2. Configure Discord/Google OAuth apps with redirect URI eagle0://auth/callback
3. Implement Unity client OAuth flow with system browser + deep links

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 17:55:39 -08:00
a5b608d18a Switch to OkHttp for LLM streaming with read timeout support (#4713)
Java HttpClient lacks read timeout support for streaming connections.
If the server stops sending data without closing the connection, the
client waits forever. This is a known limitation with no workaround.

OkHttp supports read timeouts via `readTimeout()` on the client builder.
If no data is received for the configured timeout (60s by default), the
connection will timeout with an IOException, allowing proper error
handling and retry.

Changes:
- Add OkHttp and okhttp-sse dependencies to MODULE.bazel
- Create OkHttpSseListener to handle SSE events with CompletableFuture
- Convert ExternalTextGenerationCaller to use OkHttp instead of Java HttpClient
- Add toOkHttpRequest helper to convert Java HttpRequest to OkHttp Request

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 09:37:50 -08:00
adminandGitHub 678a3a1fbe Build with Scala 3 (#4363)
* getting there

* moar

* progress

* a few more dependency fixes

* a bit more is passing

* weird staging thing

* more fixes

* fix another

* fix another

* more fixes

* BattalionC constructor

* moar

* moar

* more

* try a regex, gulp

* fix a bunch

* another exception

* some more tests

* province converter

* fixed a few more

* this is actually making progress

* another dep

* more deps

* more deps

* more

* so slooow

* a few more

* remove an asInstanceOf

* moar

* server builds maybe

* different reflection

* hmm

* get exceptions

* missing deps

* a few more fixes

* moar tests

* a few more

* Moar test fixes

* almost there

* just reflection issues now

* Fix Scala 3 compatibility issues in UnrequestedTextHandlerTest

- Fix ScalaTest import for Scala 3 compatibility: use shouldBe and the from Matchers
- Resolve build error that was preventing all tests from passing

All 200 tests now pass successfully with Scala 3.

* remove reflectiveSelectable

* remove staging dependency

* upgrade migration doc
2025-08-29 08:42:56 -07:00
adminandGitHub 1f4822775b remove cruft from WORKSPACE and reorganize MODULE.bazel (#4360) 2025-08-26 06:59:20 -07:00
adminandGitHub 18d69c5eeb Update rules_scala to 7.0.0 and move to bzlmod (#4358)
* just the basics

* try this

* update one dep and replace remaining io_bazel_rules_scala

* cleanup

* unused deps

* cleanup

* moar
2025-08-26 06:39:22 -07:00
adminandGitHub 6e2fd1520a update apple_support and grpc (#4073) 2025-04-06 06:44:05 -07:00
adminandGitHub 87fdaa1f91 Move grpc-java from being a maven dep to a BCR dep (#3878)
* try using base grpc java

* still no

* move grpc-java from being a maven dep to a BCR dep

* oops
2025-01-04 18:58:27 -08:00
adminandGitHub 66775543d5 Another grpc (#3738)
* update to grpc 1.67

* bad

* still fail

* update rules_scala

* update grpc to 1.67.1 (from 1.53.0)

* 1.69.0

* more going back

* more

* protobuf too

* guess I did need the scalapb changes too

* resolve a couple of dep differences

* update protobuf path for ignoring warnings

* suppress another warning in parallel_hashmap

* another explicit dep

* delete, don't comment out
2025-01-02 12:35:31 -08:00