Activity

jankenman

feat: implement request routing and unified error handling

[Summary]
Introduced a path-based router and centralized error handling logic for better extensibility.

[Details]

  • Added a switch statement to handle different request paths (/ping, /linewebhook), allowing for easy endpoint extension.
  • Decoupled the LINE Webhook logic into a standalone handleWebhook function to improve maintainability.
  • Standardized error handling to return consistent JSON responses with appropriate HTTP status codes.
  • Added validation for environment variables to ensure secure and stable operation.

[概要]
リクエストルーティングの実装とエラーハンドリングの共通化

[詳細]

  • switch文によるパスベースのルーティングを導入し、エンドポイント(/ping, /linewebhook)の拡張を容易に。
  • Webhook処理を独立した handleWebhook 関数へ分離し、コードの保守性を向上。
  • エラーハンドリングを標準化し、適切なHTTPステータスコードを含む一貫したJSON形式のレスポンスを返すよう修正。
  • 環境変数のバリデーションを追加し、設定ミスによる予期せぬ動作を防止。
Attachment
0
jankenman

feat: implement signature verification for LINE Webhook

[Summary]
Added security layer to verify the X-Line-Signature header in incoming requests.

[Details]

  • Integrated signature verification logic to ensure requests are genuinely from LINE servers.
  • Used the Channel Secret to validate the HMAC-SHA256 signature.
  • This secures Steve against unauthorized access and malicious requests.
  • Leveraged Appwrite’s environment variables to securely handle the Channel Secret.

[概要]
LINE Webhookの署名検証処理を実装

[詳細]

  • 送信元がLINEサーバーであることを保証するため、X-Line-Signatureヘッダーの検証ロジックを追加。
  • Channel Secretを使用したHMAC-SHA256署名の検証機能を実装。
  • これにより、Steveへの不正アクセスやなりすましリクエストを防止。
  • Channel SecretはAppwriteの環境変数を利用して安全に管理。
Attachment
0
jankenman

feat: Name the bot “Steve” and initialize with Appwrite and echo feature

  • Named the LINE bot “Steve”
  • Adopted Appwrite as the backend infrastructure
  • Implemented an echo feature to repeat user messages
  • Chose LINE as the platform because it is the most widely used chat tool in Japan

ボットを「Steve」と命名し、Appwriteの導入とおうむ返し機能を実装

  • LINE Botの名前を「Steve」に決定
  • バックエンド基盤としてAppwriteを採用
  • ユーザーのメッセージをそのまま返すおうむ返し機能を実装
0
jankenman

Render + Supabase にデプロイしようとしたものの,ログイン画面で 500 エラーが発生する不具合を修正しきれず。

Attachment
0