Commit b33cf4f
fix(env): recipient と passphrase 同時指定を拒否 + docs 表現修正
- io_export._encrypt_payload で passphrase ありかつ opts.recipients
指定時に ExportError を送出。従来は recipients=[] に上書きされて
cipher.encrypt 側の同時指定チェックを silently バイパスし、ユーザ
が明示した --recipient が無視されていた (gemini round 6 指摘)。
- docs/user/env-export-import.md L201 の制約説明を修正。round 2 で
export 側の DEST='-' x --passphrase-stdin 排他チェックを撤廃した
ため、SOURCE='-' (import) のみ併用不可、export は併用可能であること
を明記 (codex round 6 指摘)。
- recipient + passphrase 併用拒否の回帰テストを追加。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dfa0113 commit b33cf4f
3 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
113 | 132 | | |
114 | 133 | | |
115 | 134 | | |
| |||
0 commit comments