Commit 7205268
committed
fix: use federated-identity endpoint in all_github_identities
Previously this called a_get_user() for every user in Keycloak to read
federatedIdentities, but the /users list endpoint doesn't include that
field so we were fetching the full UserRepresentation (including heavy
userProfileMetadata) for every user. This runs every 5 minutes and was
a likely contributor to OOM kills.
Switch to the dedicated /users/{id}/federated-identity endpoint which
returns only the identity records needed.1 parent b05d0d1 commit 7205268
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | | - | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
0 commit comments