Skip to content

Commit

Permalink
Remove non-existent import from @app/authz
Browse files Browse the repository at this point in the history
Replace short command options with long versions in `opa build` to enhance
readability.
  • Loading branch information
wcalderipe committed Jan 12, 2024
1 parent 8f7014c commit c52c825
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 7 additions & 1 deletion apps/authz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ authz/test/integration:
authz/test/e2e:
npx nx test:e2e ${AUTHZ_PROJECT_NAME}

# === Open Policy Agent & Rego ===

authz/rego/compile:
mkdir -p ./rego-build
opa build -t wasm -e main/evaluate -o ./rego-build/policies.gz ${AUTHZ_PROJECT_DIR}/src/app/opa/rego/main.rego
opa build \
--target wasm \
--entrypoint main/evaluate \
--output ./rego-build/policies.gz \
${AUTHZ_PROJECT_DIR}/src/app/opa/rego/main.rego
tar -xzf ./rego-build/policies.gz -C ./rego-build/
7 changes: 2 additions & 5 deletions apps/authz/src/app/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { transactionRequestIntent } from '@narval/transaction-request-intent'
import { Controller, Get, Logger, Post } from '@nestjs/common'

import { generateInboundRequest } from '@app/authz/shared/module/persistence/mock_data'
import { Controller, Get, Logger, Post } from '@nestjs/common'
import { AppService } from './app.service'

@Controller()
Expand All @@ -18,8 +16,7 @@ export class AppController {
@Get('/ping')
ping() {
this.logger.log({
message: 'Received ping',
test: transactionRequestIntent()
message: 'Received ping'
})

return 'pong'
Expand Down

0 comments on commit c52c825

Please sign in to comment.