Containers always run as root: image USER is ignored and there is no runAsUser
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
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, go
- Lĩnh vực
- backend, infrastructure
Hướng nghiên cứu
The report names Container API securityContext and image layer unpacking, but no source files or tests. Start by locating container creation, runtime user and group handling, and the image layer extraction path; reproduce with an image declaring USER and the reported postgres or vault cases. Done means image USER is honored, runAsUser and runAsGroup are supported, and image layer ownership is preserved.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On v0.6.0 an image with USER redpanda runs as uid 0 in an actor, on both gVisor and microVM. The Container API has no runAsUser or runAsGroup.
Images whose entrypoint drops to a non-root user show more problems:
- gVisor: the official
postgresimage fails withexec: "/usr/local/bin/docker-entrypoint.sh": stat /usr/local/bin/docker-entrypoint.sh: permission deniedafterCHOWN,SETUIDandSETGIDare added tosecurityContext.capabilities. Without them it fails earlier withchown: changing ownership of '/var/lib/postgresql/data': Operation not permitted.hashicorp/vaultfails atsu-exec: vault: Permission denied. - microVM:
vault server -devfails withopen /home/vault/.vault-token.tmp: permission denied, although that directory belongs to the vault user in the image.
Request
- Honor the image
USER. - Add
securityContext.runAsUserandrunAsGroup. - Keep file ownership from image layers when they are unpacked.
- Ngôn ngữ chính
- Go
- Star
- 6.1k
- Fork
- 676
- Merge trung bình
- 2 ngày 41 phút
- Pull request đã merge (30 ngày)
- 500
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của agent-substrate/substrate
-
Clean up the ko retry testsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/dev-infra area/reliability area/tests kind/cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
agent-substrate/substrate#3461 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
egress: drop the empty-provider check in providerCredentialCó thể đã có người làm @cloudonly đã nhận 7 ngày trước. Đang mởarea/network kind/cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
agent-substrate/substrate#3428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kubectl-ate create actor-template -f <file> fails with useless errorCó thể đã có người làm @cloudonly đã nhận 8 ngày trước. Đang mởarea/cli kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
agent-substrate/substrate#3406 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
k8s-credential-provider manifest is missing ate-otel-config envFrom, failing OTLP metric exports to [::1]:4317 / 127.0.0.1:4317 every 60sCó thể đã có người làm @ericcurtin đã nhận 9 ngày trước. Đang mởarea/dev-infra area/observability area/security kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
agent-substrate/substrate#3282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
filecachegc.runPass suppresses eviction logs when FreedBytes < target and consecutiveShortfalls > 3Có thể đã có người làm @ericcurtin đã nhận 8 ngày trước. Đang mởarea/node area/observability area/storage kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
agent-substrate/substrate#3281 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của agent-substrate/substrate
Issue tương tự
-
Query cache: a failed cache page read leaves the set request's read lock held, so the scan hangsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
turbot/steampipe-plugin-sdk#986 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
router-for-me/CLIProxyAPI#7307 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
betterleaks/betterleaks#460 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
openmcp-project/service-provider-crossplane#330 ·
Maintainer thường phản hồi trong vòng 1 ngày