Skip to content

feat: machine-specific SSH key loading via IfDevice entry string#2

Open
steffen-heil wants to merge 1 commit into
masterfrom
feature/machine-specific-loading
Open

feat: machine-specific SSH key loading via IfDevice entry string#2
steffen-heil wants to merge 1 commit into
masterfrom
feature/machine-specific-loading

Conversation

@steffen-heil

Copy link
Copy Markdown
Owner

Summary

  • Keys can now be restricted to specific machines by setting an IfDevice custom string field on the KeePass entry (compatible with the KeeAutoExec plugin)
  • Empty IfDevice → load on all machines (no change to existing behaviour)
  • Supports comma-separated patterns, !Hostname exclusions, * wildcards, and //regex// syntax
  • Also adds Windows/Linux build scripts with auto-deploy to KeePass Plugins folder

Usage

In the KeePass entry dialog, go to the Advanced tab and add a string field:

  • Name: IfDevice
  • Value: e.g. MY-PC or PC1,PC2 or !WORK-PC or LAPTOP*

Test plan

  • Add IfDevice = MY-PC to an entry — confirm key loads only on that machine
  • Add IfDevice = !MY-PC — confirm key loads everywhere except that machine
  • Add IfDevice = PC* — confirm wildcard matching works
  • Leave IfDevice empty — confirm key loads on all machines as before
  • Set IfDevice via KeeAutoExec convention — confirm KeeAgent respects it

🤖 Generated with Claude Code

@steffen-heil steffen-heil force-pushed the feature/machine-specific-loading branch 4 times, most recently from 00ccfae to 73b6725 Compare June 17, 2026 14:01
Read the KeeAutoExec-compatible "IfDevice" custom string field to
control which machines auto-load a key on database open. Supports
comma-separated hostnames, ! negation, * wildcards and //regex//.

Also adds build scripts with auto-deploy to KeePass Plugins folder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steffen-heil steffen-heil force-pushed the feature/machine-specific-loading branch from 73b6725 to db0f634 Compare June 17, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants