Repository navigation
fix(security): higiene Tauri SRC-004 (capabilities y runtime) - #91
Merged
Merged
Conversation
Fija tauri 2.12.1, deja solo la ventana main, valida schemas en CI y demuestra denegación IPC cuando la capability no concede permisos.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: e7ab75af-44ac-415f-b9c4-b7570cb26f76) |
This was referenced Oct 14, 2026
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.
Summary
tauri=2.12.1ytauri-build=2.7.1, y@tauri-apps/apideapps/weba2.12.1([Task] SRC-004 — Fijar versiones exactas de Tauri (crates + JS) #31).dialog/pickerdel MVP; documenta reserva v1 y denegación por ausencia de permiso ([Task] SRC-004 — Denegación por ausencia de permiso (sin campo denied) #33, [Task] SRC-004 — Retirar dialog.json y picker.json del MVP #34).tools/validate_tauri_schemas.pyen CI y jobsecurity-runtimecon prueba negativa IPC ([Task] SRC-004 — Verificar tauri.conf.json sin propiedades fuera de schema #30, [Task] SRC-004 — Validar capabilities contra desktop-schema reproducible #32, [Task] SRC-004 — Job CI security-runtime y pruebas negativas #35).desktop-schema.json) ([Task] SRC-004 — Completar captura en source-register.md #36).Cierra #30 #31 #32 #33 #34 #35 #36.
Test plan
python3 tools/validate_tauri_schemas.pypython3 tools/check_negative_capabilities.pycargo test -p archmaker --locked security_runtime_deny_ungranted_commandcargo test --workspace --lockedsecurity-runtime)Note
Medium Risk
Touches Tauri ACL, IPC gating, and pinned desktop dependencies; changes are deny-by-default with new CI enforcement rather than broadening permissions.
Overview
Hardens Tauri security for MVP (SRC-004) by pinning the stack to 2.12.1 (
tauri/tauri-build/@tauri-apps/api) and recording the capture (claim,desktop-schema.jsonSHA) in governance docs.MVP capability model: removes
dialog/pickercapability JSON from the tree; onlymain.jsonwith emptypermissionsremains. Static checks (Rust, Python) and policy docs now assert absent v1-reserved files instead of empty allow-lists.CI and runtime proof: adds
tools/validate_tauri_schemas.pyon the Rust job and a dedicatedsecurity-runtimejob that runssecurity_runtime_deny_ungranted_command—mock IPC must reject ungranted commands (e.g.create_draft) when capabilities grant nothing.Code layout: desktop Tauri commands and startup move from
main.rsintolib.rs(archmaker::run()), with the negative IPC test colocated andtauri’stestfeature enabled for mock runtime.Reviewed by Cursor Bugbot for commit e8c087a. Configure here.