diff --git a/apps/authz/src/app/opa/opa.service.ts b/apps/authz/src/app/opa/opa.service.ts index 139df0e4e..5b45fce1d 100644 --- a/apps/authz/src/app/opa/opa.service.ts +++ b/apps/authz/src/app/opa/opa.service.ts @@ -1,6 +1,5 @@ import { Injectable, Logger, OnApplicationBootstrap } from '@nestjs/common' import { loadPolicy } from '@open-policy-agent/opa-wasm' -import { execSync } from 'child_process' import { mkdirSync, readFileSync, writeFileSync } from 'fs' import Handlebars from 'handlebars' import { indexBy } from 'lodash/fp' @@ -73,10 +72,6 @@ export class OpaService implements OnApplicationBootstrap { this.logger.log('Policy .rego file generated successfully.') - execSync('make authz/rego/build') - - this.logger.log('Policies .wasm file build successfully.') - return { fileId, policies } }