Plan Tier Feature Authorization
Verify that paid tier boundaries are enforced server-side, so every free, trial or lapsed plan fails closed at the operation level
Use when: features are gated by subscription tier, trial state, feature flags or seats rather than by ordinary roles
Avoid when: the product charges nothing and has no tiering worth modeling, in which case the tier dimension is empty
Procedure
- List every feature-boundary dimension: plan, trial, seat count, feature flag, region lock and grace period.
- Create or obtain environments in your own accounts representing each gating state, and document the underlying state field.
- Call each gated operation per state and record status, response shape and any content that leaked anyway.
- Test boundary transitions: expired trial, downgraded plan, exhausted seat and disabled flag, after each change re-call.
- Verify checks live in the operation rather than in pricing summary endpoints only.
- Record enforcement per feature, since one tier feature frequently lives at three different layers simultaneously.
Signals
- A free plan can trigger a paid feature via its operation, even though no pricing link on the free plan exposes it.
- Trial or grace state blocks interactive use but not an operation that writes in the same resource family.
- Feature flag flips change client UI but leave the operation itself open, so a stale client still gets the feature.
- Seat exhaustion blocks creation yet export or read of each over-limit seat's data still succeeds.
Patterns
1. Tier probe
plan=free -> POST /api/paid-feature -> 200 with data -> tier not enforced operationally
2. Flag audit
flag=beta-copilot off: UI hides, operation gated=no -> operation-level check missing
3. Result row
feature=pdf-export states={free,trial,paid} operations=3 enforced=trial-only=2
Pitfalls
- Equating tier with visibility and forgetting operations entirely, the exact surface the tier must actually guard.
- Testing a paid tier only, never the states around it, so the boundary transitions remain unproven.
- Ignoring time-limited states such as trials or might-cancel plans, which reset boundaries the day after they restart.
Done when
- Each gated feature has a per-state demonstration covering the operation layer, not just the UI.
- Boundary transitions re-verified after change, and no state produces server behavior contradicting its pricing promise.
References
1---2name: plan-tier-feature-authorization3description: "Verify that paid tier boundaries are enforced server-side, so every free, trial or lapsed plan fails closed at the operation level. Use when features are gated by subscription tier, trial state, feature flags or seats rather than by ordinary roles"4pack: authzmap5version: 1.0.06category: api-security7tags: [tiers, billing, feature-flags]8metadata:9 source: https://skillmd.com/skills/wsh7ash/plan-tier-feature-authorization10---1112# Plan Tier Feature Authorization1314> Verify that paid tier boundaries are enforced server-side, so every free, trial or lapsed plan fails closed at the operation level1516**Use when:** features are gated by subscription tier, trial state, feature flags or seats rather than by ordinary roles1718**Avoid when:** the product charges nothing and has no tiering worth modeling, in which case the tier dimension is empty1920## Procedure21221. List every feature-boundary dimension: plan, trial, seat count, feature flag, region lock and grace period.232. Create or obtain environments in your own accounts representing each gating state, and document the underlying state field.243. Call each gated operation per state and record status, response shape and any content that leaked anyway.254. Test boundary transitions: expired trial, downgraded plan, exhausted seat and disabled flag, after each change re-call.265. Verify checks live in the operation rather than in pricing summary endpoints only.276. Record enforcement per feature, since one tier feature frequently lives at three different layers simultaneously.2829## Signals3031- A free plan can trigger a paid feature via its operation, even though no pricing link on the free plan exposes it.32- Trial or grace state blocks interactive use but not an operation that writes in the same resource family.33- Feature flag flips change client UI but leave the operation itself open, so a stale client still gets the feature.34- Seat exhaustion blocks creation yet export or read of each over-limit seat's data still succeeds.3536## Patterns3738**1. Tier probe**3940```text41plan=free -> POST /api/paid-feature -> 200 with data -> tier not enforced operationally42```4344**2. Flag audit**4546```text47flag=beta-copilot off: UI hides, operation gated=no -> operation-level check missing48```4950**3. Result row**5152```text53feature=pdf-export states={free,trial,paid} operations=3 enforced=trial-only=254```5556## Pitfalls5758- Equating tier with visibility and forgetting operations entirely, the exact surface the tier must actually guard.59- Testing a paid tier only, never the states around it, so the boundary transitions remain unproven.60- Ignoring time-limited states such as trials or might-cancel plans, which reset boundaries the day after they restart.6162## Done when6364- Each gated feature has a per-state demonstration covering the operation layer, not just the UI.65- Boundary transitions re-verified after change, and no state produces server behavior contradicting its pricing promise.6667## References6869- [OWASP - feature gating guidance](https://cheatsheetseries.owasp.org/)70- [PortSwigger - access control](https://portswigger.net/web-security/access-control)