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:
21
src/SbomService/StellaOps.SbomService/Auth/SbomPolicies.cs
Normal file
21
src/SbomService/StellaOps.SbomService/Auth/SbomPolicies.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) StellaOps. Licensed under the BUSL-1.1.
|
||||
|
||||
namespace StellaOps.SbomService.Auth;
|
||||
|
||||
/// <summary>
|
||||
/// Named authorization policy constants for the SBOM service.
|
||||
/// SbomService uses the internal HeaderAuthenticationHandler (x-tenant-id header) which
|
||||
/// does not issue scope claims. Policies require an authenticated tenant context.
|
||||
/// Scope enforcement is applied at the infrastructure level via the header auth scheme.
|
||||
/// </summary>
|
||||
internal static class SbomPolicies
|
||||
{
|
||||
/// <summary>Policy for querying SBOM data (paths, versions, ledger, lineage). Requires authenticated tenant context.</summary>
|
||||
public const string Read = "Sbom.Read";
|
||||
|
||||
/// <summary>Policy for mutating SBOM data (upload, entrypoints, orchestrator). Requires authenticated tenant context.</summary>
|
||||
public const string Write = "Sbom.Write";
|
||||
|
||||
/// <summary>Policy for internal/operational endpoints (events, backfill, retention). Requires authenticated tenant context.</summary>
|
||||
public const string Internal = "Sbom.Internal";
|
||||
}
|
||||
Reference in New Issue
Block a user