Skip to content

Commit

Permalink
add uid/gid fields to User gql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Jan 2, 2025
1 parent d271a74 commit 61b7dc9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ai/backend/manager/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ class Meta:
" be deleted, and only super-admin can replace main_access_key."
)
)
container_uid = graphene.Int(
description="Added in 25.1.0. The user ID (UID) assigned to processes running inside the container."
)
container_main_gid = graphene.Int(
description="Added in 25.1.0. The primary group ID (GID) assigned to processes running inside the container."
)
container_supplementary_gids = graphene.List(
lambda: graphene.Int,
description="Added in 25.1.0. Supplementary group IDs assigned to processes running inside the container.",
)

groups = graphene.List(lambda: UserGroup)

Expand Down Expand Up @@ -300,6 +310,9 @@ def from_row(
totp_activated_at=row["totp_activated_at"],
sudo_session_enabled=row["sudo_session_enabled"],
main_access_key=row["main_access_key"],
container_uid=row["container_uid"],
container_main_gid=row["container_main_gid"],
container_supplementary_gids=row["container_supplementary_gids"],
)

@classmethod
Expand Down

0 comments on commit 61b7dc9

Please sign in to comment.