Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Update internal repo to support non-root user scenario

未关闭
#3,713 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
docker
领域
ci-cd, devops, release

调研方向

首先将内部 Dockerfile 和 release pipeline YAML 与公开 PR #3520 中的更改进行比较。完成的标准是:同时构建、签名并纳入 SBOM/manifest 和 registry pushes 的 root 与 non-root 标签,scan gate 针对 non-root 镜像,并且 release notes 或 image README 说明两种变体及其注意事项。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
C#
星标
1.5k
派生
371
平均合并
9 天 2 小时
30 天内合并 PR
10

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/data-api-builder 的其他 Issue

查看 Azure/data-api-builder 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。