Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement user limits #82 #188

Merged
merged 8 commits into from
Mar 13, 2024
Merged

feat: Implement user limits #82 #188

merged 8 commits into from
Mar 13, 2024

Conversation

astsiapanay
Copy link
Collaborator

@astsiapanay astsiapanay commented Feb 1, 2024

[3:27 PM] Aliaksandr Stsiapanay
Hi,
I want to propose changes based on the yesterday's discussion about user limits:

We can merge user into api-key limits to unify the config. In case of role name clashes we can resolve these issues manually in config.

As for default user limits there are 3 options how to read it:

2.1 Make a new field defaultUserLimits to the model settings.
2.2 Make a default user role in the section role and use it to read the default limits. Also we need to a new setting to dial settings something like defaultUserRole
2.3 Add default user role for all users in IDP and configure user limits for that role in DIAL config. (my preference)

Add support of request per minute/day limits in a separate issue. We can extend limit configuration for requests as well.
What do you think?

[3:33 PM] Aliaksei Vavilau
I think it could be enough if done right. I would take simplest approach for #2. Which I believe #2

@astsiapanay astsiapanay self-assigned this Feb 1, 2024
artsiomkorzun
artsiomkorzun previously approved these changes Mar 13, 2024
@astsiapanay astsiapanay merged commit 5696b28 into development Mar 13, 2024
7 checks passed
@astsiapanay astsiapanay deleted the issue-82 branch April 3, 2024 09:50
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