Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Update internal repo to support non-root user scenario

Đang mở
#3,713 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker
Lĩnh vực
ci-cd, devops, release

Hướng nghiên cứu

Bắt đầu bằng cách so sánh Dockerfile nội bộ và YAML của release pipeline với các thay đổi trong PR công khai #3520. Hoàn tất có nghĩa là cả tag root và non-root đều được build, ký, đưa vào SBOM/manifest và các registry push, scan gate nhắm đến image non-root, và release notes hoặc image README mô tả cả hai biến thể cùng các điểm cần lưu ý của chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Related to: https://github.com/Azure/data-api-builder/issues/3514

Background

Public PR Azure/data-api-builder#3520 restructured the sample Dockerfile into a multi-target build with two runtime variants:

  • runtime (default / last stage) — runs as root, backwards-compatible with today's published image.
  • runtime-nonroot (opt-in via --target runtime-nonroot) — runs as USER $APP_UID (UID 1654), satisfies scanners (e.g. Checkmarx One) that require a non-root Config.User.

The public Dockerfile is only a customer sample. The image we actually publish is built from the internal repo, which has its own Dockerfile + release pipeline YAML — both need updating to publish the second tag.

Tasks

  • Update the internal Dockerfile to match #3520 (multi-stage runtime-base → runtime / runtime-nonroot, USER $APP_UID, non-recursive chown $APP_UID:$APP_UID /App/logs).
  • Update the pipeline to build + push both images: root (:<version>, :latest) and non-root (--target runtime-nonroot → :<version>-nonroot, :latest-nonroot).
  • Run signing, SBOM/manifest, and registry push for both tags.
  • Point the container scan gate at the -nonroot image.
  • Update release notes / image README with the two variants and non-root consumer caveats.
Ngôn ngữ chính
C#
Star
1.5k
Fork
372
Merge trung bình
9 ngày 1 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/data-api-builder

Tất cả issue của Azure/data-api-builder

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.