Skip to content

APP-17524: Add is_default to APIKeyWithAuthorizations - #896

Open
Cecily Munn (cecilyViam) wants to merge 2 commits into
mainfrom
APP-17524-add-is-default-to-api-key-with-authorizations
Open

Cecily Munn (cecilyViam) wants to merge 2 commits into
mainfrom
APP-17524-add-is-default-to-api-key-with-authorizations

Conversation

@cecilyViam

@cecilyViam Cecily Munn (cecilyViam) commented Sep 8, 2026

Copy link
Copy Markdown
Member

What

Adds bool is_default = 3 to viam.app.v1.APIKeyWithAuthorizations, so ListKeys and GetRobotAPIKeys responses can carry each key's active-default status directly.

Why

The app frontend currently issues one InternalAuthService/IsKeyDefault RPC per API key to render the org/machine API-keys pages. For the viam-dev org (~2,300 keys) a single page load fires ~8,000 requests (with retries), which browsers reject with ERR_INSUFFICIENT_RESOURCES — see APP-17524. The backing store already has this bit on the same document ListKeys reads; this field lets the app return it in the list response and delete the N+1.

Consumed by the companion app PR (draft): viamrobotics/app — populates the field in IdentityAuthorizationToPbAPIKeyWithAuthorizations and drops the per-key query fan-out from the UI.

🤖 Generated with Claude Code

Lets ListKeys/GetRobotAPIKeys callers see each key's active-default status
without a per-key InternalAuthService/IsKeyDefault round trip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NhhSiphB4cdbSJ2qvGHUj6
@github-actions github-actions Bot added the safe to test committer is a member of this org label Sep 8, 2026
@cecilyViam
Cecily Munn (cecilyViam) marked this pull request as ready for review September 15, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant