Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policies API doesn't work well with slashes in path #292

Closed
tsandall opened this issue Mar 11, 2017 · 0 comments
Closed

Policies API doesn't work well with slashes in path #292

tsandall opened this issue Mar 11, 2017 · 0 comments
Labels

Comments

@tsandall
Copy link
Member

If OPA is started with policies passed as command line arguments, the ids often contain slashes because of how directories are loaded recursively.

Unfortunately, the server doesn't support slashes in the "id" portion of the policy path so PUT, DELETE, GET methods do not work as expected.

It would be nice if OPA supported slashes in the "id" portion.

tsandall added a commit to tsandall/opa that referenced this issue Mar 11, 2017
As part of this change, the /policies/{id}/raw API has been removed in
favour of a "source" query parameter. When GET
/policies/{id}?source=true is received, the server returns the
raw/source of the policy.

Also, cleaned up handling of boolean query params.

Fixes open-policy-agent#292
tsandall added a commit that referenced this issue Mar 11, 2017
As part of this change, the /policies/{id}/raw API has been removed in
favour of a "source" query parameter. When GET
/policies/{id}?source=true is received, the server returns the
raw/source of the policy.

Also, cleaned up handling of boolean query params.

Fixes #292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant