Repository navigation
fix(security): group provision に --epoch-key-file、Docker イメージを非 root に - #26
Merged
Merged
Conversation
- --epoch-key は引数なので ps から見える。ファイル / stdin (-) で渡せる --epoch-key-file を追加(--epoch-key と排他、読めない・空はエラーで ランダム鍵へ落とさない)。env は export しっぱなしで別グループに同じ鍵を 使い回す事故があるので作らない。 - runtime イメージに USER mat (uid 10001) を追加し、store 既定パスを 0700 で 先に作る。task docker:run のマウント先も追従。 Co-Authored-By: Claude Fable 5.2 <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.
変更
mat group provision --epoch-key-file <PATH>を追加(-は stdin)。--epoch-keyは引数なので他のローカルユーザーのプロセス一覧に出る。両者は排他で、読めない・空のファイルはエラー(ランダム鍵へ黙って落とさない)。環境変数は、export したままの値が別グループの provision で使い回されるので作らない。mat、uid 10001)で動かす。store 既定パス/home/mat/.config/matを 0700 で先に作り、task docker:runのマウント先も追従。確認
task check合格task docker:buildしたイメージで uid 10001、空の named volume へfabric init→ dir 700 / ファイル 600🤖 Generated with Claude Code