Does opal-client support string when use external config server? #176
Answered
by
asafc
hongbo-miao
asked this question in
Q&A
-
Regarding the doc How to configure external data sources, when I use I built my config server, if I return a JSON format config like {
"entries": [
{
"url": "postgresql://[email protected]:40072/opa_db",
"config": {
"fetcher": "PostgresFetchProvider",
"query": "select role, allow from roles;",
"connection_params": {
"password": "passw0rd"
}
},
"topics": [
"policy_data"
],
"dst_path": "roles"
}
]
} it works well. Just wonder does opal-client also work if my config server returns a simple string like
? |
Beta Was this translation helpful? Give feedback.
Answered by
asafc
Nov 2, 2021
Replies: 1 comment 1 reply
-
OPAL client expects an HTTP response with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hongbo-miao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OPAL client expects an HTTP response with
Content-Type: application/json
header.Whitespaces should not matter.