Files
ocis/services/proxy/pkg/server
Roman PerekhodandClaude Opus 5.5 c564134624 fix(proxy): [OCSRE-1629] mask all secret values in the debug output
go-masker copies a field without a mask tag unchanged, also a nested
struct. A mask:"password" tag thus has an effect only when every
parent field on the path has mask:"struct". Several parent fields did
not have this tag, and some secret fields had no mask tag.

- Add mask:"struct" to the proxy fields OIDC, OIDC.UserinfoCache,
  PreSignedURL, PreSignedURL.SigningKeys, ServiceAccount and Events,
  and to the shared Commons.Cache field.
- Add mask:"password" to the AuthPassword fields of the proxy and of
  the shared cache, and to ServiceAccountSecret.
- Add a test that sets a marker in every secret field of the proxy
  config and checks that the debug output does not show it. The test
  also fails when a secret-like field has no mask:"password" tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:23:56 +02:00
..
2023-01-13 15:29:14 +01:00