license switch agpl -> busl1, sprints work, new product advisories
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Licensed under AGPL-3.0-or-later. Copyright (C) 2024-2026 StellaOps Contributors.
|
||||
// Licensed under BUSL-1.1. Copyright (C) 2024-2026 StellaOps Contributors.
|
||||
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -52,7 +52,6 @@ internal static class RekorBackendResolver
|
||||
? null
|
||||
: new Uri(options.TileBaseUrl, UriKind.Absolute),
|
||||
LogId = options.LogId,
|
||||
PreferTileProofs = options.PreferTileProofs,
|
||||
ProofTimeout = TimeSpan.FromMilliseconds(options.ProofTimeoutMs),
|
||||
PollInterval = TimeSpan.FromMilliseconds(options.PollIntervalMs),
|
||||
MaxAttempts = options.MaxAttempts
|
||||
@@ -72,9 +71,11 @@ internal static class RekorBackendResolver
|
||||
return version.Trim().ToUpperInvariant() switch
|
||||
{
|
||||
"AUTO" => RekorLogVersion.Auto,
|
||||
"V1" or "1" => RekorLogVersion.V1,
|
||||
"V2" or "2" => RekorLogVersion.V2,
|
||||
_ => RekorLogVersion.Auto
|
||||
"V1" or "1" => throw new InvalidOperationException(
|
||||
"Rekor v1 is no longer supported. Use Auto or V2."),
|
||||
_ => throw new InvalidOperationException(
|
||||
$"Unsupported Rekor version '{version}'. Use Auto or V2.")
|
||||
};
|
||||
}
|
||||
|
||||
@@ -84,6 +85,6 @@ internal static class RekorBackendResolver
|
||||
public static bool ShouldUseTileProofs(RekorBackend backend)
|
||||
{
|
||||
return backend.Version == RekorLogVersion.V2 ||
|
||||
(backend.Version == RekorLogVersion.Auto && backend.PreferTileProofs);
|
||||
backend.Version == RekorLogVersion.Auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user