save checkpoint: save features
This commit is contained in:
@@ -283,11 +283,16 @@ internal static class Program
|
||||
services.AddOciImageInspector(configuration.GetSection("OciRegistry"));
|
||||
|
||||
// Sprint 040-01: OCI attestation attacher (ORAS-based push/delete for attestation attachment)
|
||||
services.AddHttpClient<StellaOps.Attestor.Oci.Services.IOciRegistryClient, OciAttestationRegistryClient>(client =>
|
||||
const string ociAttestorClientName = "stellaops-cli.oci-attestor";
|
||||
services.AddHttpClient(ociAttestorClientName, client =>
|
||||
{
|
||||
client.Timeout = TimeSpan.FromMinutes(5);
|
||||
client.DefaultRequestHeaders.UserAgent.ParseAdd("StellaOps.Cli/attest-attach");
|
||||
});
|
||||
services.AddTransient<StellaOps.Attestor.Oci.Services.IOciRegistryClient>(serviceProvider =>
|
||||
new OciAttestationRegistryClient(
|
||||
serviceProvider.GetRequiredService<IHttpClientFactory>().CreateClient(ociAttestorClientName),
|
||||
serviceProvider.GetRequiredService<ILogger<OciAttestationRegistryClient>>()));
|
||||
services.AddTransient<IOciAttestationAttacher, OrasAttestationAttacher>();
|
||||
|
||||
// CLI-DIFF-0001: Binary diff predicates and native analyzer support
|
||||
|
||||
Reference in New Issue
Block a user