Phase 1: Increase Argon2id to 128 MiB and add SSH agent forwarding

Argon2id:
- Increase memory parameter from 64 MiB to 128 MiB for stronger KDF

SSH Agent:
- Add agent.go with connectAgent(), agentAuthMethod(), requestAgentForwarding()
- Integrate agent auth into buildAuthMethods() (tried first when enabled)
- Set up agent forwarding after PTY allocation when agentForwarding is true
- Track and clean up agent socket connection on session close
- Add AgentAuth and AgentForwarding fields to SSHConfig model
- Add SSH Agent section to profile editor with toggle controls
This commit is contained in:
2026-04-16 00:00:00 +01:00
parent 6d300f7dba
commit 5a998aefb9
5 changed files with 124 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const (
// Argon2id key derivation parameters.
argonTime = 3
argonMemory = 64 * 1024
argonMemory = 128 * 1024 // 128 MiB — deliberately strong for a desktop app
argonThreads = 4
argonKeyLen = 32