IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Tue June 20, 2023 10:35 AM

    A question has come up concerning how rate limiting might function, or what is best practice if I'd like to rate limit on the following example.

    Problem = I would like to rate limit all junction requests through URL - https://test.rate.org/ - with a capacity of 10, in a 60 second interval.
         I would also like to rate limit junction requests for URL - http://test.rate.org/junction1 - with a stricter capacity of 5, in a 30 second interval.
         Thirdly, I would also like to rate limit junction requests for URL - http://test.rate.org/junction2 - with an even stricter capacity of 2, in a 10 second interval.

    Would this be achieved by implementing 3 rate limiting config/YAML files? Or can multiple URLs, methods, and intervals/capacities be placed in a sole rate limiting config?

    Secondly, when a request is parsed for rate limiting, I'm figuring it's going to wind up in a bucket for the first rule/pattern it matches. So would I list these rules above from least-strict to most-strict to be able to achieve this functionality? 

    I'm just curious what best practice would be here. 

    Thanks and regards,
    Bayless Rutherford



    ------------------------------
    Bayless Rutherford
    ------------------------------


  • 2.  RE: Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Tue June 20, 2023 05:35 PM

    Bayless,

     

    Each YAML file should correspond to a single rate-limiting policy.  In your example you have defined 3 policies and so this should correspond to 3 different rate limiting policy files.

     

    When a request arrives at WebSEAL it will apply the request to all matching rate limiting policies (i.e. it won't stop after the first match).

     

    So, in the example you gave below, a request for test.rate.org/junction2 will have 2 policies applied to it – the one attached to test.rate.org and the one attached to test.rate.org/junction2. 

     

    I hope that this helps.

     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor

    cid4122760825*<a href=image002.png@01D85F83.85516C50">

     

     

     






  • 3.  RE: Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Tue July 25, 2023 05:19 AM

    Hello,

    In regards to this, it is possible to have stricter rate limiting on more specific junctions.

    using the example above, you could set a policy on https://test.rate.org/junction1 for 100 requests per minute.

    Then you can also have a policy on https://test.rate.org/junction1/junction2 that is stricter (50 requests per minute).

    In our case we want to have the more general junction (/junction1) to be stricter than the specific url (/junction1/junction2). Is this possible?

    We are using wildcards within the policy and would like to have an option within the policy yaml file to exclude one but match all the rest.

    So similar, to the original post, but instead of getting stricter on more specific junctions, we want the rate limiting to be more lenient on a specific junction.



    ------------------------------
    Jerryt D.
    ------------------------------



  • 4.  RE: Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Mon July 31, 2023 08:01 PM

    Jerry,

    WebSEAL will apply the request against all matching rate limiting policies.  This means that if you have a policy on https://test.rate.org/junction1, and another policy for https://test.rate.org/junction1/junction2, any requests for a resource like: 'https://test.rate.org/junction1/junction2/index.html', will have a bucket in both rate limiting policies.   There is no way to tell WebSEAL to ignore a rate limiting policy for certain requests. 

    I hope that this helps.

    Scott.



    ------------------------------
    Scott Exton
    IBM
    Gold Coast
    ------------------------------



  • 5.  RE: Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Tue April 22, 2025 02:34 AM

    Hi all,

    Is this still the situation in IVIA 11.0.0.0?
    And if so, is there another way to achieve this within IVIA?



    ------------------------------
    Jasper Teuben
    ------------------------------



  • 6.  RE: Rate Limiting concepts/functionality for multiple junctions - ISVA 10.0.5

    Posted Tue April 22, 2025 04:09 PM

    Jasper,

     

    The rate limiting functionality has not changed in IVIA 11.

     

    Thanks.

     

     

    Scott Exton

    IBM Verify platform architect

    IBM Master Inventor