fix: @shizuoka-its/core を 3.0.1 に更新し Supabase 接続エラーを解消#181
Merged
Conversation
core 3.0.1 で DB ドライバが postgres-js に切り替わり、Supabase の Transaction pool mode 経由の接続で発生していた SSL 証明書検証エラー (SELF_SIGNED_CERT_IN_CHAIN) が解消された。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
KinjiKawaguchi
added a commit
that referenced
this pull request
Apr 8, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`@shizuoka-its/core` を 3.0.1 にバージョンアップし、Supabase の Transaction pool mode 経由の接続で発生していた SSL 証明書検証エラー (`SELF_SIGNED_CERT_IN_CHAIN`) を解消する。
Why
v3 リリース後、本番で DB クエリ実行時に以下のエラーが発生していた:
```
Error: self-signed certificate in certificate chain
code: 'SELF_SIGNED_CERT_IN_CHAIN'
```
原因は、`node-postgres` (`pg`) が最新バージョンで `sslmode=require` を `verify-full` のエイリアスとして扱うようになり、Supabase の証明書チェーンで検証に失敗するようになったため。
core 3.0.1 で DB ドライバが `postgres-js` に切り替えられ(su-its/core#146)、この問題が解消された。
Test plan