Skip to content

docs: explain configuration of Push Datasources #164

@torwunder

Description

@torwunder

Problem description

The current implementation seems to support push datasources by providing endpoints to push data into OCP. (https://www.openpolicyagent.org/docs/ocp/api-reference#postput-v1sourcessourcedatapath).

While this works it is not obvious from the documentation how such a datasource can be configured either via config file or API.
The only supported datasource type seems to be http.

If the datasource type is left empty or provided with a different value the bundle build fails.
The datasource directory is not created and still required by the build.

/data
|- <uuid>
    |- sources
        |- <source name>
            |- database 
            |   |- <datasource name>
            |       |- data.json
            |- datasources     <-- missing if datasource type http is not provided         

If the datasources folder is added manually the bundle build is successful.

Ideally a second datasource type is provided similar to JSON/REST in Styra DAS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions