Skip to content

How to read data from API, DB, external services, etc.? #89

Answered by orweis
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi :)

"seems opal-server read both data and policy from same repo"
Just like with OPA bundles you can include data (aka static data)

how to read data from API, DB, external services, etc.?
By providing a DataSourceEntry as part of a DataUpdate (aka an update event) you can instruct OPAL-clients to use their data-fetchers to retrieve data from multiple sources.
You can trigger such an event using the CLI as shown here
And you can write your own code to create other DataUpdates of your choice.

OPAL currently comes with an HTTP based data fetcher (e.g. good for http API calls) To add more types of data fetchers you can implement them as detailed in this guide

Question 1:
The opal-server sea…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@orweis
Comment options

@hongbo-miao
Comment options

@asafc
Comment options

@hongbo-miao
Comment options

@hongbo-miao
Comment options

Answer selected by hongbo-miao
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants