Skip to content

The agent that grows with you

fix(config): read the vendored secret-key fixture BOM-tolerant (windows footgun lint)

Ben Barclay503dcc90a2b6
diff --git a/plugins/config_backends/remote/values.py b/plugins/config_backends/remote/values.py
index 9bdad3bf906..2291f48f4f6 100644
--- a/plugins/config_backends/remote/values.py
+++ b/plugins/config_backends/remote/values.py
@@ -73,7 +73,7 @@ def _wire_key(key: Any, path: Path) -> str:
@lru_cache(maxsize=1)
def _secret_rules() -> Dict[str, Any]:
- data = json.loads(SECRET_KEYS_FIXTURE.read_text(encoding="utf-8"))
+ data = json.loads(SECRET_KEYS_FIXTURE.read_text(encoding="utf-8-sig"))
return {
"secret_keys": frozenset(data["secretKeys"]),
"secret_suffixes": tuple(data["secretKeySuffixes"]),