Enforce starintel-biz entitlements and quotas in StarIntel authorization #125
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/starintel-server#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Integrate the entitlement projection from
starintel-labs/starintel-biz#4 intostarintel-serverso paid/trial/grace/suspended access is enforced through one narrow authorization boundary without coupling server code to Stripe or crypto providers.Dependencies
starintel-labs/starintel-biz#1 — canonical billing statestarintel-labs/starintel-biz#4 — entitlement/quota projectionRequirements
starintel-bizentitlements as an input to authorization, not as a replacement for identity/scopes/tenant checks.Capability discovery
Public
/api/v1/capabilitiesmay advertise that a feature exists and whether authentication/paid entitlement is generally required, but must not disclose an individual account's private billing state. Authenticated account-specific entitlement/status endpoints, if needed, require an explicit protected contract.Tests / acceptance
Execution mode — AUTO-RAGE
Run the full ADARD/ADADR loop autonomously: inspect current authorization/capability/integration architecture plus biz #4 and server #124; design and record entitlement precedence/cache/failure semantics; adversarial review + privilege-bypass/stale-cache/account-isolation threat model; autonomous decision gate; TDD-first implementation; exact-head service-backed verification; push a focused branch and open/update a PR targeting
master. Stop only for a genuinely unresolved requirement/security blocker, inaccessible dependency, or failed verification gate. Do not ask for approval between phases.The billing/entitlement architecture and operator documentation is tracked in
starintel-labs/starintel-biz#5, including the billing-state -> entitlement -> StarIntel authorization boundary. Keep server-side behavior and public/private capability documentation synchronized with that contract.