You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "michael-willingham (via GitHub)" <gi...@apache.org> on 2025/09/09 14:56:13 UTC
[I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
michael-willingham opened a new issue, #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271
Hello!
I had some thoughts and questions around the existing graphql behaviour of the Sonataflow Management Console, in light of the recent changes to make the console read-only:
https://github.com/apache/incubator-kie-tools/issues/2696
Based on the recent changes to make the console read-only, shouldn't the Apollo client switch to using GET requests to the data index `/graphql` endpoint? As far as I am aware, no mutations are taking place any longer.
Making this change would allow for more fine-grained security controls to be enacted on the data index deployment:
* GET requests can have a more permissive http policy
* POST requests could have a more restrictive http policy
Otherwise, on the Quarkus http security side of things, it seems tricky to determine which POST requests to the data index are mutations vs. queries. I'm happy to be corrected here if my understanding is wrong.
I believe this would be a fairly small change: https://github.com/michael-willingham/apache--incubator-kie-tools/pull/1/files
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-4776668170
I close this issue because SonataFlow has been removed from this repo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3300359737
For this kind of setting, I suggested this way. It's a bit more complex, but the environment variables are available only at build-time
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "ricardozanini (via GitHub)" <gi...@apache.org>.
ricardozanini commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3275332152
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3280251420
@michael-willingham please feel free to prepare a PR if you are willing to contribute, otherwise we can add it to our task list :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3281738228
@michael-willingham Thank you so much for contributing, but please take your time, no need to hurry 😉
> I'm assuming there's a bit more needed than the one line diff I proposed
Actually, yes. IMO it would be better to make it optional using a json for this setting with a default to `false`, to keep the current behaviour as default.
We have an example in a similar package:
- the documentation:
https://github.com/apache/incubator-kie-tools/blob/main/packages/sonataflow-deployment-webapp/README.md#optional-customizations
- The default values:
https://github.com/apache/incubator-kie-tools/blob/main/packages/sonataflow-deployment-webapp/src/AppConstants.ts#L28
- the static json:
https://github.com/apache/incubator-kie-tools/blob/main/packages/sonataflow-deployment-webapp/static/sonataflow-deployment-webapp-data.json
- the point where the json is read in the app:
https://github.com/apache/incubator-kie-tools/blob/f4ef26380b1f039a39753f3cbdd74e7c8766b4f6/packages/sonataflow-deployment-webapp/src/context/AppContextProvider.tsx#L40
- the final use of our setting:
https://github.com/apache/incubator-kie-tools/blob/f4ef26380b1f039a39753f3cbdd74e7c8766b4f6/packages/sonataflow-deployment-webapp/src/runtimeTools/contexts/DeploymentWorkflowDefinitionListContextProvider.tsx#L28
If you feel it is too much, just let me know, and we will do it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "michael-willingham (via GitHub)" <gi...@apache.org>.
michael-willingham commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3300330135
@fantonangeli would it be okay to just make this configurable via environment variable, like the other management console settings?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "michael-willingham (via GitHub)" <gi...@apache.org>.
michael-willingham commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3281236392
Sounds good, I'll try to get it sent in today 🙂
I need to read over the contributors guide first - I'm assuming there's a bit more needed than the one line diff I proposed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli commented on issue #3271:
URL: https://github.com/apache/incubator-kie-tools/issues/3271#issuecomment-3275173133
Thank you, @michael-willingham for bringing this point. I think it's an interesting one.
@ricardozanini I did a quick test and it works with a real Data-Index endpoint.
We can also support it as an option for the user.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Sonataflow management console should use GET requests to data index "/graphql" endpoint [incubator-kie-tools]
Posted by "fantonangeli (via GitHub)" <gi...@apache.org>.
fantonangeli closed issue #3271: Sonataflow management console should use GET requests to data index "/graphql" endpoint
URL: https://github.com/apache/incubator-kie-tools/issues/3271
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org