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

Add concurency configuration option for keycloak backend #2121

Conversation

AndrienkoAleksandr
Copy link
Contributor

@AndrienkoAleksandr AndrienkoAleksandr commented Dec 2, 2024

Hey, I just made a Pull Request!

What does this pr fix:

janus-idp/backstage-plugins#2471
https://issues.redhat.com/browse/RHIDP-4793

Demo:

https://youtu.be/miQ9DgaOYcg

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from 8f1ebba to fe81244 Compare December 2, 2024 13:27
@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Dec 2, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-catalog-backend-module-keycloak workspaces/keycloak/plugins/catalog-backend-module-keycloak patch v3.4.0

@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from fe81244 to 3324173 Compare December 2, 2024 13:35
@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from cf15bc2 to 58ac3c8 Compare December 9, 2024 12:14
@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch 2 times, most recently from 4f44a5c to 525aad8 Compare December 23, 2024 08:48
@AndrienkoAleksandr AndrienkoAleksandr marked this pull request as ready for review December 23, 2024 12:11
@dzemanov
Copy link
Contributor

@AndrienkoAleksandr Can you please generate changeset when you will have time?

@dzemanov
Copy link
Contributor

Tested with 1000 groups and 500000 users, works as expected.
Interestingly, each scheduled run more users are commited, e.g:

Committed 27173 Keycloak users and 1000 Keycloak groups
...
Committed 31119 Keycloak users and 1000 Keycloak groups
...
Committed 42271 Keycloak users and 1000 Keycloak groups
...
Committed 43885 Keycloak users and 1000 Keycloak groups
...
Committed 44735 Keycloak users and 1000 Keycloak groups
...

So it will take more scheduled runs to commit all users in Keycloak.

Tested also locally as dynamic plugin in backstage-showcase.

@AndrienkoAleksandr
Copy link
Contributor Author

AndrienkoAleksandr commented Dec 30, 2024

Tested with 1000 groups and 500000 users, works as expected.
Interestingly, each scheduled run more users are commited, e.g:
Committed 27173 Keycloak users and 1000 Keycloak groups
...
Committed 31119 Keycloak users and 1000 Keycloak groups
...
Committed 42271 Keycloak users and 1000 Keycloak groups
...
Committed 43885 Keycloak users and 1000 Keycloak groups
...
Committed 44735 Keycloak users and 1000 Keycloak groups
...
So it will take more scheduled runs to commit all users in Keycloak.

@dzemanov, Yes, I agree that this could happen if you set a very high maxConcurrency value. I recorded a demo where I demonstrated that, with a reasonable maxConcurrency value, you can fetch 5,000,000 users and 1,000 groups in the first scheduled run iteration and commit all the data at once. Subsequent scheduled runs should also succeed without losing users or groups. Lost users and groups could occur, but only if you encounter actual network issues.

P.S.: Thank you for your comment. I have changed the default maxConcurrency value; it is no longer set to infinity. I have provided a default value of 20. I'm not sure if this is the optimal default, but it is much better than infinity, which could definitely lead to a DoS attack on the Keycloak server.

Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @AndrienkoAleksandr, I can't confidently review the actual code changes as I don't know this plugin very well and will leave that to other reviewers but I did notice some more general items that need to be changed. 👍

@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from 31ab239 to eb10859 Compare January 6, 2025 14:45
@AndrienkoAleksandr
Copy link
Contributor Author

@awanlin, I handled your code review feedback.

@AndrienkoAleksandr
Copy link
Contributor Author

AndrienkoAleksandr commented Jan 7, 2025

@AndrienkoAleksandr Can you please generate changeset when you will have time?

Thanks @dzemanov, done.

awanlin
awanlin previously requested changes Jan 7, 2025
Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up @AndrienkoAleksandr, there's a few structural items the need to be addressed still, sorry.

Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to be in a good state now, would still like someone with more knowledge about the plugin itself to review so not giving an explicit approval till that happens.

@schultzp2020, can you look at this? Just asking as it looks like you got tagged to review 👍

@04kash
Copy link
Member

04kash commented Jan 15, 2025

This looks to be in a good state now, would still like someone with more knowledge about the plugin itself to review so not giving an explicit approval till that happens.

Maybe @PatAKnight or @dzemanov?

@dzemanov
Copy link
Contributor

Other then minor comment, looks good to me.

@awanlin
Copy link
Contributor

awanlin commented Jan 31, 2025

Hi @AndrienkoAleksandr, looks like we need to resolve the conflict and address the comment from @dzemanov 👍

@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from d1ed63b to 25f706e Compare February 2, 2025 09:43
@AndrienkoAleksandr
Copy link
Contributor Author

Hi @AndrienkoAleksandr, looks like we need to resolve the conflict and address the comment from @dzemanov

Done.

Signed-off-by: Oleksandr Andriienko <[email protected]>
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>
Signed-off-by: Oleksandr Andriienko <[email protected]>
Signed-off-by: Oleksandr Andriienko <[email protected]>
@AndrienkoAleksandr AndrienkoAleksandr force-pushed the add-concurency-configuration-option-for-keycloak-backend branch from 25f706e to 3eae12f Compare February 4, 2025 08:36
Signed-off-by: Oleksandr Andriienko <[email protected]>
Signed-off-by: Oleksandr Andriienko <[email protected]>
Copy link
Contributor

@PatAKnight PatAKnight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple and quick question while I prepare to test

Signed-off-by: Oleksandr Andriienko <[email protected]>
@dzemanov
Copy link
Contributor

dzemanov commented Feb 7, 2025

Tested again and works fine. Great work @AndrienkoAleksandr 🪄

@dzemanov
Copy link
Contributor

dzemanov commented Feb 7, 2025

lgtm!

@dzemanov
Copy link
Contributor

dzemanov commented Feb 7, 2025

@awanlin can you approve the PR when you get a chance?

Copy link
Member

@04kash 04kash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All review comments were addressed, lgtm!

@AndrienkoAleksandr
Copy link
Contributor Author

@awanlin can you remove block from this pr, please ?

@awanlin awanlin self-requested a review February 7, 2025 15:47
@awanlin
Copy link
Contributor

awanlin commented Feb 7, 2025

Cleared out on my end! 🚀

@04kash, will leave this to you to merge 👍

@awanlin awanlin dismissed their stale review February 7, 2025 15:49

resolved

@04kash 04kash enabled auto-merge (squash) February 7, 2025 15:54
@04kash 04kash merged commit f64bb64 into backstage:main Feb 7, 2025
12 checks passed
gaelgoth pushed a commit to gaelgoth/community-plugins that referenced this pull request Feb 12, 2025
)

* fix(keycloak): customize quantity of parallel Keycloak requests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(rbac): simplify helpers unit test

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use common js version of the p-limit

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add one more backstage client to import users, groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add user for testing import

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use original p-limit again with help of inclusion

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): simplify code

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix maxConcurrency option

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): align prettier in the workspace

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix api report

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update token for keycloak client

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix unit tests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): try to align prettier again

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): ignore report.api.md for prettier

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): complete ts docs

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix token update for fetching groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): dramatically speed up parsing users and groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix test compilation

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): remove code duplication

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix concurrent update token issue

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): change maxConcurrency default, add doc

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix return type in case error

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): regenerate report.api.md

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): downgrade and freeze version of the prettier
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): keep prettier dependecny only in the root package.json

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add changeset

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): yarn dedupe

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use log level debug

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Johannes Will <[email protected]>
Co-authored-by: Kashish Mittal <[email protected]>
Signed-off-by: gaelgoth <[email protected]>
gaelgoth pushed a commit to gaelgoth/community-plugins that referenced this pull request Feb 12, 2025
)

* fix(keycloak): customize quantity of parallel Keycloak requests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(rbac): simplify helpers unit test

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use common js version of the p-limit

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add one more backstage client to import users, groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add user for testing import

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use original p-limit again with help of inclusion

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): simplify code

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix maxConcurrency option

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): align prettier in the workspace

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix api report

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update token for keycloak client

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix unit tests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): try to align prettier again

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): ignore report.api.md for prettier

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): complete ts docs

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix token update for fetching groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): dramatically speed up parsing users and groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix test compilation

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): remove code duplication

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix concurrent update token issue

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): change maxConcurrency default, add doc

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix return type in case error

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): regenerate report.api.md

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): downgrade and freeze version of the prettier
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): keep prettier dependecny only in the root package.json

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add changeset

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): yarn dedupe

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use log level debug

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Johannes Will <[email protected]>
Co-authored-by: Kashish Mittal <[email protected]>
gaelgoth pushed a commit to gaelgoth/community-plugins that referenced this pull request Feb 12, 2025
)

* fix(keycloak): customize quantity of parallel Keycloak requests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(rbac): simplify helpers unit test

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use common js version of the p-limit

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add one more backstage client to import users, groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add user for testing import

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use original p-limit again with help of inclusion

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): simplify code

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix maxConcurrency option

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): align prettier in the workspace

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix api report

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update token for keycloak client

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix unit tests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): try to align prettier again

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): ignore report.api.md for prettier

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): complete ts docs

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix token update for fetching groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): dramatically speed up parsing users and groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix test compilation

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): remove code duplication

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix concurrent update token issue

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): change maxConcurrency default, add doc

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix return type in case error

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): regenerate report.api.md

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): downgrade and freeze version of the prettier
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): keep prettier dependecny only in the root package.json

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add changeset

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): yarn dedupe

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use log level debug

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Johannes Will <[email protected]>
Co-authored-by: Kashish Mittal <[email protected]>
Zarthus pushed a commit to Zarthus/community-plugins that referenced this pull request Feb 19, 2025
)

* fix(keycloak): customize quantity of parallel Keycloak requests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(rbac): simplify helpers unit test

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use common js version of the p-limit

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add one more backstage client to import users, groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add user for testing import

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use original p-limit again with help of inclusion

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): simplify code

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix maxConcurrency option

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): align prettier in the workspace

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix api report

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update token for keycloak client

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix unit tests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): try to align prettier again

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): ignore report.api.md for prettier

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): complete ts docs

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix token update for fetching groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): dramatically speed up parsing users and groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix test compilation

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): remove code duplication

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix concurrent update token issue

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): change maxConcurrency default, add doc

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix return type in case error

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): regenerate report.api.md

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): downgrade and freeze version of the prettier
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): keep prettier dependecny only in the root package.json

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add changeset

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): yarn dedupe

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use log level debug

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Johannes Will <[email protected]>
Co-authored-by: Kashish Mittal <[email protected]>
harmenbrinkmanTRIMM pushed a commit to harmenbrinkmanTRIMM/community-plugins that referenced this pull request Feb 19, 2025
)

* fix(keycloak): customize quantity of parallel Keycloak requests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(rbac): simplify helpers unit test

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use common js version of the p-limit

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add one more backstage client to import users, groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add user for testing import

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use original p-limit again with help of inclusion

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): simplify code

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix maxConcurrency option

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): align prettier in the workspace

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix api report

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update token for keycloak client

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix unit tests

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): try to align prettier again

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): ignore report.api.md for prettier

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): complete ts docs

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix token update for fetching groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): dramatically speed up parsing users and groups

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix test compilation

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): remove code duplication

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix concurrent update token issue

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): change maxConcurrency default, add doc

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): fix return type in case error

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): regenerate report.api.md

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): downgrade and freeze version of the prettier
Downgrade and freeze the Prettier version to resolve a CI conflict between Prettier and the documentation generator tool.

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): keep prettier dependecny only in the root package.json

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): add changeset

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): handle code review feedback

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): update yarn.lock

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): yarn dedupe

Signed-off-by: Oleksandr Andriienko <[email protected]>

* fix(keycloak): use log level debug

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Johannes Will <[email protected]>
Co-authored-by: Kashish Mittal <[email protected]>
Signed-off-by: Harmen Brinkman <[email protected]>
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.

6 participants