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

openclaw config-gen.py: openclaw.json with secrets is not written with mode 600

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

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

@royosherove がすでに取り組んでいます。

2026年10月11日 から。

  • #127 @royosherove による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
aws, python
領域
devops, security

調査の方向性

Read packs/openclaw/resources/config-gen.py around lines 70–71. The issue identifies two changes: create ~/.openclaw/ when needed and write openclaw.json with mode 600. Verify both behaviors with a focused check; the issue says the code was not run, and pull request #127 is already open.

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

説明

bug crew: in progress

packs/openclaw/resources/config-gen.py lines 70-71 write openclaw.json with the default umask. The file holds the gateway token and possibly API keys, but the script does not set mode 600.

Also, the script fails if ~/.openclaw/ does not exist yet.

Fix: create the directory (os.makedirs(..., exist_ok=True)) and write the file with mode 600 (for example os.open(path, os.O_WRONLY|os.O_CREAT|os.O_TRUNC, 0o600)).

Found by a static read of the code at commit 1f66a8f. The code was not run.

主要言語
Shell
スター
73
フォーク
11
平均マージ
6時間 46分
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

inceptionstack/lowkey のほかの issue

inceptionstack/lowkey の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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