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

Ouverte Adaptée aux débutants
#26,745 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@O1sumitkumar y travaille déjà.

Depuis le 27/11/2026.

  • #26790 par @O1sumitkumar — ouverte

Évaluation

Difficulté
1/5
Temps estimé
Moins d'une heure
Accessibilité débutants
85/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
docker, markdown
Domaine
documentation

Piste de recherche

Ouvre content/manuals/scout/explore/metrics-exporter.md et lis l’exemple Datadog autour de la ligne 133 ainsi que la note à la ligne ~145 qui demande aux lecteurs de conserver le placeholder <TOKEN>. Réécris cette note pour expliquer la paire reader/writer : l’agent lit le token depuis le fichier monté et le substitue dans l’en-tête Authorization à l’exécution, donc le placeholder doit rester littéral. Vérifie dans les sections Datadog voisines s’il existe déjà un lien vers la documentation d’authentification upstream à réutiliser, puis confirme que la page se construit toujours proprement avec le docs lint/build target.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Markdown
Étoiles
4.7k
Forks
8.6k
Merge moyen
2 j 8 h
PR mergées (30 j)
188

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de docker/docs

Toutes les issues de docker/docs

Issues similaires

Plus d'issues Documentation

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.