chore: consolidate platform split checks
Some checks failed
Dependency Audit / dependency-audit (push) Has been cancelled
Module Matrix / module-matrix (push) Has been cancelled

This commit is contained in:
2026-07-10 12:51:19 +02:00
parent 150b720f12
commit 635d25c74c
216 changed files with 23336 additions and 4077 deletions

View File

@@ -3,6 +3,7 @@ from __future__ import annotations
import base64
import hashlib
from functools import lru_cache
from typing import Protocol, runtime_checkable
from cryptography.fernet import Fernet, InvalidToken
@@ -17,6 +18,21 @@ class SecretDecryptionError(RuntimeError):
pass
CAPABILITY_SECURITY_SECRET_PROVIDER = "security.secretProvider"
@runtime_checkable
class SecretProvider(Protocol):
def store_secret(self, *, scope: str, name: str, value: str) -> str:
...
def read_secret(self, secret_ref: str) -> str | None:
...
def delete_secret(self, secret_ref: str) -> None:
...
def _normalize_fernet_key(value: str) -> bytes:
candidate = value.strip().encode("utf-8")
try: