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

Add support for response flow policy in standalone mode #113

Open
fredmaggiowski opened this issue Nov 20, 2022 · 0 comments
Open

Add support for response flow policy in standalone mode #113

fredmaggiowski opened this issue Nov 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fredmaggiowski
Copy link
Member

fredmaggiowski commented Nov 20, 2022

Right now, when rönd operates in standalone mode it is not capable of executing response-flow policies therefore I have to write any security-related filter on API responses in the API itself.

Describe the solution you'd like

I'd like to be able to invoke rönd standalone also to be able to know the payload I should return to the client.

So with a configuration such as

{
   "/someapi": {
     "x-rond": {
        "requestFlow": { "policyName": "allow_all" }, 
        "responseFlow": { "policyName": "my_policy" }, 
      }
   }
}

I'd like to do something like

curl -X POST http://rond-standalone/eval/someapi -d '{ my original payload }'

And receive back the payload modified by my_policy.

Describe alternatives you've considered

To let rönd discern whether the http://rond-standalone/eval/someapi should use the request or response flow I'd like to use something like:

  • a reserved query param: ?rondFlow=response
  • a reserved header: rond-flow=response
  • change the path to /eval/:flow/:apinametherefore the api would actually be different based on the flow, in this case:http://rond-standalone/eval/response/someapi` but this would be a breaking change!

Any other suggestion on a solution?

@fredmaggiowski fredmaggiowski added the enhancement New feature or request label Nov 20, 2022
@fredmaggiowski fredmaggiowski changed the title Add support for request flow policy in standalone mode Add support for response flow policy in standalone mode Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant