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.
22 lines
629 B
C++
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
|