Skip to content

feat(vault): granular identity field selectors (CLI + TUI per-field)#36

Merged
UnbreakableMJ merged 1 commit into
mainfrom
identity-field-selectors
Jun 16, 2026
Merged

feat(vault): granular identity field selectors (CLI + TUI per-field)#36
UnbreakableMJ merged 1 commit into
mainfrom
identity-field-selectors

Conversation

@UnbreakableMJ

Copy link
Copy Markdown
Contributor

What

Adds 16 granular identity Field selectors alongside the composed identity-name / identity-address, so every identity field is individually readable on the CLI and the TUI per-field reveal/copy (PR #35) reaches all of them — including the sensitive SSN/passport/license (masked, revealed on demand like the card CVV). This was the last tracked code follow-up.

New selectors: identity-{title, first-name, middle-name, last-name, username, company, ssn, passport, license, address1, address2, address3, city, state, postal, country}.

How (same shape as the card-* selectors)

  • vault-ipc — 16 Field variants (IdentityTitle … IdentityCountry).
  • vault-agentget_item adds the 16 to the identity DecryptOptions { identity: true } group + one value arm each (direct PlainIdentity field clones; ssn/passport/license return plaintext like card-code).
  • vault-cliFieldArg + the From<FieldArg> for Field map (clap derives the identity-* kebab names).
  • vault-tui — identity detail_fields is now the full granular set (ssn/passport/license masked); ensure_detail fetches the non-sensitive ones on select. The existing detail field cursor reveals/copies each.

Tests

detail_fields(4) returns the 18-field granular set with the three sensitive fields masked and mapped to the right Fields; existing identity decrypt/render tests still pass. The proto/CLI mapping is compiler-exhaustive.

Verification

fmt --check, fresh-isolated clippy --all-features -D warnings, cargo test --workspace --all-targets, cargo deny check, both headless builds — all green.

Manual: vault get "Jane Doe" --field identity-ssn / --field identity-company return the values; in the TUI, Tab to the identity detail, j/k to SSN, Space reveals, c copies.

Out of scope (tracked follow-up)

Detail-pane scrolling — the identity detail is now ~18 rows and can clip on a very short terminal (the cursor still reveals/copies clipped rows). A small viewport follow-up reusing scroll_offset.

🤖 Generated with Claude Code

Adds 16 per-field identity `Field` selectors alongside the composed
identity-name / identity-address, so every identity field is individually
readable and the TUI per-field reveal/copy reaches all of them.

- vault-ipc: 16 `Field` variants (IdentityTitle…IdentityCountry;
  ssn/passport/license sensitive).
- vault-agent: `get_item` decrypts the identity and returns each field
  (one value arm apiece); the 16 join the identity DecryptOptions group.
- vault-cli: `FieldArg` + From map → `--field identity-{title,first-name,
  middle-name,last-name,username,company,ssn,passport,license,address1,
  address2,address3,city,state,postal,country}`.
- vault-tui: identity `detail_fields` is now the full granular set
  (ssn/passport/license masked, revealed on demand like the card CVV);
  `ensure_detail` fetches the non-sensitive ones on select. The detail
  field cursor (PR #35) reveals/copies each.
- docs: README selector list, CHANGELOG.

Same proto → agent → CLI → TUI shape as the card-* selectors. Detail-pane
scrolling for the ~18-row identity detail is a tracked follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@UnbreakableMJ
UnbreakableMJ merged commit 2a127f9 into main Jun 16, 2026
8 checks passed
@UnbreakableMJ
UnbreakableMJ deleted the identity-field-selectors branch June 16, 2026 13:53
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.

1 participant