Skip to content

Show state and client id in the service accounts table - #45

Open
mrcrgl wants to merge 1 commit into
mainfrom
iam-service-account-view
Open

mrcrgl wants to merge 1 commit into
mainfrom
iam-service-account-view

Conversation

@mrcrgl

@mrcrgl mrcrgl commented Nov 5, 2026

Copy link
Copy Markdown
Member

origin iam list-service-accounts showed the delete time, empty for every active account, and left out the state and the OAuth client id. The view now has:

NAME   DISPLAY NAME   STATE     MEMBER                CLIENT ID   CREATE TIME
sa-1   CI deploy      ACTIVE    serviceAccount:sa-1   c-7f3a
sa-2   Old backup     DELETED   serviceAccount:sa-2   c-91be
  • State is coloured like other states, so accounts listed with --show-deleted stand out.
  • Member stays: it is what create-role-binding --member takes.
  • The delete time moves to -o wide.

JSON output is unchanged. A test in tests/output.rs covers the table and the wide header.

The service account view showed the delete time, which is empty for every
active account, and left out the state and the OAuth client id. The table
now shows name, display name, state, member, client id and create time;
the delete time moves to -o wide.

This branch has not been deployed

No deployments
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