feat: add policy service integration for authz checks using feature flags
This MR introduces the ability to interact with policy service built on Open Policy Agent
- Policy Service interaction is enabled only when feature flag
FEATURE_FLAG_POLICY_SVC_INTERACTION
is set to true in the environment. When this is set to true, the required env variable isDES_POLICY_SERVICE_HOST
- Adds the ability to insert policies with policy-service. These policies would be used for SDMS AuthZ
- Authorization would succeed when the policy service evaluates the user membership in input ACL groups. The
evaluatePolicy
method achieves this.