Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12126

Performance drop when using auth in REST

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 11.0.1.Final
    • REST, Security
    • None

      Currently, the BASIC auth token is cached on a per-connection basis in the RestHandler. This works fine for HTTP/1 with keep-alive, but not for HTTP/2, because it multiplexes and uses one child-channel per each simultaneous request/response pair (stream).

      One suggestion is to use org.wildfly.security.auth.realm.CachingSecurityRealm around the supported security realms to cache credentials for a configurable amount of time, or based on the number of credentials. This would also improve Hot Rod since the security realms are global

      EDIT: CachingSecurityRealm apparently only caches the credential lookup and not the validation which is very costly.

      Regarding DIGEST authentication, due to the existence of the (client) nonce, clients must send different headers every request time, so caching the header in the server will not work.

       

              Unassigned Unassigned
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: