[JBoss JIRA] (ISPN-10389) Refactor the test HTTP client
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10389?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10389:
-------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Refactor the test HTTP client
> -----------------------------
>
> Key: ISPN-10389
> URL: https://issues.jboss.org/browse/ISPN-10389
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Protocols, REST, Test Suite - Server
> Affects Versions: 10.0.0.Beta3
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 10.0.0.Beta4
>
>
> The REST server testsuite includes an HTTP client which could eventually be reused in many places (CLI, Rest Cache Store, Server testsuite).
> Before promoting it to a public module (i.e. non-test) we can improve its usability by making it configurable, automatically selecting configuration modes, etc.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10388) Optimize REST authentication
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10388?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10388:
-------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Optimize REST authentication
> ----------------------------
>
> Key: ISPN-10388
> URL: https://issues.jboss.org/browse/ISPN-10388
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Protocols, REST, Server
> Affects Versions: 10.0.0.Beta3
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Labels: performace
>
> The REST server doesn't handle authentication very efficiently:
> * it always checks for authentication even when it's disabled
> * it obtains the authenticated Subject from the realm on every request
> we should optimize it as follows:
> * move authentication to a dedicated channel handler which is installed only when enabled
> * keep the authenticated Subject in the authentication handler, as well as any headers required by the mech in use to quickly validate the request and skip interaction with the security realm for keep-alive connections
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10393) REST endpoint dependency on management socket bindings should be optional
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10393?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10393:
-------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> REST endpoint dependency on management socket bindings should be optional
> -------------------------------------------------------------------------
>
> Key: ISPN-10393
> URL: https://issues.jboss.org/browse/ISPN-10393
> Project: Infinispan
> Issue Type: Bug
> Components: REST, Server
> Affects Versions: 10.0.0.Beta3, 9.4.15.Final
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 10.0.0.Beta4, 9.4.16.Final
>
>
> Removing the management socket bindings causes the rest endpoint to fail at startup.
> {code:xml}
> <management-interfaces>
> <http-interface security-realm="ManagementRealm" console-enabled="false">
> <http-upgrade enabled="true"/>
> <socket-binding https="management-https"/>
> </http-interface>
> </management-interfaces>
> {code}
> {noformat}
> ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "datagrid-infinispan-endpoint"),
> ("rest-connector" => "rest-connector")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.network.socket-binding.management-http"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.datagrid-infinispan-endpoint.rest.rest-connector is missing [org.wildfly.network.socket-binding.management-http]"]
> }
> 2019-07-02 18:17:24,919 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
> WFLYCTL0184: New missing/unsatisfied dependencies:
> service org.wildfly.network.socket-binding.management-http (missing) dependents: [service jboss.datagrid-infinispan-endpoint.rest.rest-connector]
> {noformat}
> The dependency should be optional
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10388) Optimize REST authentication
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10388?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10388:
-----------------------------------
Status: Open (was: New)
> Optimize REST authentication
> ----------------------------
>
> Key: ISPN-10388
> URL: https://issues.jboss.org/browse/ISPN-10388
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Protocols, REST, Server
> Affects Versions: 10.0.0.Beta3
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Labels: performace
>
> The REST server doesn't handle authentication very efficiently:
> * it always checks for authentication even when it's disabled
> * it obtains the authenticated Subject from the realm on every request
> we should optimize it as follows:
> * move authentication to a dedicated channel handler which is installed only when enabled
> * keep the authenticated Subject in the authentication handler, as well as any headers required by the mech in use to quickly validate the request and skip interaction with the security realm for keep-alive connections
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months
[JBoss JIRA] (ISPN-10388) Optimize REST authentication
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10388?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10388:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/7142
> Optimize REST authentication
> ----------------------------
>
> Key: ISPN-10388
> URL: https://issues.jboss.org/browse/ISPN-10388
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Protocols, REST, Server
> Affects Versions: 10.0.0.Beta3
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Labels: performace
>
> The REST server doesn't handle authentication very efficiently:
> * it always checks for authentication even when it's disabled
> * it obtains the authenticated Subject from the realm on every request
> we should optimize it as follows:
> * move authentication to a dedicated channel handler which is installed only when enabled
> * keep the authenticated Subject in the authentication handler, as well as any headers required by the mech in use to quickly validate the request and skip interaction with the security realm for keep-alive connections
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 4 months