Skip to content

Make vault name matching case-insensitive - #71

Closed
dyk1454683243-sudo wants to merge 1 commit into
mtiluk:mainfrom
dyk1454683243-sudo:cursor/case-insensitive-vault-names-5558
Closed

dyk1454683243-sudo wants to merge 1 commit into
mtiluk:mainfrom
dyk1454683243-sudo:cursor/case-insensitive-vault-names-5558

Conversation

@dyk1454683243-sudo

Copy link
Copy Markdown

Fixes #59.

Vault name lookups, deletes, and uniqueness checks are now case-insensitive on the server and in local config. Stored names keep their original casing, so existing config.json entries, keyring secrets, and database rows are left unchanged.

Changes

  • Store: CreateVault, VaultByName, and DeleteVault compare names with LOWER(name), so notes and NOTES resolve to the same vault. Creates still persist the name as given; lookups return that stored casing.
  • HTTP: Removed the VaultByName TODO. Create/get/delete endpoints inherit the store behavior.
  • Local config / CLI: Config.Vault, AddVault, RemoveVault, and Validate treat names as case-insensitive. After a match, push/pull/remove use the stored name so existing keyring entries still resolve.

Tests

Adds coverage for case-insensitive create/lookup/delete in the store and HTTP handlers, local config matching, vault-remove, and a push/pull round-trip that creates Notes then fetches it as NOTES.

Lookups, deletes, and uniqueness checks now treat vault names as
case-insensitive on both the server and in local config. Stored
names keep their original casing so existing config, keyring
entries, and database rows are unchanged.

Fixes #59

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/case-insensitive-vault-names-5558 branch from 90278d0 to 5219db7 Compare September 18, 2026 07:42
Repository owner locked and limited conversation to collaborators Sep 18, 2026
@mtiluk mtiluk closed this Sep 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants