From f5e697347b5acb45c641ff574797f391465b8a1e Mon Sep 17 00:00:00 2001 From: Reece Browne <74901996+reecebrowne@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:13:01 +0100 Subject: [PATCH] Policies: drop the Pro-license gate from the policy API (#6645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `PolicyController` was annotated `@PremiumEndpoint` (requires a Pro-or-higher server license). Policies don't need a server-license gate: - On SaaS the server runs in Pro mode, so the check is always satisfied anyway — it gates nothing in practice. - Access is already governed by team scoping (#6632) plus the per-user / guest gates. So the annotation is dead weight and misleading. This removes it (and its import) — a 2-line change. ## Verification - `:proprietary:compileJava` succeeds; spotless clean. No other premium gate on policy classes. --- .../proprietary/policy/controller/PolicyController.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/proprietary/src/main/java/stirling/software/proprietary/policy/controller/PolicyController.java b/app/proprietary/src/main/java/stirling/software/proprietary/policy/controller/PolicyController.java index 1150348a6..a28fb47a4 100644 --- a/app/proprietary/src/main/java/stirling/software/proprietary/policy/controller/PolicyController.java +++ b/app/proprietary/src/main/java/stirling/software/proprietary/policy/controller/PolicyController.java @@ -52,7 +52,6 @@ import stirling.software.proprietary.policy.model.PolicyRunStatus; import stirling.software.proprietary.policy.model.PolicyRunView; import stirling.software.proprietary.policy.progress.PolicyProgressListener; import stirling.software.proprietary.policy.store.PolicyStore; -import stirling.software.proprietary.security.config.PremiumEndpoint; /** * Policy CRUD plus pipeline runs (stored or ad-hoc). Runs are async: returns a run id, poll {@code @@ -62,7 +61,6 @@ import stirling.software.proprietary.security.config.PremiumEndpoint; @RestController @RequestMapping("/api/v1/policies") @Hidden -@PremiumEndpoint @RequiredArgsConstructor @Tag(name = "Policies", description = "Run tool pipelines on the backend") public class PolicyController {