[Bug] List/Get API keys have different outputs
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with the temporal cloud apikey list and temporal cloud apikey get --key-id <some-value> command entry points, comparing their plain and JSON output paths. Reproduce the mismatch with the commands in the issue, then verify that ownerType consistently renders as SERVICE_ACCOUNT for list and get outputs.
Written by the indexing model from the issue text.
Description
What are you really trying to do?
I want to find service account API keys that are expiring soon so that I can automate notifying the owner.
Describe the bug
The json output of:
temporal cloud apikey list -o json
contains snakecase and numerical values for ownerType e.g.
"owner_type": 2
The plain command:
temporal cloud apikey list
produces readable values e.g. SERVICE_ACCOUNT
the get command temporal cloud apikey get --key-id <some-value> -o json produces a different value again:
"ownerType": "OWNER_TYPE_SERVICE_ACCOUNT"
Minimal Reproduction
temporal cloud apikey list
then
temporal cloud apikey list -o json
Environment/Versions
temporal version 1.8.2 (Server 1.31.2, UI 2.50.1)
cloud version 0.1.0
Additional context
I think ideally it should SERVICE_ACCOUNT in all cases.
- Dominant language
- Go
- Stars
- 379
- Forks
- 103
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temporalio/cli
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 70/100
temporalio/cli#776 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 65/100
temporalio/cli#1193 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
temporalio/cli#1178 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
temporalio/cli#1098 · 2 comments ·
-
enhancement
temporalio/cli#1083 · 1 assignee ·
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#4024 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100