You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: harden go-processor logging and tokenURL validation #175
Two hardening suggestions from @huang195's review of #171 that are deferred to a follow-up.
1. Reduce log verbosity for sensitive identifiers
clientID (SPIFFE URI), audience, and scopes are currently logged at info level in the go-processor's outbound token acquisition paths ([Token Exchange] and [Client Credentials] log lines). In production, this could leak internal service names and SPIFFE URIs.
Proposed fix: Move these to debug level, or only log them on failure paths where the extra context helps troubleshooting.
The TOKEN_URL environment variable is used without scheme validation. If misconfigured with http://, client credentials would be sent in plaintext. While in-cluster traffic is typically protected by Istio mTLS, defense-in-depth is good practice.
Proposed fix: Log a warning on startup if TOKEN_URL uses http:// instead of https://, or reject it outright with a configuration error.
Activity
huang195 commentedon May 22, 2026
stale issue. no longer relevant