Skip to content

feat: add CLI command to retrieve a single key by tenant and key ID#172

Merged
jithinkunjachan merged 1 commit into
mainfrom
feat/add-get-key-cli
Jul 1, 2026
Merged

feat: add CLI command to retrieve a single key by tenant and key ID#172
jithinkunjachan merged 1 commit into
mainfrom
feat/add-get-key-cli

Conversation

@jithinkunjachan

@jithinkunjachan jithinkunjachan commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Adds a new get key subcommand that fetches a single key's full details (including timestamps, labels, processing state) given a tenant ID and key ID. Falls back to the selected tenant when --tenant-id is not provided. Outputs in tabular or JSON format.

ID Name TenantID Kind ParentID ManagedBy Labels LifeCycleState KeyProcessingState CreatedAt UpdatedAt
b3645297-b9ad-464a-9b0d-cd8d8d8ef9f9 B 92f3e815-c6b1-4a62-bd7d-8205fd723866 K1 0x6e51b7952340 root pre-activation {pending } 2026-06-30T15:21:16+02:00 2026-06-30T15:21:16+02:00

Please note here the KeyProcessingState output is {pending} but if we have jobId in the future it might be something like this {pending b3645297-b9ad-464a-9b0d-cd8d8d8ef123}do we want to print it like this any suggestions are welcome.

@jithinkunjachan jithinkunjachan self-assigned this Jun 30, 2026
@jithinkunjachan jithinkunjachan marked this pull request as ready for review June 30, 2026 13:35
Signed-off-by: jK <33685667+jithinkunjachan@users.noreply.github.com>

@fabenan-f fabenan-f left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@jithinkunjachan jithinkunjachan merged commit 0eedebb into main Jul 1, 2026
5 checks passed
@jithinkunjachan jithinkunjachan deleted the feat/add-get-key-cli branch July 1, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants