[docs-scanner] Confusing Datadog auth_token configuration with unexplained <TOKEN> placeholder
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 85/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- docker, markdown
- Domínio
- documentation
Direção de pesquisa
Abra content/manuals/scout/explore/metrics-exporter.md e leia o exemplo do Datadog por volta da linha 133 junto com a nota na linha ~145 que instrui os leitores a manter o placeholder <TOKEN>. Reescreva essa nota para explicar o par reader/writer: o agente lê o token do arquivo montado e o substitui no cabeçalho Authorization em tempo de execução, então o placeholder deve permanecer literal. Verifique seções próximas do Datadog em busca de um link existente para a documentação de autenticação upstream a ser reutilizado e, em seguida, confirme que a página ainda é compilada sem problemas com o docs lint/build target.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Markdown
- Estrelas
- 4.7k
- Forks
- 8.6k
- Merge médio
- 2d 8h
- PRs com merge (30d)
- 188
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de docker/docs
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 91/100
Mantenedores costumam responder em até 1 dia
-
status/triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
[docs-scanner] Confusing temporal framing in company creation stepsTalvez já em andamento @sahithib20 assumiu há 2 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 89/100
docker/docs#26797 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
status/triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
Mantenedores costumam responder em até 1 dia
-
missing a partAbertastatus/triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
Todas as issues de docker/docs
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
nicobailon/pi-subagents#3420 ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 2 dias
-
config easy first-contributor first-contributors good first issue help wanted toml up-for-grabs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
fork-commit-merge/fork-commit-merge#8727 ·
Mantenedores costumam responder em até 1 dia
-
documentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 5 dias