Skip to content

Key Workflows

dh00mk3tu edited this page Aug 20, 2025 · 1 revision

1. Application Startup

  1. Component mounts
  2. fetchSSHKeys() called automatically
  3. getLoadedSSHAgentKeys() called automatically
  4. UI updates with current key status

2. SSH Key Discovery

  1. Backend scans ~/.ssh/ directory
  2. Identifies .pub files
  3. Runs ssh-keygen -lv on each file
  4. Parses output for key information
  5. Returns structured data to frontend

3. Key Creation

  1. User opens CreateKeyModal
  2. Fills in key details (email, type, size, passphrase)
  3. Frontend validates input
  4. Backend executes ssh-keygen command
  5. Success/error feedback to user
  6. Key list refreshes automatically

4. Key Removal

  1. User clicks remove button on KeyCard
  2. RemoveKeyConfirmationModal opens
  3. User confirms deletion
  4. Backend removes key files using filename
  5. Success feedback and modal closes
  6. Key list refreshes automatically

5. Status Monitoring

  1. Frontend polls for SSH agent status
  2. Compares available keys vs. loaded keys
  3. Updates UI to show active/inactive status
  4. Real-time status indicators

Clone this wiki locally