unity-gateway: OAuth JWT written world-readable (0644) by ug configure

オープン
#1,544 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
cli, security

調査の方向性

Start by tracing how ug configure --user --agents opencode writes ~/.ucode/opencode-xdg/opencode/opencode.json, ucode-auth.js, and state.json, and compare their permissions with managed-config.json. Reproduce the setup and check the resulting file and directory modes; done means the live token is not readable by other local users, with the chosen approach consistent across these files.

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

説明

ug configure --user --agents opencode (v0.2.1) writes the live OAuth access token (client_id databricks-cli, about 1 hour remaining) into ~/.ucode/opencode-xdg/opencode/opencode.json as both options.apiKey and options.headers.Authorization.

The file has mode -rw-r--r--, so any local user can read it, and ucode-auth.js and state.json are also 0644. managed-config.json is correctly 0600. Suggested fix: create these files with mode 0600 and the directory with 0700, or avoid writing the token and rely on the refresh plugin. Checked on macOS arm64, v0.2.1.

主要言語
Python
スター
122
フォーク
101
平均マージ
1日 16時間
マージ済み PR(30日)
198

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

databricks/unity-gateway のほかの issue

databricks/unity-gateway の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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