import {
  DEFAULT_SECURITY_POLICY,
  DEFAULT_SUPERVISION_POLICY,
  SecurityRealm,
} from '@open-matrix/core';
import { createPolicyEngine } from '@open-matrix/core/core/security/PolicyPresets';

export function createRunnerSecurityRealm(): SecurityRealm {
  return new SecurityRealm(
    DEFAULT_SUPERVISION_POLICY,
    DEFAULT_SECURITY_POLICY,
    undefined,
    undefined,
    createPolicyEngine({ policyEngine: 'declarative', preset: 'standard' }),
  );
}
