Repository navigation
Commit 2c71ca7
committed
feat: strengthen safety confirmations and security model
- Rewrite core/confirm.py with centralized confirmation mechanism
- Risk levels: low (auto-approve), medium/high (y/n prompt required)
- Non-interactive sessions reject medium/high unless --confirm flag
- All decisions logged to activity log (approved/rejected/cancelled)
- ConfirmationError exception for programmatic rejection
- Add allowlist validation: unknown apps and unknown actions rejected
- Add parameter validation: type checking, range bounds, coordinate validation
- Add blocked applications list (BLOCKED_APPS)
- Update deskbridge.py to use core.confirm for all desktop and wrapper actions
- Fix wrapper cli.py relative imports to absolute imports
- Add 9 security tests (confirmation, allowlist, parameter validation, blocked apps)
- Update README with complete security model documentation
- All 18 tests pass (9 original + 9 security)1 parent 9ee3900 commit 2c71ca7
9 files changed
Lines changed: 716 additions & 73 deletions
File tree
- core
- tests
- wrappers
- blender
- gimp
- inkscape
- obsidian
- zotero
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
159 | 218 | | |
160 | 219 | | |
161 | 220 | | |
| |||
0 commit comments