Anyware.Shared.Permissions.Catalog 1.0.0

dotnet add package Anyware.Shared.Permissions.Catalog --version 1.0.0
                    
NuGet\Install-Package Anyware.Shared.Permissions.Catalog -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Anyware.Shared.Permissions.Catalog" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anyware.Shared.Permissions.Catalog" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Anyware.Shared.Permissions.Catalog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Anyware.Shared.Permissions.Catalog --version 1.0.0
                    
#r "nuget: Anyware.Shared.Permissions.Catalog, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Anyware.Shared.Permissions.Catalog@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Anyware.Shared.Permissions.Catalog&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Anyware.Shared.Permissions.Catalog&version=1.0.0
                    
Install as a Cake Tool

Anyware.Shared.Permissions.Catalog

Shared string-constants catalog for IAM permission keys that cross service boundaries on the Anyware platform.

Eliminates the duplication between IamGlobalStartupSeeder (which seeds the keys into iam_global.permissions) and downstream services (metadata-engine today) that check the same keys with const declarations of their own. Adding or renaming a metadata permission used to require coordinated edits in two services — now both sides reference one symbol.

This is the interim fix per the architecture review (iam-metadata-engine-artch-risks.md H1). The end state is a permission-descriptor Kafka topic or pull endpoint where each service publishes its own catalog and IAM aggregates. Until then: edit the constants here, bump the package version, and both consumers pick it up.

Categories

  • IamPermissions — keys owned by IAM (iam.tenant.admin, iam.user.*, iam.profile.*, iam.security.*, ...).
  • MetadataPermissions — keys owned by metadata-engine but seeded by IAM (metadata.acl.manage, metadata.records.access, ...).
  • CrossServicePermissions — keys with no clean single-service owner (tasks.create_for_user, crm.deal.delete).

Install

dotnet add package Anyware.Shared.Permissions.Catalog

Usage

using Anyware.Shared.Permissions.Catalog;

if (principals.PermissionKeys.Contains(IamPermissions.TenantAdmin) ||
    principals.PermissionKeys.Contains(MetadataPermissions.AclManage))
{
    return AccessLevel.Admin;
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 143 5/25/2026