Skip to content

Conversation

@mcucchi9
Copy link
Collaborator

@mcucchi9 mcucchi9 commented Dec 9, 2025

This PR introduce a "user type" top-level in rate limits configuration to allow for the specifications of rate limits for authenticated users (key: auth) and non-authenticated users (key: anon).
Both should be specified in order to enforce rate limits for the two classes of users.
With this feature implemented, the configuration file should like the following:

auth:
  default:
    post:
      api: <limits>
      ui: <limits>
    get:
      api: <limits>
      ui: <limits> 
    ...
  /processes/{process_id}/execution:
    default:
      post:
        api: <limits>
        ui: <limits>
    <process_id_1> (e.g. "reanalysis-era5-single-levels"):
      post:
        api: <limits>
        ui: <limits> 
     ...    
anon:
  default:
    post:
      api: <limits>
      ui: <limits>
    get:
      api: <limits>
      ui: <limits> 
    ...
  /processes/{process_id}/execution:
    default:
      post:
        api: <limits>
        ui: <limits>
    <process_id_1> (e.g. "reanalysis-era5-single-levels"):
      post:
        api: <limits>
        ui: <limits> 
     ... 

@mcucchi9 mcucchi9 requested a review from keul December 9, 2025 17:00
@mcucchi9 mcucchi9 self-assigned this Dec 9, 2025
@mcucchi9
Copy link
Collaborator Author

CLOSED -> moved to #267

@mcucchi9 mcucchi9 closed this Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants