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

Aberta Para iniciantes
#26,745 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@O1sumitkumar já está trabalhando nisso.

Desde 27/11/2026.

  • #26790 de @O1sumitkumar — aberto

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:

  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

Linguagem predominante
Markdown
Estrelas
4.7k
Forks
8.6k
Merge médio
2d 8h
PRs com merge (30d)
188

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de docker/docs

Todas as issues de docker/docs

Issues semelhantes

Mais issues de Documentation

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.