Skip to content

Is it possible to implement OPA bundle signing on code? #580

Discussion options

You must be logged in to vote

Ok here's one way to accomplish this:

  1. kotlin application communicates with DB, gets data and writes it to a file called data.json (If this was a Go app that would have been perfect but lets leave that for now)
  2. Invoke the opa build command from within the code. I haven't worked with Kotlin but there should be a way to do this. (Assumption: opa binary installed on machine/container)
  3. Sign the bundle using opa build or opa sign
  4. Upload to S3.

All the above steps are happening in the kotlin application so you can run this flow periodically or make it event-based.

Hope this helps. Thanks.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@somsom13
Comment options

@ashutosh-narkar
Comment options

@somsom13
Comment options

Comment options

You must be logged in to vote
1 reply
@somsom13
Comment options

Comment options

You must be logged in to vote
1 reply
@somsom13
Comment options

Answer selected by somsom13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants