From 6a052fec1b3bd28ffab6615111cf4df164bd7726 Mon Sep 17 00:00:00 2001 From: Narendran Raghavan Date: Mon, 21 Sep 2026 13:39:48 -0700 Subject: [PATCH] test: make Basic auth fixture explicitly synthetic Signed-off-by: Narendran Raghavan --- tests/unit/test_llm_provenance.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_llm_provenance.py b/tests/unit/test_llm_provenance.py index 9f36903ee..0eab231ad 100644 --- a/tests/unit/test_llm_provenance.py +++ b/tests/unit/test_llm_provenance.py @@ -5,6 +5,7 @@ from __future__ import annotations +import base64 import json import pytest @@ -429,7 +430,11 @@ def test_public_projection_drops_unknown_fields_and_redacts_unsafe_labels() -> N "hf_fake-value", "AIza-fake-value", "Bearer synthetic-secret-token-123456", - "Basic c3ludGhldGljOnNlY3JldA==", + # Build a realistic Basic header from explicit dummy credentials. + pytest.param( + "Basic " + base64.b64encode(b"synthetic-user:synthetic-password").decode("ascii"), + id="synthetic-basic-auth", + ), "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzeW50aGV0aWMifQ.fake_signature", "ewogICJhbGciOiAibm9uZSIKfQ.eyJzdWIiOiJzeW50aGV0aWMifQ.", "0123456789abcdef" * 2,