diff --git a/AGENTS.md b/AGENTS.md index 31d0bebe..5d59cc13 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -85,9 +85,9 @@ The most common defect is a change that works on the path you tested and is miss ## Verifying -- **`make check-fast` before every push (mandatory).** It runs gofmt, `go vet`, golangci-lint, the test-location check and plain `go test` (no `-race`) on only the packages your changes can affect, plus the generators whose inputs changed, the `deploy/` module (vet, lint, names and `make deploy-vars`) when it, `.env.example` or the Makefile changed, and the migration order when a migration changed (see "Migrations"). Changes mean everything that differs from the merge base with origin/main: commits, staged, unstaged and untracked files, mapped to packages by `scripts/affected.sh` (`make affected` prints them), so a shared input (go.mod, tooling, lint config, migrations) checks everything. It takes seconds (a docs-only change: under a second; a full run: under 10 s warm), so it fits machines where a full `make ci` is not allowed. Database tests skip unless `TEST_DATABASE_URL` is set; `make test` runs them with `-race` against Postgres. `make hooks` installs a pre-push hook that runs it from every worktree of the clone (`make hooks-remove` undoes it; `git push --no-verify` skips it once, for emergencies only). Anything that runs git or go from a hook drops git's repository env first (`git rev-parse --local-env-vars`), as the hook and `scripts/check-fast.sh` do. +- **`make check-fast` before every push (mandatory).** It runs gofmt, `go vet`, golangci-lint, the test-location check and plain `go test` (no `-race`) on only the packages your changes can affect, plus the generators whose inputs changed, the `deploy/` module (vet, lint, names and `make deploy-vars`) when it, `.env.example` or the Makefile changed, the migration order when a migration changed (see "Migrations"), and `make vulncheck` when a `go.mod`, `go.sum`, `package.json` or `pnpm-lock.yaml` changed. Changes mean everything that differs from the merge base with origin/main: commits, staged, unstaged and untracked files, mapped to packages by `scripts/affected.sh` (`make affected` prints them), so a shared input (go.mod, tooling, lint config, migrations) checks everything. It takes seconds (a docs-only change: under a second; a full run: under 10 s warm), so it fits machines where a full `make ci` is not allowed. Database tests skip unless `TEST_DATABASE_URL` is set; `make test` runs them with `-race` against Postgres. `make hooks` installs a pre-push hook that runs it from every worktree of the clone (`make hooks-remove` undoes it; `git push --no-verify` skips it once, for emergencies only). Anything that runs git or go from a hook drops git's repository env first (`git rev-parse --local-env-vars`), as the hook and `scripts/check-fast.sh` do. - **Release smoke** (`make release-smoke`; run it whenever a build input changes: a Dockerfile, or code a Dockerfile's binary is built from): builds every binary that has a Dockerfile with that Dockerfile's own build-stage `ENV` and `RUN` line (`scripts/dockerfile-builds.sh` reads them, so never copy build flags elsewhere) and fails on a dynamically linked one, runs `server migrate` and `admin migrate` on fresh databases, and boots web and admin with `APP_ENV=production` and only the config production requires until `/healthz` answers 200. It catches what tests cannot: an image that will not start on distroless (a dependency that links dynamically even with `CGO_ENABLED=0`), and a production config that refuses to boot without an optional integration. A new required production setting goes in its env list. -- `make lint test` before every commit when you can run the full suite. `make ci` runs every check on the checkout as it is: build, generated-code diff (sqlc, mocks, templ), gofmt + golangci-lint, the test-location check, `go test -race` against a throwaway Postgres with per-boundary coverage floors, and the probes that prove the layering and test rules still bite (`make lint-layering lint-tests`). +- `make lint test` before every commit when you can run the full suite. `make ci` runs every check on the checkout as it is: build, generated-code diff (sqlc, mocks, templ), gofmt + golangci-lint, the test-location check, `go test -race` against a throwaway Postgres with per-boundary coverage floors, and the probes that prove the layering and test rules still bite (`make lint-layering lint-tests`). `make vulncheck` (also in `make ci`) fails on any known vulnerability in a dependency of any Go module or the mobile lockfile ([docs/CI.md](docs/CI.md#known-vulnerabilities)). - **A pull request is verified locally, on its exact head, then attested (mandatory; [docs/CI.md](docs/CI.md)).** Run what the change needs ("What to run" there): for Go, `make lint test` scoped with `LINT_DIRS`/`TEST_PKGS` from `scripts/affected.sh`, plus `make check-generated`, `make check-migrations`, `make deploy-check`, `make actionlint` or `make release-smoke` for what you touched, `make ci` for a change to the tooling. Commit, push, then `make ci-local RAN=""` in the clean worktree. It runs nothing and takes seconds: it refuses a dirty, unpushed or already-failed head, posts the `local-ci` commit status and fills the PR body's "Local verification" section with your statement, which is never edited by hand. Every push or rebase needs a new attestation. Stack PRs and merge right away. - **A failed head is final.** A failure is fixed forward with a new commit, never attested until green: a head attested as failed (`make ci-local FAILED=""`) is refused for good by `make ci-local`, the `Local verification` check and `make pr-merge`. A failure in what the branch changed is fixed in the PR; any other is fixed forward at once in its own PR off `main` with a regression test that fails before the fix, and the branch rebases on it. - GitHub runs no verification: on a PR only `Secret scan` and `Local verification` (which shows "Expected" until `make ci-local` claims the head), started by `make ci-local`'s body edit, and on `main` only `Deploy staging`, which ships a commit only when `make ci-local` attested it. Avoid adding workflow jobs: a new check is a make target the agent runs, listed in docs/CI.md "What to run". The PR jobs run only `main`'s code (`pull_request_target`) and read the head as data; never check out or run the head there ([docs/CI.md](docs/CI.md#trusted-code-only)). diff --git a/Makefile b/Makefile index 0ec0a061..e09e3bcb 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,7 @@ ci: ## Every check, on this checkout as it is (make ci-local then attests a PR h $(MAKE) lint-layering $(MAKE) lint-tests PROFILE=.cache/coverage.out # the probes reuse make test's profile $(MAKE) deploy-check + $(MAKE) vulncheck # make ci-local's statements reach it unexpanded and as single arguments: # taken raw ($(value)), exported, and quoted by the shell, so a $, a quote @@ -138,6 +139,10 @@ pr-merge: ## Squash-merge PRs attested on their exact head: make pr-merge PR="12 secret-scan: ## gitleaks (pinned) on the files changed since the merge base, or every tracked file with ARGS=--all $(GO) run ./scripts/cilocal secret-scan $(if $(ARGS),$(ARGS),--base $$(git merge-base HEAD $$(. scripts/branches.sh && landing_ref))) +.PHONY: vulncheck +vulncheck: ## Known vulnerabilities: govulncheck (pinned) on every Go module + pnpm audit on the mobile lockfile; exceptions in scripts/vulncheck/allowlist.txt (ARGS=-go-only) + $(GO) run ./scripts/vulncheck $(ARGS) + .PHONY: check-fast check-fast: ## Before every push: gofmt, vet, golangci-lint, plain tests for only what your changes vs origin/main affect (seconds) ./scripts/check-fast.sh diff --git a/apps/mobile-app/contract/app.contract.test.ts b/apps/mobile-app/contract/app.contract.test.ts index ced0c253..c8be1164 100644 --- a/apps/mobile-app/contract/app.contract.test.ts +++ b/apps/mobile-app/contract/app.contract.test.ts @@ -37,7 +37,7 @@ describe('mobile app against the Go server', () => { const { data, error } = await app.signUp.email({ name: 'Ada', email, password }) expect(error).toBeNull() expect(data?.user.email).toBe(email) - expect(app.authClient.getCookie()).toMatch(/^better-auth\.session_token=/) + expect(await app.authClient.getCookie()).toMatch(/^better-auth\.session_token=/) }) it('gets the session with the stored cookie', async () => { @@ -50,7 +50,7 @@ describe('mobile app against the Go server', () => { it('signs out, clearing the server session and the keychain', async () => { const { error } = await app.signOut() expect(error).toBeNull() - expect(app.authClient.getCookie()).toBe('') + expect(await app.authClient.getCookie()).toBe('') expect((await app.authClient.getSession()).data).toBeNull() }) @@ -132,7 +132,7 @@ describe('delete account', () => { const deleted = await app.deleteAccount() expect(deleted).toEqual({ data: { success: true }, error: null }) - expect(app.authClient.getCookie()).toBe('') + expect(await app.authClient.getCookie()).toBe('') expect((await app.authClient.getSession()).data).toBeNull() const again = await app.signIn.email({ email, password }) diff --git a/apps/mobile-app/package.json b/apps/mobile-app/package.json index 712bd8cf..a6cdd08c 100644 --- a/apps/mobile-app/package.json +++ b/apps/mobile-app/package.json @@ -13,8 +13,8 @@ "test:contract": "vitest run --config vitest.contract.config.mts" }, "dependencies": { - "@better-auth/expo": "1.6.29", - "better-auth": "1.6.29", + "@better-auth/expo": "1.7.14", + "better-auth": "1.7.14", "expo": "~57.0.13", "expo-constants": "~57.0.11", "expo-linking": "~57.0.6", @@ -41,5 +41,12 @@ "packageManager": "pnpm@10.27.0", "engines": { "node": ">=22" + }, + "pnpm": { + "overrides": { + "node-forge@^1": "^1.4.1", + "glob@^13": "^14.0.2", + "minimatch@^10": "^11.0.1" + } } } diff --git a/apps/mobile-app/pnpm-lock.yaml b/apps/mobile-app/pnpm-lock.yaml index b330e524..c6f48de7 100644 --- a/apps/mobile-app/pnpm-lock.yaml +++ b/apps/mobile-app/pnpm-lock.yaml @@ -4,16 +4,21 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + node-forge@^1: ^1.4.1 + glob@^13: ^14.0.2 + minimatch@^10: ^11.0.1 + importers: .: dependencies: '@better-auth/expo': - specifier: 1.6.29 - version: 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(better-auth@1.6.29(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))))(expo-constants@57.0.22)(expo-linking@57.0.13)(expo-network@57.0.3(expo@57.0.31)(react@19.2.3))(expo-web-browser@57.0.3(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3))) + specifier: 1.7.14 + version: 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(better-auth@1.7.14(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))))(expo-constants@57.0.22)(expo-linking@57.0.13)(expo-network@57.0.3(expo@57.0.31)(react@19.2.3))(expo-secure-store@57.0.4(expo@57.0.31))(expo-web-browser@57.0.3(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3))) better-auth: - specifier: 1.6.29 - version: 1.6.29(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))) + specifier: 1.7.14 + version: 1.7.14(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))) expo: specifier: ~57.0.13 version: 57.0.31(@babel/core@7.29.7)(@expo/dom-webview@57.0.1)(@expo/metro-runtime@57.0.17)(expo-router@57.0.29)(react-dom@19.3.1(react@19.2.3))(react-native-worklets@0.13.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3))(react@19.2.3))(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3))(react@19.2.3)(typescript@6.0.3) @@ -463,41 +468,39 @@ packages: resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} engines: {node: '>=6.9.0'} - '@better-auth/core@1.6.29': - resolution: {integrity: sha512-hkUxePo548G0Y247had36TcfsH7E+cofcTc2UivMAbjkdLPKn1ZUk6Pjkc/kvk9xTbWYCUDX6JA9emJc0Gnufg==} + '@better-auth/core@1.7.14': + resolution: {integrity: sha512-ByhdrGVwp/el+hoTYKSVOHIH23/lQj9TQ1txdGcWOg22tnfr3hJ6ukzySooeYj/R36XsQgBhkJqIp8mKsNeErA==} peerDependencies: - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@cloudflare/workers-types': '>=4' + '@better-auth/utils': ^0.4.2 || ^0.5.0 + '@better-fetch/fetch': 1.3.3 '@opentelemetry/api': ^1.9.0 - better-call: 1.4.0 + better-call: 1.4.4 jose: ^6.1.0 kysely: ^0.28.5 || ^0.29.0 nanostores: ^1.0.1 peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true '@opentelemetry/api': optional: true - '@better-auth/drizzle-adapter@1.6.29': - resolution: {integrity: sha512-IdvrqHnnRNKqz6KOSII3rZNiTzv1pmVmx5xGRGZdVm8W3OYi98an5kIovao/b3GZh2nHGTzdeTfMSSZNCyGXBg==} + '@better-auth/drizzle-adapter@1.7.14': + resolution: {integrity: sha512-5RC8Ec5Ur15FWsS4As9/VrlRbB3+9EfShxIpA5A1FcD6IgPxFvzQNkAm2+FYx9LUSqx47NPf9hBTG2GUCMP9Ig==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 - drizzle-orm: ^0.45.2 + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 peerDependenciesMeta: drizzle-orm: optional: true - '@better-auth/expo@1.6.29': - resolution: {integrity: sha512-wHvtnOqg4K0DdBXPSiBX9K2eViCqJCrSNC1g5izt32TM2GmI+QuWu3ZWh2dor6PCj1NntNlZq5cwyaQ8v9OYow==} + '@better-auth/expo@1.7.14': + resolution: {integrity: sha512-ajlhTEAeGYN48fk8f2wxO4rtSUuK7QkaCi3rcFLw3x0a3URP02hNb0f+qT2k2ip09YWVyUakcAa2vFDkcoW0CQ==} peerDependencies: - '@better-auth/core': ^1.6.29 - better-auth: ^1.6.29 + '@better-auth/core': ^1.7.14 + better-auth: ^1.7.14 expo-constants: '>=17.0.0' expo-linking: '>=7.0.0' expo-network: '>=8.0.7' + expo-secure-store: '>=12.5.0' expo-web-browser: '>=14.0.0' peerDependenciesMeta: expo-constants: @@ -506,40 +509,42 @@ packages: optional: true expo-network: optional: true + expo-secure-store: + optional: true expo-web-browser: optional: true - '@better-auth/kysely-adapter@1.6.29': - resolution: {integrity: sha512-n87hHC/miSaUaKdnQygz+2wlj2KI2rsGazDPaKF0wbH8i87um9HPDWyz3VdbkqPN79e0qbVfMR9pY7GZQm/X8w==} + '@better-auth/kysely-adapter@1.7.14': + resolution: {integrity: sha512-4wkqj8a8JVpWDYLlgzfbk7eOaWCFkL6HHQd6CLamFKaC8vNsXew1x4v5dE5O6dGr8j4g5qMISS+BAvOuIvBevg==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 kysely: ^0.28.17 || ^0.29.0 peerDependenciesMeta: kysely: optional: true - '@better-auth/memory-adapter@1.6.29': - resolution: {integrity: sha512-F1yLUbNTc/pikEaTlgWOgYlT2RDSi2dV1ysWxacRmQhYtLGYAun1JgU7TDdcEjts+wrLcm+JzRzt5F+ZgNfz9A==} + '@better-auth/memory-adapter@1.7.14': + resolution: {integrity: sha512-Ojv9BcmFyHuTHha9ZM/NUW1ut9J84wLngta+07Es0Ejn8kekqP5aHBpZd5Z8AvADs5iJUOWvQGFmGlPWAKJgBg==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-auth/mongo-adapter@1.6.29': - resolution: {integrity: sha512-gyOpfBBCpe2wDnv9CY2T0jirC4oTqk3i5svWYBGkGTAFrKsfJA516NMOs001PiHsEDf/JttZapQv5dkoPD0x2w==} + '@better-auth/mongo-adapter@1.7.14': + resolution: {integrity: sha512-6IA0RSPZFMdRwwnLZ9oWnDIiD0y0o0azTHUfa01BNU2AFJgMDkeiASUV3bKcJBskzQoyQrff74eFYTsTSeeVUQ==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 mongodb: ^6.0.0 || ^7.0.0 peerDependenciesMeta: mongodb: optional: true - '@better-auth/prisma-adapter@1.6.29': - resolution: {integrity: sha512-W5lr8AYXwa68qhS7PEpEsisF7ASs9rWJyczoZr8+vYypPBmGMq1Yf8bYJ9ig95zj1wdaQGim2ZSYs8hxZeaKVQ==} + '@better-auth/prisma-adapter@1.7.14': + resolution: {integrity: sha512-mF6t5xqeZNWzUe0ErmrSdzQmtslJscmu9X8Mp5QmROlpnnAzvSc70RILu8lHms8CePt7N34+KRH1QvYjGFrVGQ==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 peerDependenciesMeta: @@ -548,21 +553,21 @@ packages: prisma: optional: true - '@better-auth/telemetry@1.6.29': - resolution: {integrity: sha512-zW1GRIBR/sn83siG+xK4ll/gzfTRxVh6rcpzzjYkR2W9/DkDMwEotl/Mz8OW0Gr2KpuhEkfwiVGH9zp/cyK4Pg==} + '@better-auth/telemetry@1.7.14': + resolution: {integrity: sha512-PtKFzsH7gje/WJuUPDjckOoNFazsq8NMt3AdiXIPzHl7tZULcNGTKAX8K7+yn0rG6cO/4mtMgpOjhtilElOnmg==} peerDependencies: - '@better-auth/core': ^1.6.29 - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - - '@better-auth/utils@0.4.2': - resolution: {integrity: sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A==} + '@better-auth/core': ^1.7.14 + '@better-auth/utils': ^0.4.2 || ^0.5.0 + '@better-fetch/fetch': 1.3.3 '@better-auth/utils@0.5.0': resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==} - '@better-fetch/fetch@1.3.1': - resolution: {integrity: sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==} + '@better-auth/utils@0.5.1': + resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==} + + '@better-fetch/fetch@1.3.3': + resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==} '@egjs/hammerjs@2.0.17': resolution: {integrity: sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==} @@ -830,6 +835,9 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} + '@isaacs/nonrecursive-glob-match@1.0.3': + resolution: {integrity: sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==} + '@isaacs/ttlcache@1.4.1': resolution: {integrity: sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==} engines: {node: '>=12'} @@ -880,10 +888,6 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@opentelemetry/semantic-conventions@1.43.0': - resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} - engines: {node: '>=14'} - '@oxc-project/types@0.155.0': resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==} @@ -1736,17 +1740,16 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - better-auth@1.6.29: - resolution: {integrity: sha512-7i2kOry+Jb1mRUR14kCDVS23GCKUGWxayZRXULbNz/6nFLPT6XSuGJVrwo/d+Qfq/iubA0/4Acw2/eg/tPCCnA==} + better-auth@1.7.14: + resolution: {integrity: sha512-QxDCI0pOCCHDYmruisKhKyrvOJ6Icv9xg0RA6ZUysfKFXENYwhNNpwUlkE/NmViH2nDMgkKcymmLr55pnpR9vw==} peerDependencies: '@lynx-js/react': '*' '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 - '@sveltejs/kit': ^2.0.0 + '@sveltejs/kit': ^2.0.0 || ^3.0.0 '@tanstack/react-start': ^1.0.0 '@tanstack/solid-start': ^1.0.0 - better-sqlite3: ^12.0.0 - drizzle-kit: '>=0.31.4' - drizzle-orm: ^0.45.2 + drizzle-kit: '>=0.31.4 || >=1.0.0-beta.1' + drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 mongodb: ^6.0.0 || ^7.0.0 mysql2: ^3.0.0 next: ^14.0.0 || ^15.0.0 || ^16.0.0 @@ -1756,7 +1759,7 @@ packages: react-dom: ^18.0.0 || ^19.0.0 solid-js: ^1.0.0 svelte: ^4.0.0 || ^5.0.0 - vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 + vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 vue: ^3.0.0 peerDependenciesMeta: '@lynx-js/react': @@ -1769,8 +1772,6 @@ packages: optional: true '@tanstack/solid-start': optional: true - better-sqlite3: - optional: true drizzle-kit: optional: true drizzle-orm: @@ -1798,8 +1799,8 @@ packages: vue: optional: true - better-call@1.4.0: - resolution: {integrity: sha512-bBKOT4vv1kZLDgxVePdilk/Jwkn+dtRRsmi3DzHcDP+WnswyVl6dR59l2HEeP/0cB+bDoopASAesWDPIdd/zZA==} + better-call@1.4.4: + resolution: {integrity: sha512-Gq4XdGFy4dmUxFEAX2nj0ycFcFbD9ZWh8YROouZoyXeF1M11TpYbplk0pDByTFF8Wz+MYa6W9052c9m7dD+mfw==} peerDependencies: zod: ^4.0.0 peerDependenciesMeta: @@ -2577,8 +2578,8 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@13.0.6: - resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + glob@14.0.3: + resolution: {integrity: sha512-A1vjIwC3qpdCso45Iw127gnp7sPhqgY8lUQhDrArIs+GbmfaaVPFuoyy7WyLT9EPZCRZ7j7aLdwUhQmHWesEow==} engines: {node: 18 || 20 || >=22} globals@14.0.0: @@ -3240,8 +3241,8 @@ packages: resolution: {integrity: sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==} engines: {node: '>=4'} - minimatch@10.2.6: - resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + minimatch@11.0.3: + resolution: {integrity: sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==} engines: {node: 18 || 20 || >=22} minimatch@3.1.5: @@ -3301,8 +3302,8 @@ packages: resolution: {integrity: sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==} engines: {node: '>= 0.4'} - node-forge@1.4.0: - resolution: {integrity: sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==} + node-forge@1.4.2: + resolution: {integrity: sha512-rRtAR5XLJ8gCKd9du4qrKAsgCG1ObGP4gLeNJMa4vYSeq4bmBMOJk5IHkrviBV0q7uoAJlVd8HEQYQSVUb4FGQ==} engines: {node: '>= 6.13.0'} node-int64@0.4.0: @@ -3430,8 +3431,8 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - path-scurry@2.0.2: - resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + path-scurry@3.0.0: + resolution: {integrity: sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==} engines: {node: 18 || 20 || >=22} pathe@2.0.3: @@ -4808,73 +4809,73 @@ snapshots: '@babel/helper-string-parser': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 - '@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5)': + '@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5)': dependencies: - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@opentelemetry/semantic-conventions': 1.43.0 + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@standard-schema/spec': 1.1.0 - better-call: 1.4.0(zod@4.6.7) + better-call: 1.4.4(zod@4.6.7) jose: 6.2.13 kysely: 0.29.7 nanostores: 1.5.5 zod: 4.6.7 - '@better-auth/drizzle-adapter@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)': + '@better-auth/drizzle-adapter@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 - '@better-auth/expo@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(better-auth@1.6.29(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))))(expo-constants@57.0.22)(expo-linking@57.0.13)(expo-network@57.0.3(expo@57.0.31)(react@19.2.3))(expo-web-browser@57.0.3(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3)))': + '@better-auth/expo@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(better-auth@1.7.14(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))))(expo-constants@57.0.22)(expo-linking@57.0.13)(expo-network@57.0.3(expo@57.0.31)(react@19.2.3))(expo-secure-store@57.0.4(expo@57.0.31))(expo-web-browser@57.0.3(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3)))': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-fetch/fetch': 1.3.1 - better-auth: 1.6.29(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))) - better-call: 1.4.0(zod@4.6.7) + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.14(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))) + better-call: 1.4.4(zod@4.6.7) zod: 4.6.7 optionalDependencies: expo-constants: 57.0.22(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3)) expo-linking: 57.0.13(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3))(react@19.2.3) expo-network: 57.0.3(expo@57.0.31)(react@19.2.3) + expo-secure-store: 57.0.4(expo@57.0.31) expo-web-browser: 57.0.3(expo@57.0.31)(react-native@0.86.3(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7))(@types/react@19.2.18)(react@19.2.3)) - '@better-auth/kysely-adapter@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)(kysely@0.29.7)': + '@better-auth/kysely-adapter@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(kysely@0.29.7)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 optionalDependencies: kysely: 0.29.7 - '@better-auth/memory-adapter@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)': + '@better-auth/memory-adapter@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 - '@better-auth/mongo-adapter@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)': + '@better-auth/mongo-adapter@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 - '@better-auth/prisma-adapter@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)': + '@better-auth/prisma-adapter@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 - '@better-auth/telemetry@1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)': + '@better-auth/telemetry@1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 - '@better-auth/utils@0.4.2': + '@better-auth/utils@0.5.0': dependencies: '@noble/hashes': 2.4.0 - '@better-auth/utils@0.5.0': + '@better-auth/utils@0.5.1': dependencies: '@noble/hashes': 2.4.0 - '@better-fetch/fetch@1.3.1': {} + '@better-fetch/fetch@1.3.3': {} '@egjs/hammerjs@2.0.17': dependencies: @@ -4984,10 +4985,10 @@ snapshots: expo-server: 57.0.3 fetch-nodeshim: 0.4.10 getenv: 2.0.0 - glob: 13.0.6 + glob: 14.0.3 lan-network: 0.2.1 multitars: 1.0.2 - node-forge: 1.4.0 + node-forge: 1.4.2 npm-package-arg: 11.0.3 ora: 3.4.0 picomatch: 4.0.7 @@ -5024,7 +5025,7 @@ snapshots: '@expo/code-signing-certificates@0.0.6': dependencies: - node-forge: 1.4.0 + node-forge: 1.4.2 '@expo/config-plugins@57.0.11(typescript@6.0.3)': dependencies: @@ -5036,7 +5037,7 @@ snapshots: chalk: 4.1.2 debug: 4.4.3 getenv: 2.0.0 - glob: 13.0.6 + glob: 14.0.3 semver: 7.8.5 slugify: 1.6.9 xcode: 4.0.0 @@ -5055,7 +5056,7 @@ snapshots: '@expo/require-utils': 57.0.6(typescript@6.0.3) deepmerge: 4.3.1 getenv: 2.0.0 - glob: 13.0.6 + glob: 14.0.3 resolve-workspace-root: 2.0.1 semver: 7.8.5 slugify: 1.6.9 @@ -5109,9 +5110,9 @@ snapshots: chalk: 4.1.2 debug: 4.4.3 getenv: 2.0.0 - glob: 13.0.6 + glob: 14.0.3 ignore: 5.3.2 - minimatch: 10.2.6 + minimatch: 11.0.3 resolve-from: 5.0.0 semver: 7.8.5 transitivePeerDependencies: @@ -5182,7 +5183,7 @@ snapshots: chalk: 4.1.2 debug: 4.4.3 getenv: 2.0.0 - glob: 13.0.6 + glob: 14.0.3 hermes-parser: 0.36.1 jsc-safe-url: 0.2.4 lightningcss: 1.33.0 @@ -5352,6 +5353,8 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} + '@isaacs/nonrecursive-glob-match@1.0.3': {} + '@isaacs/ttlcache@1.4.1': {} '@jest/schemas@29.6.3': @@ -5404,8 +5407,6 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@opentelemetry/semantic-conventions@1.43.0': {} - '@oxc-project/types@0.155.0': {} '@radix-ui/primitive@1.2.0': {} @@ -5929,7 +5930,7 @@ snapshots: '@typescript-eslint/types': 8.72.0 '@typescript-eslint/visitor-keys': 8.72.0 debug: 4.4.3 - minimatch: 10.2.6 + minimatch: 11.0.3 semver: 7.8.5 tinyglobby: 0.2.17 ts-api-utils: 2.5.0(typescript@6.0.3) @@ -6310,20 +6311,20 @@ snapshots: baseline-browser-mapping@2.11.30: {} - better-auth@1.6.29(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))): - dependencies: - '@better-auth/core': 1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) - '@better-auth/drizzle-adapter': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2) - '@better-auth/kysely-adapter': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)(kysely@0.29.7) - '@better-auth/memory-adapter': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2) - '@better-auth/mongo-adapter': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2) - '@better-auth/prisma-adapter': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2) - '@better-auth/telemetry': 1.6.29(@better-auth/core@1.6.29(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-call@1.4.0(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1) - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 + better-auth@1.7.14(react-dom@19.3.1(react@19.2.3))(react@19.2.3)(vitest@4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1))): + dependencies: + '@better-auth/core': 1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5) + '@better-auth/drizzle-adapter': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/kysely-adapter': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(kysely@0.29.7) + '@better-auth/memory-adapter': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/mongo-adapter': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/prisma-adapter': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1) + '@better-auth/telemetry': 1.7.14(@better-auth/core@1.7.14(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.4(zod@4.6.7))(jose@6.2.13)(kysely@0.29.7)(nanostores@1.5.5))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@noble/ciphers': 2.4.0 '@noble/hashes': 2.4.0 - better-call: 1.4.0(zod@4.6.7) + better-call: 1.4.4(zod@4.6.7) defu: 6.1.7 jose: 6.2.13 kysely: 0.29.7 @@ -6334,13 +6335,12 @@ snapshots: react-dom: 19.3.1(react@19.2.3) vitest: 4.1.12(@types/node@26.6.5)(vite@8.3.5(@types/node@26.6.5)(terser@5.51.2)(yaml@2.9.1)) transitivePeerDependencies: - - '@cloudflare/workers-types' - '@opentelemetry/api' - better-call@1.4.0(zod@4.6.7): + better-call@1.4.4(zod@4.6.7): dependencies: '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.1 + '@better-fetch/fetch': 1.3.3 rou3: 0.9.2 set-cookie-parser: 3.2.1 optionalDependencies: @@ -6750,9 +6750,9 @@ snapshots: '@typescript-eslint/eslint-plugin': 8.72.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5)(typescript@6.0.3) '@typescript-eslint/parser': 8.72.0(eslint@9.39.5)(typescript@6.0.3) eslint: 9.39.5 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5) eslint-plugin-expo: 1.2.1(eslint@9.39.5)(typescript@6.0.3) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5) eslint-plugin-react: 7.37.5(eslint@9.39.5) eslint-plugin-react-hooks: 7.1.1(eslint@9.39.5) globals: 16.5.0 @@ -6770,7 +6770,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3 @@ -6781,18 +6781,18 @@ snapshots: tinyglobby: 0.2.17 unrs-resolver: 1.12.2 optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5) transitivePeerDependencies: - supports-color - eslint-module-utils@2.14.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5): + eslint-module-utils@2.14.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 8.72.0(eslint@9.39.5)(typescript@6.0.3) eslint: 9.39.5 eslint-import-resolver-node: 0.3.10 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5) transitivePeerDependencies: - supports-color @@ -6805,7 +6805,7 @@ snapshots: - supports-color - typescript - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.2.0 @@ -6816,7 +6816,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.39.5 eslint-import-resolver-node: 0.3.10 - eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) + eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.72.0(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5) hasown: 2.0.4 is-core-module: 2.17.0 is-glob: 4.0.3 @@ -7287,11 +7287,11 @@ snapshots: dependencies: is-glob: 4.0.3 - glob@13.0.6: + glob@14.0.3: dependencies: - minimatch: 10.2.6 + minimatch: 11.0.3 minipass: 7.1.3 - path-scurry: 2.0.2 + path-scurry: 3.0.0 globals@14.0.0: {} @@ -8253,8 +8253,9 @@ snapshots: mimic-fn@1.2.0: {} - minimatch@10.2.6: + minimatch@11.0.3: dependencies: + '@isaacs/nonrecursive-glob-match': 1.0.3 brace-expansion: 5.0.12 minimatch@3.1.5: @@ -8296,7 +8297,7 @@ snapshots: object.entries: 1.1.9 semver: 6.3.1 - node-forge@1.4.0: {} + node-forge@1.4.2: {} node-int64@0.4.0: {} @@ -8435,7 +8436,7 @@ snapshots: path-parse@1.0.7: {} - path-scurry@2.0.2: + path-scurry@3.0.0: dependencies: lru-cache: 11.5.3 minipass: 7.1.3 diff --git a/apps/mobile-app/src/lib/api/client.ts b/apps/mobile-app/src/lib/api/client.ts index 88b52a0b..ed6ee4e0 100644 --- a/apps/mobile-app/src/lib/api/client.ts +++ b/apps/mobile-app/src/lib/api/client.ts @@ -12,7 +12,7 @@ import { env } from '@/lib/config/env' * errors, like on the web. A string body is sent as JSON. */ export async function apiFetch(path: string, init?: RequestInit): Promise> { - const cookie = authClient.getCookie() + const cookie = await authClient.getCookie() let response: Response try { diff --git a/docs/CI.md b/docs/CI.md index 455a6455..6e3598d2 100644 --- a/docs/CI.md +++ b/docs/CI.md @@ -30,12 +30,19 @@ Run what your change needs on the head you attest, and nothing more. `scripts/af | A migration | `make check-migrations` | | `deploy/` or `deploy/platform.yaml` | `make deploy-check` (vet, lint and names in the `deploy/` module, then `make deploy-vars`) | | `.github/workflows/` or `.github/actions/` | `make actionlint` | +| A `go.mod`/`go.sum` (any module), `package.json` or `pnpm-lock.yaml` | `make vulncheck` ([Known vulnerabilities](#known-vulnerabilities)) | | A Dockerfile, or code a Dockerfile builds | `make release-smoke` | | `apps/mobile-app`, or the route table its test reads (`apps/web/internal/config/routes.go`) | its pnpm checks in `apps/mobile-app`: `pnpm install --frozen-lockfile`, `tsc`, `expo lint`, `expo install --check`, `pnpm test` | | Tooling, the Makefile, lint config, or everything | `make ci` (every check on the checkout, the probes `make lint-layering lint-tests` included) | The probes (`make lint-layering`, `make lint-tests`) prove the layering and test rules still bite; run them when you change those rules or the scripts behind them. Say exactly what ran in the attestation: a reviewer reads the scope from it. +### Known vulnerabilities + +`make vulncheck` (`scripts/vulncheck`) runs govulncheck, pinned in `tools/go.mod`, on every Go module (`.`, `deploy`, and the tool-only `tools` and `tools/actionlint` through their `tool` pattern), and `pnpm audit` on `apps/mobile-app/pnpm-lock.yaml`. It fails on every finding, called or not: govulncheck reports at symbol (our code calls it), package (imported) and module (required) level, and a fix that exists gets taken (`go get @` then `go mod tidy` in that module; a pnpm bump or `pnpm.overrides`). `make ci` always runs it; `make check-fast` runs it when a manifest or lockfile changed, and only warns when a scanner cannot run (exit 2: offline, or no pnpm). Lockpick's comment on each PR reports advisories published since against unchanged dependencies; fix those in their own PR off `main`. + +`scripts/vulncheck/allowlist.txt` is the only way past a finding: an advisory with no fix, or none its consumer can take, that we cannot reach, or reach only in dev tooling (expo CLI, eslint) or on one client device; the reason says which. Each line is ` ` (the GO- id for Go, the GHSA id for npm). The check fails on an entry past its review date, on an entry that no longer matches anything, and on a listed Go advisory that our code calls. Before adding a Go entry, prove the package is not imported (`go list -deps -test ./...` in each module). + ## Local verification `make ci-local` (`scripts/cilocal run`) runs no checks: it tells the PR you ran what CI would have checked, and says what that was. Run what the change needs ([What to run](#what-to-run)), commit, push, then attest: diff --git a/go.mod b/go.mod index f7b6a020..3608349a 100644 --- a/go.mod +++ b/go.mod @@ -40,7 +40,7 @@ require ( github.com/valyala/bytebufferpool v1.0.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/mod v0.41.0 // indirect - golang.org/x/net v0.61.0 // indirect + golang.org/x/net v0.62.0 // indirect golang.org/x/sync v0.24.0 // indirect golang.org/x/sys v0.49.0 // indirect ) diff --git a/go.sum b/go.sum index 68acc238..0e01895f 100644 --- a/go.sum +++ b/go.sum @@ -102,8 +102,8 @@ golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= -golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= -golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= diff --git a/scripts/check-fast.sh b/scripts/check-fast.sh index e2e89c85..43ad8cec 100755 --- a/scripts/check-fast.sh +++ b/scripts/check-fast.sh @@ -2,8 +2,8 @@ # The pre-push check (`make check-fast`, and the hook `make hooks` installs): # gofmt, go vet, golangci-lint and plain go test for only the packages this # checkout's changes can affect, the generators whose inputs changed, and the -# deploy/ module when it changed, and the migration order when a migration -# changed. "Changes" are everything that differs from +# deploy/ module when it changed, the migration order when a migration +# changed, and make vulncheck when a dependency manifest or lockfile changed. "Changes" are everything that differs from # the merge base with origin/main (scripts/branches.sh): commits, staged, unstaged and untracked # files. scripts/affected.sh maps them to packages (as make affected prints them), so a # change to a shared input (go.mod, tooling, lint config, migrations, @@ -119,6 +119,21 @@ if [ "$sqlc" = true ] || [ "$templ" = true ] || [ -n "$generate" ]; then fi fi +# Known vulnerabilities, when a dependency manifest, lockfile or the allowlist +# changed (make ci runs it on every change). Exit 2 means a scanner could not +# run (offline, no pnpm): a warning here, not a failed push. +if printf '%s\n' "${changed[@]}" | grep -qE '(^|/)(go\.(mod|sum)|package\.json|pnpm-lock\.yaml)$|^scripts/vulncheck/'; then + step "vulncheck" + status=0 + out=$("$GO" run ./scripts/vulncheck 2>&1) || status=$? + done_ + case $status in + 0) ;; + 2) echo "$out" | sed 's/^/ /'; echo ' vulncheck could not run every scanner (warning only): run make vulncheck online before attesting' ;; + *) echo "$out" | sed 's/^/ /'; fail vulncheck ;; + esac +fi + if [ "${#pkgs[@]}" -gt 0 ]; then step "go vet" if ! out=$("$GO" vet "${pkgs[@]}" 2>&1); then done_; echo "$out" | sed 's/^/ /'; fail vet; else done_; fi diff --git a/scripts/vulncheck/allowlist.txt b/scripts/vulncheck/allowlist.txt new file mode 100644 index 00000000..4fa1e326 --- /dev/null +++ b/scripts/vulncheck/allowlist.txt @@ -0,0 +1,41 @@ +# Known vulnerabilities `make vulncheck` lets through (scripts/vulncheck). +# +# Only for an advisory with no fix, or none its consumer can take, that this +# repository cannot reach, or reaches only in dev tooling or on one client +# device (the reason says which). Anything with a usable fix gets bumped. +# One entry per line: +# +# +# +# is the GO- id for Go (govulncheck), the GHSA id for npm (pnpm audit). +# is the Go module or npm package the advisory names. +# Past its review date an entry fails the check: re-check the advisory and the +# reachability, then move the date (at most 3 months) or delete the entry. +# An entry that matches nothing fails too: delete it. A Go entry whose symbol +# our code calls fails even when listed. + +# Go + +# The advisory is the whole golang.org/x/crypto/openpgp package (deprecated, +# unmaintained), so it matches every x/crypto version. No module imports it +# (go list -deps -test ./... in each module; govulncheck: module level only). +# We use argon2, scrypt, chacha20poly1305, hkdf and curve25519 from x/crypto. +GO-2026-5932 golang.org/x/crypto 2027-01-31 openpgp is never imported; x/crypto is needed for argon2/scrypt and has no openpgp-free release + +# npm (apps/mobile-app/pnpm-lock.yaml) + +# expo-router > query-string@7 (CommonJS) calls require('decode-uri-component') +# as a function; the fixed 0.5.x is ESM-only, so an override breaks routing. +# The newest expo-router ~57 still uses query-string 7. Input is a URL this +# device opens: the worst case is one app instance hanging, not the server. +GHSA-qr28-fpjm-wq7f decode-uri-component 2027-01-31 fix is ESM-only, query-string 7 under expo-router 57 requires CJS; client-side DoS only +GHSA-vcc3-ghjq-m6fr decode-uri-component 2027-01-31 same as GHSA-qr28-fpjm-wq7f +# expo > @expo/cli requires zod ^3.25.76; the fix is zod 4 (a major API break). +# Runs only on the developer's machine (expo CLI), never in the app bundle; +# the app's own zod is 4.6.7. +GHSA-mrhx-c7xc-m3w5 zod 2027-01-31 dev-time only (@expo/cli needs zod 3); fix needs zod 4 +# eslint 9 and its plugins require('minimatch') as a function; minimatch 11's +# CJS export is an object. Lint-time only, on our own source globs. +GHSA-g3hv-75wg-m249 minimatch 2027-01-31 dev-only (eslint 9 needs minimatch 3); fix is minimatch 11 +# expo > @expo/config merges our own app config at build time; no release fixes it. +GHSA-gcqx-w48m-w2h4 deepmerge 2027-01-31 no fix published; build-time only, merges our own config diff --git a/scripts/vulncheck/main.go b/scripts/vulncheck/main.go new file mode 100644 index 00000000..2d7c39c3 --- /dev/null +++ b/scripts/vulncheck/main.go @@ -0,0 +1,388 @@ +// Command vulncheck fails on a known vulnerability in any dependency of the +// repository (`make vulncheck`; `make check-fast` and `make ci` run it): +// +// - every Go module (go.mod, deploy/go.mod, tools/go.mod, +// tools/actionlint/go.mod) through govulncheck, pinned in tools/go.mod, +// which reports at symbol (called), package (imported) and module +// (required) level; +// - every pnpm lockfile (apps/mobile-app) through `pnpm audit`. +// +// Any finding fails, reachable or not: a published fix means bump to it. +// The only way past a finding is an entry in scripts/vulncheck/allowlist.txt, +// for an advisory with no fix (or none its consumer can take) that this +// repository cannot reach (or reaches only in dev tooling or on one client +// device); the reason says why. Go advisories are listed by +// GO- id, npm ones by GHSA id. Each entry carries a reason and a review date; an +// entry past its review date fails, an entry that no longer matches anything +// fails (delete it), and a Go advisory our code calls fails even when listed. +// +// Exit codes: 0 clean, 1 a finding or allowlist problem, 2 a scanner could +// not run (no network for the vulnerability database, pnpm missing). make +// check-fast warns on 2 instead of blocking the push. +// +// go run ./scripts/vulncheck # every module and lockfile +// go run ./scripts/vulncheck -go-only # skip pnpm audit +package main + +import ( + "bufio" + "bytes" + "context" + "encoding/json" + "errors" + "flag" + "fmt" + "io" + "os" + "os/exec" + "path/filepath" + "sort" + "strings" + "time" +) + +const ( + exitFindings = 1 + exitScanFailed = 2 + allowlistPath = "scripts/vulncheck/allowlist.txt" + dateLayout = time.DateOnly + // scanTimeout bounds one scanner run (a cold vulnerability database + // download plus a build of the module's package graph). + scanTimeout = 10 * time.Minute + // allowlistFields is an entry's fixed columns before the free-text reason. + allowlistFields = 3 +) + +// goModule is a Go module directory and the package pattern that covers it: +// the tool-only modules have no packages of their own, only `tool`. +type goModule struct{ dir, pattern string } + +var goModules = []goModule{ + {".", "./..."}, + {"deploy", "./..."}, + {"tools", "tool"}, + {"tools/actionlint", "tool"}, +} + +var pnpmDirs = []string{"apps/mobile-app"} + +// finding is one advisory in one place (a Go module directory or a lockfile). +type finding struct { + where string // module directory or lockfile directory + id string // GO-… or GHSA-… + aliases []string + pkg string // the vulnerable module or npm package + version string + fixed string // empty: no fix published + called bool // Go only: our code reaches a vulnerable symbol + summary string + severity string +} + +// entry is one allowlist line: ` `. +type entry struct { + id, pkg, reason string + reviewBy time.Time + line int + used bool +} + +func main() { + goOnly := flag.Bool("go-only", false, "scan only the Go modules (skip pnpm audit)") + flag.Parse() + os.Exit(run(*goOnly, time.Now())) +} + +func run(goOnly bool, now time.Time) int { + entries, err := readAllowlist(allowlistPath) + if err != nil { + fmt.Fprintln(os.Stderr, "vulncheck:", err) + return exitFindings + } + var findings []finding + complete := map[string]bool{ecosystemGo: true, ecosystemNpm: !goOnly} + for _, module := range goModules { + found, scanErr := scanGo(module) + if scanErr != nil { + fmt.Fprintf(os.Stderr, "vulncheck: govulncheck %s: %v\n", module.dir, scanErr) + complete[ecosystemGo] = false + continue + } + findings = append(findings, found...) + } + if !goOnly { + for _, dir := range pnpmDirs { + found, scanErr := scanPnpm(dir) + if scanErr != nil { + fmt.Fprintf(os.Stderr, "vulncheck: pnpm audit %s: %v\n", dir, scanErr) + complete[ecosystemNpm] = false + continue + } + findings = append(findings, found...) + } + } + + problems := judge(findings, entries, now, complete) + scanFailed := !complete[ecosystemGo] || (!goOnly && !complete[ecosystemNpm]) + for _, problem := range problems { + fmt.Println("FAIL ", problem) + } + switch { + case len(problems) > 0: + fmt.Printf("vulncheck: %d problem(s); bump to the fixed version, or see %s\n", len(problems), allowlistPath) + return exitFindings + case scanFailed: + fmt.Println("vulncheck: a scanner could not run; nothing it covers was checked") + return exitScanFailed + } + fmt.Printf("vulncheck: ok (%d Go modules, %d lockfiles, %d allowlisted)\n", len(goModules), len(pnpmDirs)*boolInt(!goOnly), countUsed(entries)) + return 0 +} + +// judge turns findings into failures. An entry that matches nothing is only +// reported when its scanner ran (complete: "go" for GO- ids, "npm" for the +// rest), since a skipped scan matches nothing. +func judge(findings []finding, entries []*entry, now time.Time, complete map[string]bool) []string { + var problems []string + for _, found := range findings { + listed := match(entries, found) + switch { + case listed == nil: + fix := "no fix published" + if found.fixed != "" { + fix = "fixed in " + found.fixed + } + reach := "" + if found.called { + reach = ", CALLED by our code" + } + severity := "" + if found.severity != "" { + severity = found.severity + ", " + } + problems = append(problems, fmt.Sprintf("%s: %s %s@%s (%s%s%s): %s", found.where, found.id, found.pkg, found.version, severity, fix, reach, found.summary)) + case found.called: + problems = append(problems, fmt.Sprintf("%s: %s is allowlisted (line %d) as unreachable, but our code calls it: remove the usage", found.where, found.id, listed.line)) + } + } + for _, listed := range entries { + if now.After(listed.reviewBy) { + problems = append(problems, fmt.Sprintf("%s:%d: %s passed its review date %s: re-check it, then move the date or delete it", allowlistPath, listed.line, listed.id, listed.reviewBy.Format(dateLayout))) + } + if complete[ecosystem(listed.id)] && !listed.used { + problems = append(problems, fmt.Sprintf("%s:%d: %s matches nothing any more: delete it", allowlistPath, listed.line, listed.id)) + } + } + sort.Strings(problems) + return problems +} + +const ( + ecosystemGo = "go" + ecosystemNpm = "npm" +) + +func ecosystem(id string) string { + if strings.HasPrefix(id, "GO-") { + return ecosystemGo + } + return ecosystemNpm +} + +func match(entries []*entry, found finding) *entry { + for _, listed := range entries { + if listed.pkg != found.pkg { + continue + } + if listed.id == found.id || contains(found.aliases, listed.id) { + listed.used = true + return listed + } + } + return nil +} + +func readAllowlist(path string) ([]*entry, error) { + file, err := os.Open(path) + if err != nil { + return nil, fmt.Errorf("open allowlist: %w", err) + } + defer file.Close() + var entries []*entry + scanner := bufio.NewScanner(file) + for lineNumber := 1; scanner.Scan(); lineNumber++ { + line := strings.TrimSpace(scanner.Text()) + if line == "" || strings.HasPrefix(line, "#") { + continue + } + fields := strings.Fields(line) + if len(fields) <= allowlistFields { + return nil, fmt.Errorf("%s:%d: want ` `", path, lineNumber) + } + reviewBy, dateErr := time.Parse(dateLayout, fields[2]) + if dateErr != nil { + return nil, fmt.Errorf("%s:%d: review date: %w", path, lineNumber, dateErr) + } + entries = append(entries, &entry{ + id: fields[0], pkg: fields[1], reviewBy: reviewBy, line: lineNumber, + reason: strings.Join(fields[allowlistFields:], " "), + }) + } + if err := scanner.Err(); err != nil { + return nil, fmt.Errorf("read allowlist: %w", err) + } + return entries, nil +} + +// govulncheck -format json: a stream of messages; only these fields matter. +type goMessage struct { + OSV *struct { + ID string `json:"id"` + Aliases []string `json:"aliases"` + Summary string `json:"summary"` + Database struct { + URL string `json:"url"` + } `json:"database_specific"` + } `json:"osv"` + Finding *struct { + OSV string `json:"osv"` + FixedVersion string `json:"fixed_version"` + Trace []struct { + Module string `json:"module"` + Version string `json:"version"` + Function string `json:"function"` + } `json:"trace"` + } `json:"finding"` +} + +func scanGo(module goModule) ([]finding, error) { + // The tools modfile pins govulncheck; it then scans module.dir's own go.mod. + out, err := command("go", "tool", "-modfile=tools/go.mod", "govulncheck", "-C", module.dir, "-format", "json", module.pattern) + if err != nil { + return nil, err + } + type osvInfo struct { + aliases []string + summary string + } + osvs := map[string]osvInfo{} + byID := map[string]*finding{} + decoder := json.NewDecoder(bytes.NewReader(out)) + for { + var message goMessage + if decodeErr := decoder.Decode(&message); errors.Is(decodeErr, io.EOF) { + break + } else if decodeErr != nil { + return nil, fmt.Errorf("decode govulncheck output: %w", decodeErr) + } + if message.OSV != nil { + osvs[message.OSV.ID] = osvInfo{message.OSV.Aliases, message.OSV.Summary} + } + if message.Finding == nil || len(message.Finding.Trace) == 0 { + continue + } + vulnerable := message.Finding.Trace[0] + found := byID[message.Finding.OSV] + if found == nil { + found = &finding{ + where: module.dir, id: message.Finding.OSV, pkg: vulnerable.Module, + version: vulnerable.Version, fixed: message.Finding.FixedVersion, + } + byID[found.id] = found + } + if vulnerable.Function != "" { + found.called = true + } + } + findings := make([]finding, 0, len(byID)) + for id, found := range byID { + found.aliases = osvs[id].aliases + found.summary = osvs[id].summary + findings = append(findings, *found) + } + return findings, nil +} + +// pnpm audit --json: advisories keyed by an internal number. +type pnpmReport struct { + Advisories map[string]struct { + GHSA string `json:"github_advisory_id"` + CVEs []string `json:"cves"` + Module string `json:"module_name"` + Severity string `json:"severity"` + Title string `json:"title"` + Patched string `json:"patched_versions"` + Findings []struct { + Version string `json:"version"` + } `json:"findings"` + } `json:"advisories"` +} + +// noPatch is how the npm advisory database says "no fixed version". +const noPatch = "<0.0.0" + +func scanPnpm(dir string) ([]finding, error) { + if _, err := exec.LookPath("pnpm"); err != nil { + return nil, fmt.Errorf("pnpm is not installed: %w", err) + } + // pnpm audit exits 1 when it finds anything; the JSON is what counts. + out, err := command("pnpm", "--dir", dir, "audit", "--json") + var report pnpmReport + if jsonErr := json.Unmarshal(out, &report); jsonErr != nil { + return nil, fmt.Errorf("unreadable pnpm audit output (%w): %w", err, jsonErr) + } + findings := make([]finding, 0, len(report.Advisories)) + for _, advisory := range report.Advisories { + found := finding{ + where: filepath.Join(dir, "pnpm-lock.yaml"), id: advisory.GHSA, aliases: advisory.CVEs, + pkg: advisory.Module, summary: advisory.Title, severity: advisory.Severity, + } + if advisory.Patched != noPatch { + found.fixed = advisory.Patched + } + if len(advisory.Findings) > 0 { + found.version = advisory.Findings[0].Version + } + findings = append(findings, found) + } + return findings, nil +} + +func command(name string, args ...string) ([]byte, error) { + ctx, cancel := context.WithTimeout(context.Background(), scanTimeout) + defer cancel() + cmd := exec.CommandContext(ctx, name, args...) + var stderr bytes.Buffer + cmd.Stderr = &stderr + out, err := cmd.Output() + if err != nil { + return out, fmt.Errorf("%w: %s", err, strings.TrimSpace(stderr.String())) + } + return out, nil +} + +func contains(values []string, want string) bool { + for _, value := range values { + if value == want { + return true + } + } + return false +} + +func countUsed(entries []*entry) int { + used := 0 + for _, listed := range entries { + if listed.used { + used++ + } + } + return used +} + +func boolInt(value bool) int { + if value { + return 1 + } + return 0 +} diff --git a/tools/actionlint/go.mod b/tools/actionlint/go.mod index 56ae459d..9c3a903a 100644 --- a/tools/actionlint/go.mod +++ b/tools/actionlint/go.mod @@ -16,5 +16,5 @@ require ( github.com/robfig/cron/v3 v3.0.1 // indirect go.yaml.in/yaml/v4 v4.0.0-rc.3 // indirect golang.org/x/sync v0.20.0 // indirect - golang.org/x/sys v0.42.0 // indirect + golang.org/x/sys v0.44.0 // indirect ) diff --git a/tools/actionlint/go.sum b/tools/actionlint/go.sum index 10fc3961..99ce4cbe 100644 --- a/tools/actionlint/go.sum +++ b/tools/actionlint/go.sum @@ -4,6 +4,8 @@ github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJ github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= @@ -21,5 +23,5 @@ go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfP golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= -golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ= +golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= diff --git a/tools/go.mod b/tools/go.mod index 5b82a526..4d5bdf05 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -5,6 +5,7 @@ go 1.26.10 tool ( github.com/golangci/golangci-lint/v2/cmd/golangci-lint github.com/sqlc-dev/sqlc/cmd/sqlc + golang.org/x/vuln/cmd/govulncheck ) require ( @@ -106,7 +107,7 @@ require ( github.com/golangci/rowserrcheck v0.0.0-20261005233414-e0740d52dee8 // indirect github.com/golangci/swaggoswag v0.0.0-20250504205917-77f2aca3143e // indirect github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e // indirect - github.com/google/cel-go v0.28.0 // indirect + github.com/google/cel-go v0.30.0 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/gordonklaus/ineffassign v0.2.0 // indirect github.com/gostaticanalysis/analysisutil v0.7.1 // indirect @@ -236,14 +237,16 @@ require ( golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f // indirect golang.org/x/mod v0.42.0 // indirect - golang.org/x/net v0.61.0 // indirect + golang.org/x/net v0.62.0 // indirect golang.org/x/sync v0.24.0 // indirect golang.org/x/sys v0.49.0 // indirect + golang.org/x/telemetry v0.0.0-20261010193011-f71dc92da45e // indirect golang.org/x/text v0.43.0 // indirect golang.org/x/tools v0.52.0 // indirect + golang.org/x/vuln v1.9.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20261019180522-ce908d29299b // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20261019180522-ce908d29299b // indirect - google.golang.org/grpc v1.83.1 // indirect + google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.12 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect diff --git a/tools/go.sum b/tools/go.sum index 8e990ed7..e3d8336e 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -314,8 +314,10 @@ github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e h1:gD6P7NEo7Eqt github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e/go.mod h1:h+wZwLjUTJnm/P2rwlbJdRPZXOzaT36/FwnPnY2inzc= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/cel-go v0.28.0 h1:KjSWstCpz/MN5t4a8gnGJNIYUsJRpdi/r97xWDphIQc= -github.com/google/cel-go v0.28.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= +github.com/google/cel-go v0.30.0 h1:ll54AkzKunWkBn9wSoiUXbFZXYZTkdJGNXTBXUoolGo= +github.com/google/cel-go v0.30.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= +github.com/google/go-cmdtest v0.4.1-0.20220921163831-55ab3332a786 h1:rcv+Ippz6RAtvaGgKxc+8FQIpxHgsF+HBzPyYL2cyVU= +github.com/google/go-cmdtest v0.4.1-0.20220921163831-55ab3332a786/go.mod h1:apVn/GCasLZUVpAJ6oWAuyP7Ne7CEsQbTnc0plM3m+o= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -341,6 +343,7 @@ github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20260802141513-ef3492d7dac3 h1:LMLX+LgTNWpfvCBdFebv6EsYotImrt/Ppc5cXIriCSo= github.com/google/pprof v0.0.0-20260802141513-ef3492d7dac3/go.mod h1:jl5iWTm0/hd5PjEYEOuwAJ57L/CibdZfrqZ5XA5GrCk= +github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -802,8 +805,8 @@ golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= -golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -870,6 +873,8 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/telemetry v0.0.0-20261010193011-f71dc92da45e h1:P6NGsugec4oASJ+yKMNgTndeo0h2CbixZLvQIe9h5R4= +golang.org/x/telemetry v0.0.0-20261010193011-f71dc92da45e/go.mod h1:GNu+nb+E5axfGmP+Uu3ZVQu5lE/Xk42MjZOHWUD94/o= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= @@ -941,6 +946,8 @@ golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnps golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8= +golang.org/x/vuln v1.9.0 h1:12VaqnI9kJfqwRoPptxoqsUhQtdfrSbdksT7X/KY/sc= +golang.org/x/vuln v1.9.0/go.mod h1:E/Frwm0xp49fTyBW+6CQHdkvobknbwUM49yEpMGUauw= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1014,8 +1021,8 @@ google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKa google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.83.1 h1:HIO0+BEtBP6soyqvqC8sNUjZ7bTs+0hFQuFF+RAy++Y= -google.golang.org/grpc v1.83.1/go.mod h1:kDyl6SKsiHKt0uylY5gtn5cEjkrIOhQOGDgIc4JGwzQ= +google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= +google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=