Documentation
¶
Overview ¶
Package attribution carries free-text caller attribution (who a request acts on behalf of) across panda's hops: CLI -> server -> proxy. Values are untrusted and audit-only — they must never influence authorization.
Index ¶
Constants ¶
View Source
const EnvVar = "PANDA_ON_BEHALF_OF"
EnvVar is the environment variable callers (e.g. chat agents acting for a human user) set per invocation to attribute their requests.
View Source
const Header = "X-Panda-On-Behalf-Of"
Header is the HTTP header that carries attribution between panda components.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the attribution value carried by the context, or an empty string when none is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.