Policies: drop the Pro-license gate from the policy API (#6645)

`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.
This commit is contained in:
Reece Browne
2026-06-12 13:13:01 +01:00
committed by GitHub
parent 4e880c7510
commit f5e697347b
@@ -52,7 +52,6 @@ import stirling.software.proprietary.policy.model.PolicyRunStatus;
import stirling.software.proprietary.policy.model.PolicyRunView; import stirling.software.proprietary.policy.model.PolicyRunView;
import stirling.software.proprietary.policy.progress.PolicyProgressListener; import stirling.software.proprietary.policy.progress.PolicyProgressListener;
import stirling.software.proprietary.policy.store.PolicyStore; 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 * 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 @RestController
@RequestMapping("/api/v1/policies") @RequestMapping("/api/v1/policies")
@Hidden @Hidden
@PremiumEndpoint
@RequiredArgsConstructor @RequiredArgsConstructor
@Tag(name = "Policies", description = "Run tool pipelines on the backend") @Tag(name = "Policies", description = "Run tool pipelines on the backend")
public class PolicyController { public class PolicyController {