Skip to content

Go sdk external data #677

Discussion options

You must be logged in to vote

@jeyvison's answer is absolutely right for the low-level Rego API. For the high-level SDK that it looks like you're using, the idea is that just as when running a standalone OPA (opa run --server ...), both policies and data is provided via bundles (as fetched from the endpoints in your configuration). So if you want to add data to OPA, you'd add it to your bundle by placing one or more data.json files in the bundle where the data should be injected.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jjhwan-h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants