lablup / lablup/backend.ai

Apply allowlist to the resource group query

Open
#1,611 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

### What Operating System(s) are you seeing this problem on?

Linux (x86-64)

### Backend.AI version

2ece7bf

### Describe the bug

Resource group is accessible by white list basis, and if it is specified in one of domain, project, and/or keypair policies, users belonging to the hierarchical layer can access the resource group. But when I query with `scaling_groups_for_user_group` (gql), only resource groups that belong to the project are shown even if I allowed that resource group to the domain.

Let's apply white list to the resource group gql query too.

### To Reproduce

Set allowed resource groups only for keypairs or domains and query `scaling_groups_for_user_group`.

### Expected Behavior

include keypair, domain resource groups

### Anything else?

_No response_

JIRA Issue: BA-193

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.