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

Support declarative ownership for bind-mounted host directories

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, go

調査の方向性

まず、ob bootstrap から到達する bind-mount とサービスボリュームの処理を追跡し、次に既存の bootstrap テストを確認します。数値の所有者およびモードのメタデータがべき等に調整され、安全でないパスが拒否され、調整結果が報告され、その動作が bootstrap テストとドキュメントでカバーされていれば完了です。

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

説明

enhancement

Problem

Services running as non-root users may require a bind-mounted host directory with specific ownership and permissions. Docker Compose creates a missing bind source automatically, but it is typically owned by root. For example, Qdrant runs as UID/GID 1000 and could not write to /data/qdrant until the application bootstrap script explicitly ran install, chown, and chmod.

This makes each consuming repository duplicate host-provisioning logic and creates an easy-to-miss deployment failure.

Proposed behavior

Allow a bind mount or service volume declaration to specify host-path provisioning metadata, for example:

host_path: /data/qdrant
uid: 1000
gid: 1000
mode: "0750"

During ob bootstrap, Onebox would idempotently:

  1. Create the exact declared directory when absent.
  2. Reconcile its owner, group, and mode.
  3. Refuse unsafe or overly broad paths.
  4. Report the reconciliation in bootstrap output.

Deployment should continue treating this as host bootstrap state rather than silently mutating host paths during every application rollout.

Acceptance criteria

  • Numeric UID/GID values work even when no matching host account exists.
  • Re-running bootstrap is idempotent.
  • Existing correctly configured directories are left unchanged.
  • Unsafe paths such as / and unresolved variables are rejected.
  • The behavior is covered by bootstrap tests and documented.
主要言語
Go
スター
3
フォーク
0
平均マージ
2時間 44分
マージ済み PR(30日)
49

環境構築

はじめの一歩

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

labstack/onebox のほかの issue

labstack/onebox の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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