Skip to content

🐛 #734

Description

@davidhadas

Describe the bug

the log includes the secret PAT

(base) davidhadas@MacBook-Pro-3 kagenti % kubectl logs -n team1 github-tool-79c7886bb4-5ttrk
time=2026-07-19T09:03:01.529Z level=INFO msg="Using MCP Server" UPSTREAM_MCP="" mcpServerURL=https://api.githubcopilot.com/mcp/
time=2026-07-19T09:03:01.529Z level=INFO msg="Using Authorization header" initAuthHeader="Bearer github_pat_11ABAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
...

Steps To Reproduce

This happened to me when the PAT was already obsolete, but I suspect the tool always log it.

Expected Behavior

Never log secrets

Kagenti Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    Status
    New/ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions