Commit a724bbb
Feature/kc 26 (#251)
* upg keycloak python library
* fix tests
* fix namespace use
* update poetry.lock for gatewayApi
* fix test config
* f-string fix for logs
* Enhace logging for token.py
* constructs the JWK URL directly from the same internal KC_SERVER_URL
* Update gatewayJobScheduler for Keycloak 26
* fix version mismatch for proxies arg for python-keycloak and httpx
* temp set keycloak ssl verify to false for scheduler
* Fix 404 when namespace has no Keycloak group
* Set verify back to True
* Prevent accidental route deletions on Keycloak errors. abort sync and add logging in NamespaceService
* Refactor Keycloak integration in gatewayJobScheduler
- don't silence errors in namespace.py
- raise error if transform_data_by_ns hits an exception
- Use a single Keycloak admin instance.
- Added Keycloak connection validation in sync_routes function.
- add sanity check before syncing
- Updated tests to ensure proper mocking of Keycloak interactions.
* Revert changes
* Use OIDCDiscovery for jwk again
* Fix Keycloak realm base URL by adding slash before /realms
* Test for Keycloak realm base URL with or without trailing slash
* remove deprecated search_in_subgroups
* stop using deprecated dev-dependencies
---------
Co-authored-by: ikethecoder <ikethecoder@copeconsulting.ca>
Co-authored-by: Russell Vinegar <russell.vinegar@gov.bc.ca>1 parent 49a5189 commit a724bbb
File tree
22 files changed
+840
-539
lines changed- microservices
- gatewayApi
- auth
- clients
- config
- tests
- auth
- v1
- routes
- services
- v2/services
- gatewayJobScheduler
- clients
- tests
- kubeApi
22 files changed
+840
-539
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
18 | | - | |
19 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
34 | | - | |
35 | | - | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
40 | 51 | | |
41 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | | - | |
45 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
| 62 | + | |
48 | 63 | | |
49 | 64 | | |
50 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
0 commit comments