Sandboxes: document precedence for overlapping service and custom credentials
Maintainer thường phản hồi trong vòng 1 ngày
@dvdksn đang làm issue này rồi.
Từ ngày 20/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
I can't find what I'm looking for
Description
The credentials guide explains service-based credential injection and custom-secret placeholder replacement separately, but does not explain how they interact when both target the same host and request header.
For example, a local sandbox might have a built-in github service secret for read-only access and a custom secret for a different token intended to write to one repository. Both target github.com and api.github.com, and a request can contain the custom placeholder in its Authorization header.
The documented precedence between credential sources for the same service does not establish precedence between a service-secret injection rule and custom-secret substitution. Readers cannot tell which credential will be sent, whether substitution and header replacement have a defined order, or whether an agent can select between credentials per request.
Location
- https://docs.docker.com/ai/sandboxes/configuration/credentials/#how-credential-injection-works
- https://docs.docker.com/ai/sandboxes/configuration/credentials/#custom-secrets
Suggestion
Document the supported behavior for overlapping credentials in local sandboxes:
- Which credential is used when a service rule and a custom secret match the same host and header, including when the request contains a custom placeholder.
- How global and sandbox-scoped credentials affect that result. Distinguish same-service scope precedence from collisions between different credential mechanisms.
- Whether two custom secrets can target the same host and how their placeholders select a credential, if supported.
- Whether per-request selection between a built-in service credential and a custom credential is supported. If it is not, state the limitation and show a supported alternative for workflows requiring different credentials.
Add a small precedence table and a tested example using read-only and repository-specific write credentials. Explain which requests receive each credential without exposing real token values. Confirm the behavior with the implementation; do not infer collision precedence from the existing same-service precedence statement. State local/cloud differences where relevant.
- Ngôn ngữ chính
- Markdown
- Star
- 4.7k
- Fork
- 8.6k
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 188
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 docker/docs
-
Three code examples do not parse (HttpService, OAuth 2.0 flow, Scout config.json on Windows)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[docs-scanner] Confusing temporal framing in company creation stepsCó thể đã có người làm @sahithib20 đã nhận 2 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
docker/docs#26797 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
curl commands should be escapedĐang mởstatus/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
missing a partĐang mởstatus/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày