[docs-scanner] Confusing Datadog auth_token configuration with unexplained <TOKEN> placeholder
Les mainteneurs répondent en général sous 1 jour
É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:
- The instruction to leave
<TOKEN>as a literal placeholder contradicts normal configuration practices where placeholders are meant to be replaced - The relationship between the
readersection (which reads from a file) and thewritersection (which uses the placeholder) is never explained - 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:
-
Explain the Datadog agent's token substitution mechanism explicitly:
The
readersection tells the Datadog agent to read the token from the specified file path. Thewritersection 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. -
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
readerand automatically substitutes it into the<TOKEN>placeholder in thewritersection. 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
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de docker/docs
-
Three code examples do not parse (HttpService, OAuth 2.0 flow, Scout config.json on Windows)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 91/100
Les mainteneurs répondent en général sous 1 jour
-
status/triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
[docs-scanner] Confusing temporal framing in company creation stepsPeut-être pris @sahithib20 l’a pris il y a 2 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 89/100
docker/docs#26797 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
curl commands should be escapedOuvertestatus/triage
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour
-
missing a partOuvertestatus/triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de docker/docs
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nicobailon/pi-subagents#3420 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 2 jours
-
config easy first-contributor first-contributors good first issue help wanted toml up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
fork-commit-merge/fork-commit-merge#8727 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 5 jours