wip: doctor/cli/docs/api to vector db consolidation; api hardening for descriptions, tenant, and scopes; migrations and conversions of all DALs to EF v10
This commit is contained in:
20
src/__Libraries/StellaOps.Verdict/Api/VerdictPolicies.cs
Normal file
20
src/__Libraries/StellaOps.Verdict/Api/VerdictPolicies.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) StellaOps. Licensed under the BUSL-1.1.
|
||||
|
||||
namespace StellaOps.Verdict.Api;
|
||||
|
||||
/// <summary>
|
||||
/// Named authorization policy constants for Verdict endpoints.
|
||||
/// Consuming services must register these policies (e.g., via AddStellaOpsScopePolicy)
|
||||
/// mapping them to the appropriate scopes (evidence:read, evidence:create).
|
||||
/// </summary>
|
||||
public static class VerdictPolicies
|
||||
{
|
||||
/// <summary>Policy for reading verdicts, querying, replaying, verifying, and downloading. Maps to evidence:read scope.</summary>
|
||||
public const string Read = "Verdict.Read";
|
||||
|
||||
/// <summary>Policy for creating verdicts and building deterministic verdicts via CGS. Maps to evidence:create scope.</summary>
|
||||
public const string Create = "Verdict.Create";
|
||||
|
||||
/// <summary>Policy for administrative verdict operations such as deleting expired verdicts. Maps to verdict:admin scope.</summary>
|
||||
public const string Admin = "Verdict.Admin";
|
||||
}
|
||||
Reference in New Issue
Block a user