Commit 0952a1b
authored
[Auth] Fix IG4 group type (mlrun#9242)
### 📝 Description
IG4 Authentication client was using the wrong Group gRPC schema type to
extract the user's group from the authentication endpoint response (`GET
/self`).
As can be seen here, the correct type is `usergroup.Group` and not
`group.Group`, as `group` is a reserved gRPC word:
```json
{
"metadata": {
"id": "4ea81f45-37b2-49ed-b776-7aa3ae7af44b",
"resourceType": "user",
"username": "normal-user"
},
"relationships": [
{
"@type": "type.googleapis.com/usergroup.Group",
"metadata": {
"id": "f464c016-65ae-431b-8d3a-b563c59a187b",
"path": "/test-group"
},
"spec": {
"name": "test-group"
}
}
],
"spec": {
"email": "normal-user@iguazio.com",
"firstName": "normal-user",
"lastName": "normal-user"
},
"status": {
"active": true,
"createdAt": "2026-01-21T09:44:58.668Z",
"ctx": "a2e839df739960d54e13f4f7fe2127cb",
"groupIds": [
"f464c016-65ae-431b-8d3a-b563c59a187b"
],
"lastActivity": "2026-01-25T14:40:13Z",
"lastLogin": "2026-01-25T14:25:29Z",
"statusCode": 200
}
}
```
---
### 🛠️ Changes Made
- `server/py/framework/utils/clients/iguazio/v4.py` : changed the
`_GROUP_TYPE_VALUE` constant to the correct type.
---
### ✅ Checklist
- [ ] I updated the documentation (if applicable)
- [x] I have tested the changes in this PR
- [ ] I confirmed whether my changes are covered by system tests
- [ ] If yes, I ran all relevant system tests and ensured they passed
before submitting this PR
- [ ] I updated existing system tests and/or added new ones if needed to
cover my changes
- [ ] If I introduced a deprecation:
- [ ] I followed the [Deprecation Guidelines](./DEPRECATION.md)
- [ ] I updated the relevant Jira ticket for documentation
---
### 🧪 Testing
Using the `iguazio` client:
1. Created a user and a group
2. Assigned user to group
3. Created project
4. Assigned group as project Admin
5. Performed operations as the user - Success :white_check_mark:
---
### 🔗 References
- Ticket link: https://iguazio.atlassian.net/browse/IG4-1184
- Orca schema definition:
https://github.com/iguazio/orca/blob/9f5818389844549e4b878cd885f8f5f992ae87e2/backend/proto/v1/resources/usergroup.proto#L10
---
### 🚨 Breaking Changes?
- [ ] Yes (explain below)
- [x] No
<!-- If yes, describe what needs to be changed downstream: -->
---
### 🔍️ Additional Notes
<!-- Anything else reviewers should know (follow-up tasks, known issues,
affected areas etc.). -->
<!-- ### 📸 Screenshots / Logs -->1 parent 5c82d97 commit 0952a1b
File tree
2 files changed
+8
-8
lines changed- server/py
- framework/utils/clients/iguazio
- services/api/tests/unit/utils/clients/iguazio
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
| 730 | + | |
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
| 734 | + | |
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| |||
0 commit comments