[docs-scanner] Confusing Datadog auth_token configuration with unexplained <TOKEN> placeholder

Đang mở Phù hợp với người mới
#26,745 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

@O1sumitkumar đang làm issue này rồi.

Từ ngày 27/11/2026.

  • #26790 của @O1sumitkumar — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
85/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, markdown
Lĩnh vực
documentation

Hướng nghiên cứu

Mở content/manuals/scout/explore/metrics-exporter.md và đọc ví dụ Datadog quanh dòng 133 cùng với ghi chú ở dòng ~145, nội dung nhắc người đọc giữ nguyên placeholder <TOKEN>. Viết lại ghi chú đó để giải thích cặp reader/writer: agent đọc token từ tệp đã mount và thay thế nó vào header Authorization tại runtime, vì vậy placeholder phải giữ nguyên dạng literal. Kiểm tra các phần Datadog gần đó xem có liên kết sẵn có tới tài liệu xác thực upstream để dùng lại hay không, sau đó xác nhận rằng trang vẫn build sạch với docs lint/build target.

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

Mô tả

File: content/manuals/scout/explore/metrics-exporter.md

Issue

The Datadog configuration example includes confusing instructions about the <TOKEN> placeholder that would mislead readers trying to set up authentication.

Around line 133, the configuration shows:

auth_token:
  reader:
    type: file
    path: /var/run/secrets/scout-metrics-exporter/token
  writer:
    type: header
    name: Authorization
    value: Bearer <TOKEN>

Followed by (line ~145):

Do not replace the <TOKEN> placeholder in the previous configuration example. It must stay as it is. Only make sure the Docker PAT is correctly mounted into the Datadog agent in the specified filesystem path.

Why this matters

A reader following these instructions would be confused because:

  1. The instruction to leave <TOKEN> as a literal placeholder contradicts normal configuration practices where placeholders are meant to be replaced
  2. The relationship between the reader section (which reads from a file) and the writer section (which uses the placeholder) is never explained
  3. It's unclear how Datadog knows to substitute the file contents into the <TOKEN> placeholder - this mechanism isn't documented

A reader would reasonably ask: "If I'm mounting the token file at the path specified in reader, why do I also need a writer section with a placeholder? How does the placeholder get replaced with the actual token?"

Suggested fix

Either:

  1. Explain the Datadog agent's token substitution mechanism explicitly:

    The reader section tells the Datadog agent to read the token from the specified file path. The writer section tells the agent to inject that token into the Authorization header, replacing the <TOKEN> placeholder. Do not replace <TOKEN> with your actual token - the agent performs this substitution automatically at runtime.

  2. Or, if this is a Datadog-specific feature, add a reference to Datadog documentation that explains this pattern:

    This configuration uses Datadog's auth_token reader/writer pattern. The agent reads the token from the file specified in reader and automatically substitutes it into the <TOKEN> placeholder in the writer section. For more details, see Datadog's authentication documentation.


Found by nightly documentation quality scanner

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

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 docker/docs

Tất cả issue của docker/docs

Issue tương tự

Thêm issue về Documentation

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.