Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5861ff0
chore(PLAN03-1): release ブランチ作成
takemi-ohama May 21, 2026
9567b3d
feat(env): PLAN03-1 PR1 devbase env export (Local + Stdio) (#14)
takemi-ohama May 21, 2026
a876590
feat(env): PLAN03-1 PR2 devbase env import (#15)
takemi-ohama May 23, 2026
604a03e
Merge branch 'main' into release/PLAN03-1
takemi-ohama May 23, 2026
9c419fc
feat(env): PLAN03-1 PR3 devbase env export/import S3 backend (#19)
takemi-ohama May 23, 2026
f1fa837
feat(env): PLAN03-1 PR5 ドキュメント追加 + import/export リファクタ (#20)
takemi-ohama May 23, 2026
c4c4bca
fix(env): PR #13 round1 codex/gemini 指摘対応
takemi-ohama May 23, 2026
8f8f5c3
fix(env): PR #13 round2 gemini 指摘対応
takemi-ohama May 23, 2026
cf00209
fix(env): PR #13 round3 codex 指摘対応
takemi-ohama May 23, 2026
e7b1464
fix(env): PR #13 round4 gemini 指摘対応
takemi-ohama May 23, 2026
3c5297d
fix(env): PR #13 round5 codex/gemini 指摘対応
takemi-ohama May 23, 2026
74c9432
chore: 不要な migrate_ai_to_home.sh を削除
takemi-ohama May 23, 2026
b1e85d6
fix(env): recipient と passphrase 同時指定を拒否 + docs 表現修正
takemi-ohama May 23, 2026
23dedaf
fix(env): PR #22 round1 codex/gemini 指摘対応
takemi-ohama May 23, 2026
b81aae4
fix(env): export オプション排他チェックを _validate_options に集約 (fail-fast)
takemi-ohama May 23, 2026
a751323
fix(env): backup GC に dbenv- prefix で安全弁 + export 既定名を microsecond 精度に
takemi-ohama May 23, 2026
db8f0a5
fix(env): opts.dest 空文字で既定名ガードがバイパスされる問題を修正
takemi-ohama May 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ __pycache__/
.venv/
.env
.env.backup
.gemini/
.docker-compose.scale.yml
plugins.yml
plugins/*/
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@

## [Unreleased]

### Added
- `devbase env export` / `devbase env import` で **S3 URI (`s3://bucket/key`) を入出力先として指定**できるようになりました (PLAN03-1 PR3)。
- 既定でオブジェクト単位の SSE (`aws:kms` または `AES256`) を強制し、export 時はバケット側のデフォルト暗号化も `GetBucketEncryption` で事前確認します。
- 暗号化が未設定のバケットへ export する場合は `--unsafe-allow-unencrypted-bucket` の明示が必要です (オブジェクト単位の SSE はこのフラグに関係なく常に付与されます)。
- SSE 種別 (`DEVBASE_S3_SSE`) / KMS 鍵 (`DEVBASE_S3_SSE_KMS_KEY_ID`) / エンドポイント (`DEVBASE_S3_ENDPOINT_URL`) / リージョン (`DEVBASE_S3_REGION`) は環境変数で上書きできます。MinIO / LocalStack の利用も可能です。
- `boto3` は main dependency として常に同梱されます (S3 を使わないユーザにも 25MB 程度入りますが、引数検出や lazy install の複雑さを避けるトレードオフです)。
- `devbase env export` / `devbase env import` の利用者向けドキュメント [`docs/user/env-export-import.md`](docs/user/env-export-import.md) を新設しました (PLAN03-1 PR5)。
- バンドル構造、age 暗号化 (recipient / identity / passphrase)、入出力先 (local / stdio / S3)、merge モード比較、`.env.sources.yml` の扱い、2 フェーズ書き込みとバックアップ、典型ワークフロー、トラブルシューティングまでを網羅します。
- README と環境変数ガイドからのリンクも追加しました。

### Changed
- `gs://` (GCS) スキームは **PLAN03-1 PR4 廃案** により対応しません。指定すると明示的なエラーメッセージで失敗します (旧: "未実装")。
- `lib/devbase/env/` 配下の export / import モジュールをリファクタリングしました (PLAN03-1 PR5)。公開 API (`ExportOptions`, `ImportOptions`, `export`, `import_bundle`) に互換性のない変更はありません。
- export / import で重複していた passphrase 読み取り / 既定鍵 fallback / セキュアな bytes 書き込みを `io_common.py` に集約。
- 711 行に肥大化していた `io_import.py` を「orchestration (`io_import.py`, 209 行)」「merge 計画 (`_import_merge.py`)」「2 フェーズ atomic 書き込み + backup GC (`_import_atomic.py`)」の 3 モジュールに分割。

## [2.2.0] - 2026-04-20

OSS 化に伴う初回リリース。devbase は本バージョンより `devbasex` Organization 配下で公開されます。
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ devbaseのコマンドは4つのグループにまとめられています。
| グループ | 略記 | 説明 |
|---------|------|------|
| `container` | `ct` | コンテナ管理(up / down / login / ps / logs / scale / build) |
| `env` | — | 環境変数管理(init / sync / list / set / get / delete / edit / project) |
| `env` | — | 環境変数管理(init / sync / list / set / get / delete / edit / project / export / import) |
| `plugin` | `pl` | プラグイン管理(list / install / uninstall / update / info / sync / repo) |
| `snapshot` | `ss` | スナップショット管理(create / list / restore / copy / delete / rotate) |

Expand Down Expand Up @@ -106,6 +106,7 @@ devbaseのコマンドは4つのグループにまとめられています。
| [CLIリファレンス](docs/user/cli-reference.md) | 全コマンドの構文・オプション・使用例 |
| [プラグインレジストリ](docs/user/plugin-registries.md) | 公開・社内レジストリの一覧と追加方法 |
| [環境変数ガイド](docs/user/environment-variables.md) | 3レベル構造、コレクター、ソース同期 |
| [環境変数の export/import ガイド](docs/user/env-export-import.md) | バンドル形式・age 暗号化・S3 連携・merge/replace の運用 |
| [コンテナ操作ガイド](docs/user/container-operations.md) | ライフサイクル、並行開発、ボリューム構造 |
| [スナップショットガイド](docs/user/snapshot-guide.md) | 増分バックアップ、世代管理、復元手順 |
| [トラブルシューティング](docs/user/troubleshooting.md) | カテゴリ別の問題と解決策 |
Expand Down
77 changes: 0 additions & 77 deletions bin/migrate_ai_to_home.sh

This file was deleted.

Loading
Loading