Files
moloapp/src/supplychain/attest/Signer.hpp
T
retoor 3c4334cec9 feat: implement MoloApp plans 01-15 with integration
Full C++23 framework tree: runtime, observability, security,
data, app, realtime, supervisor, clients, CLI, example plus
enterprise tenancy, audit, operability, governance,
supplychain. Postgres via docker compose for tests.
2026-10-23 18:20:04 +02:00

22 lines
629 B
C++

#pragma once
#include <string>
#include <string_view>
namespace molo::supply::attest {
// cosign sign-blob wrapper (keyless): runs
// `cosign sign-blob --yes --bundle <bundle> <blob>` and reports failures with
// capped output. This is the only supply-chain file allowed to spawn a shell.
// Tests set MOLO_FAKE_COSIGN=1 for a deterministic offline fake bundle.
class Signer {
public:
Signer() = delete;
static bool sign(const std::string& blob_path, const std::string& bundle_path,
std::string& error);
static std::string quote_path(std::string_view path);
};
} // namespace molo::supply::attest