Add independent component release architecture
Modular container CI / release-build (push) Failing after 12s

This commit is contained in:
faumaray committed 2026-07-29 22:40:35 +03:00
1 parent 458dde05a6
commit 2a533a27f8
18 files changed
+2110 -216

No files matched your search

+25
View File
@@ -213,6 +213,31 @@ class Signer:
return document
class PublicKeyVerifier:
verify = Signer.verify
def __init__(self, public_key: Path, key_id: str) -> None:
self.public_key = regular_file(public_key, "public key")
self.key_id = key_id
self.temporary = tempfile.TemporaryDirectory(
prefix="echoion-component-feed-verify."
)
self.directory = Path(self.temporary.name)
run_openssl(
[
"pkey",
"-pubin",
"-in",
os.fspath(self.public_key),
"-noout",
],
"validate the feed public key",
)
def close(self) -> None:
self.temporary.cleanup()
def validate_https(value: str, label: str) -> str:
parsed = urlsplit(value)
if (