mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
Redact OTEL exporter headers in app-server config responses (#57654)
## Why OTEL exporter headers can contain credentials. Configuration responses exposed these values in effective config, source layers, managed requirements, and write-override metadata. ## What changed Replace header values with `[redacted]` across these responses for log, trace, and metrics exporters while preserving header names. Keep the original values available to runtime exporters, and redact them in debug output. Update protocol schemas and generated client documentation to describe the redacted values. ## Testing Add coverage for effective config and source-layer redaction, managed requirements, and single and batch write-override metadata, including header names containing dots. Extend telemetry integration coverage to verify that runtime requests still carry the configured header value. GitOrigin-RevId: ad24e8b91e615bd36c03c4c0ca205ac64bbd8cbf
This commit is contained in:
committed by
copyberry
parent
727283cea5
commit
bea47c06df
@@ -37,7 +37,7 @@ pub fn build_provider(
|
||||
endpoint: endpoint.clone(),
|
||||
headers: headers
|
||||
.iter()
|
||||
.map(|(k, v)| (k.clone(), v.clone()))
|
||||
.map(|(name, value)| (name.clone(), value.as_str().to_owned()))
|
||||
.collect(),
|
||||
protocol,
|
||||
tls: tls.as_ref().map(|config| OtelTlsSettings {
|
||||
@@ -55,7 +55,7 @@ pub fn build_provider(
|
||||
endpoint: endpoint.clone(),
|
||||
headers: headers
|
||||
.iter()
|
||||
.map(|(k, v)| (k.clone(), v.clone()))
|
||||
.map(|(name, value)| (name.clone(), value.as_str().to_owned()))
|
||||
.collect(),
|
||||
tls: tls.as_ref().map(|config| OtelTlsSettings {
|
||||
ca_certificate: config.ca_certificate.clone(),
|
||||
|
||||
Reference in New Issue
Block a user