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

Offen Anfängerfreundlich
#26,745 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@O1sumitkumar arbeitet bereits daran.

Seit 27.11.2026.

  • #26790 von @O1sumitkumar — offen

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
85/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
docker, markdown
Bereich
documentation

Rechercherichtung

Öffne content/manuals/scout/explore/metrics-exporter.md und lies das Datadog-Beispiel um Zeile 133 zusammen mit dem Hinweis bei Zeile ~145, der Lesende dazu auffordert, den Platzhalter <TOKEN> beizubehalten. Schreibe diesen Hinweis so um, dass das Paar reader/writer erklärt wird: Der Agent liest den Token aus der gemounteten Datei und setzt ihn zur Laufzeit in den Authorization-Header ein, daher muss der Platzhalter wörtlich bleiben. Prüfe nahe gelegene Datadog-Abschnitte auf einen vorhandenen Link zur Upstream-Auth-Dokumentation, den du wiederverwenden kannst, und bestätige dann, dass die Seite mit dem docs lint/build target weiterhin sauber baut.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Markdown
Sterne
4.7k
Forks
8.6k
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
188

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docker/docs

Alle Issues in docker/docs

Ähnliche Issues

Weitere Issues zu Documentation

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.