A private key named id_dsa is attached from a mention
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
Research direction
Start with credential_path in crates/formless-core/src/daemon.rs and the attachment coverage in crates/formless-core/tests/attachments.rs; also read builtin in crates/formless-runtime/src/sensitive_paths.rs to understand the second mention check. Add coverage showing that id_dsa is refused both under and outside .ssh, while id_dsa.pub remains attachable. Done when the private key is blocked and the public key behavior is preserved.
Written by the indexing model from the issue text.
Description
What is wrong
An OpenSSH DSA private key is attached from an @ mention. The filename check knows the other default private-key names and not this one.
@keys/id_dsa passes. The file is ordinary text, so it is inlined into the prompt. The same path with id_rsa, id_ecdsa, or id_ed25519 is refused as a credential. ID_DSA is the same miss, because the name is lowercased before the prefix check and id_dsa is not one of the prefixes.
A copy that lives outside ~/.ssh is also attached. The directory rule only fires for a component named .ssh. sensitive_paths does not look at id_* names either, so the second mention check classifies keys/id_dsa as ordinary. id_rsa is already blocked by the filename list alone; id_dsa is not on that list.
id_dsa.pub stays attachable. That is the public half, and it should stay attachable (#2142).
Where
crates/formless-core/src/daemon.rs,credential_path. After the credential-directory walk, the lowercased filename is matched withstarts_with("id_rsa"),starts_with("id_ed25519"), andstarts_with("id_ecdsa"). There is noid_dsaarm.attach_pathreturns only whencredential_pathisSome, then whenpolicy.classifyis notOrdinary.crates/formless-runtime/src/sensitive_paths.rsbuiltindoes not nameid_dsa, so a file outside.sshisOrdinarythere.mentions_never_take_credentials_or_leave_the_folderincrates/formless-core/tests/attachments.rsplants.ssh/id_rsaand.env. It never checksid_dsaoutside.ssh.
MCP filesystem exposure uses credential_path too (mcp_catalog.rs). A root that is the file id_dsa is not reported as a credential path.
Why it matters
id_dsa is the private key ssh-keygen -t dsa writes. Mentioning a copy that sits next to a project sends that key to the model. The guard already exists so id_rsa is never attached from a mention. DSA is the same kind of file.
This is not #2142. That issue is id_ed25519.pub (and the .pub names of the prefixes already listed) being refused. id_dsa.pub is not refused today. This is not #2148 (.pgpass). This is not #863, which added the mention guard this list belongs to.
Suggested fix
Treat a lowercased basename that starts with id_dsa like id_rsa, except a name that ends in .pub. @keys/id_dsa should fail the mention with the credential error. @keys/id_dsa.pub should still attach. Keep refusing id_rsa and anything under .ssh.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 12h 10m
- Merged PRs (30d)
- 780
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from athiwatc/formless
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
All issues in athiwatc/formless
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symposium-dev/symposium#530 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day