lablup / lablup/backend.ai

Read images within the scope they belong to, not system-wide

Open
#13,882 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

이미지 읽기가 전부 global 모양이고 SUPERADMIN 관문 뒤에 있다. v2 배선에는 일반 사용자가 이미지를 고를 경로가 없다.

카탈로그 확인: image entity의 읽기 6건(get_all_images, get_image_by_id, get_image_by_identifier, get_images_by_canonicals, search_images, search_aliases)이 모두 global + permission이다. image와 artifact에는 public 관문이 한 건도 없다. 비교하면 사용자가 골라야 하는 다른 목록들 — resource_preset, resource_group, domain, runtime_variant, 슬롯 종류, prometheus query preset — 은 public 읽기를 갖고 있다. 아티팩트는 슈퍼관리자 기능이라 지금이 의도한 모양이지만 이미지는 아니다.

바라는 모양: 이미지를 scope 기준으로 조회한다. 프로젝트 등 이미지가 속한 scope를 받아 그 안에서 읽는 scope 모양 액션으로 바꾸고, 전역 목록은 슈퍼관리자용으로 남긴다.

멤버십을 어디에 기록하는지는 BA-7259가 다룬다. 이 이슈는 읽기 동작의 모양과 관문을 다룬다.

JIRA Issue: BA-7437

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the six image read actions named in the catalog and the v2 wiring, then compare them with the public reads for resource_preset, resource_group, domain, runtime_variant, slot types, and Prometheus query presets. Done means image reads accept the owning scope for ordinary users while global listing remains restricted to superadmins; membership recording remains covered by BA-7259.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authorization, backend, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.