Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

packages/stats/core/drizzle.config.ts disables TLS certificate verification for the stats MySQL connection

オープン 初心者向け
#59,886 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, mysql, typescript

調査の方向性

packages/stats/core/drizzle.config.ts と packages/stats/core/package.json の db:generate、db:push、db:studio スクリプトを読みます。stats データベースがどの CA を使用しているか確認し、検証を有効にして bun run --cwd packages/stats/core db:studio または db:generate を実行します。ツールがデータベース証明書を検証し、正常に接続できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

packages/stats/core/drizzle.config.ts sets rejectUnauthorized: false in its MySQL ssl options (lines 16-18). The db:generate, db:push and db:studio scripts in packages/stats/core/package.json use this config, so the connection to the stats database skips server certificate verification whenever those scripts run.

Why it matters

A connection that skips certificate verification will accept any certificate presented by the server. Someone positioned on the network path between the machine running these scripts and the database could impersonate the database, read or alter the traffic, and capture the database credentials that the config reads from SST resources. Real-world exposure depends on where these scripts run and how the database is reached, which is why this is a hardening request rather than a confirmed exploit.

Suggested change

  • Remove rejectUnauthorized: false, so verification is on by default.
  • If the database uses a private or self-signed CA, configure that CA explicitly (for example, a ca value read from a resource), rather than disabling verification.

How to check

Confirm that the stats database presents a certificate issued by a CA the tooling trusts, then run bun run --cwd packages/stats/core db:studio or db:generate with verification enabled.

Notes

  • Found with static analysis; the connection was not exercised.
  • No CI job invokes this config directly, as far as the repository shows.
主要言語
TypeScript
スター
221k
フォーク
29.6k
平均マージ
5時間 32分
マージ済み PR(30日)
492

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。