Skip to content

[Bug] List/Get API keys have different outputs #1200

Description

@dannymcerlean1

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions