Add determinism tests for verdict artifact generation and update SHA256 sums script
- Implemented comprehensive tests for verdict artifact generation to ensure deterministic outputs across various scenarios, including identical inputs, parallel execution, and change ordering. - Created helper methods for generating sample verdict inputs and computing canonical hashes. - Added tests to validate the stability of canonical hashes, proof spine ordering, and summary statistics. - Introduced a new PowerShell script to update SHA256 sums for files, ensuring accurate hash generation and file integrity checks.
This commit is contained in:
@@ -1,17 +1,46 @@
|
||||
# Scopes and Roles — Draft Skeleton (2025-12-05 UTC)
|
||||
# Scopes and Roles
|
||||
|
||||
Status: draft placeholder. Inputs pending: DVDO0110 scope grammar.
|
||||
This document defines the **scope taxonomy** and how scopes map to roles across StellaOps. It is intentionally cross-cutting and does not attempt to list every module-specific scope; module dossiers and gateway contracts are the source of truth for per-surface requirements.
|
||||
|
||||
## Scope Grammar
|
||||
- Syntax overview; examples (tenant/org/project/workspace).
|
||||
## Terms
|
||||
|
||||
## Roles & Permissions
|
||||
- Core roles (admin, auditor, operator, viewer) — to confirm.
|
||||
- Mapping to scopes and imposed rule reminder.
|
||||
- **Scope:** an OAuth2/OIDC scope string granted to a client/user token and enforced by the gateway and services.
|
||||
- **Role:** a human-friendly grouping of scopes, assigned per tenant (often via RBAC in Authority/Console).
|
||||
- **ABAC claims:** optional attribute filters that constrain a token further (e.g., environment, namespace, project).
|
||||
|
||||
## Token / Session Handling
|
||||
- How scopes flow through tokens and sessions.
|
||||
## Scope Naming Conventions
|
||||
|
||||
## Open TODOs
|
||||
- Fill role matrix when DVDO0110 lands.
|
||||
- Add ABAC overlay pointers once defined.
|
||||
Scopes follow a predictable pattern:
|
||||
|
||||
- `<area>:<verb>`
|
||||
- Verbs are small and consistent: `read`, `write`, `approve`, `simulate`, `audit`, `admin`.
|
||||
|
||||
Examples that appear across current contracts and module dossiers:
|
||||
|
||||
- Vulnerability Explorer: `vuln:view`, `vuln:investigate`, `vuln:operate`, `vuln:audit`
|
||||
- Exception governance: `exception:read`, `exception:write`, `exception:approve`
|
||||
- Policy: `policy:read`, `policy:simulate`
|
||||
- VEX ingestion: `vex.read`, `vex.admin`
|
||||
|
||||
## Typical Role Shapes (Tenant-Local)
|
||||
|
||||
Exact role names vary per deployment, but the intent is stable:
|
||||
|
||||
- **Viewer:** read-only access to findings/evidence for a tenant.
|
||||
- **Operator:** can triage findings and create workflow objects (comments, assignments, exports).
|
||||
- **Approver:** can approve/reject workflow objects that change gating (exceptions, waivers) for a tenant.
|
||||
- **Auditor:** can access audit exports, histories, and verification surfaces.
|
||||
- **Admin:** tenant administration (RBAC, client credentials, quotas, configuration).
|
||||
|
||||
## Enforcement Model (Where Scopes Are Checked)
|
||||
|
||||
- **Authority** issues tokens and embeds scopes (and optional ABAC claims).
|
||||
- **Gateway** (when present) performs consistent scope enforcement and tenant routing.
|
||||
- **Services** validate tenant context and enforce scope checks at endpoint boundaries.
|
||||
- **Service-to-service** calls may use short-lived, sender-constrained tokens (OpTok/DPoP/mTLS) in addition to scopes.
|
||||
|
||||
## References
|
||||
|
||||
- Tenancy model and isolation: `docs/security/tenancy-overview.md`
|
||||
- Exceptions API entry point: `docs/api/exceptions.md`
|
||||
- Policy + Exceptions gateway contract: `docs/api/gateway/policy-exceptions.md`
|
||||
|
||||
Reference in New Issue
Block a user