Commit 85bade2
committed
fix: use information-hiding for cross-user provider resolution
Non-admin callers who try to resolve a provider name owned by another
user (via suffix scan) now get NotFound rather than PermissionDenied.
This prevents leaking resource existence to unauthorized callers and
ensures consistent behavior when a user deletes their own provider
while another user has the same name.
The PermissionDenied path remains active for the shared/legacy
fallback (Step 2) where the record's owner label is directly checked
— this covers providers stored under raw names with explicit ownership.
Admin callers continue to resolve any user's provider via suffix scan.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>1 parent 0884c53 commit 85bade2
2 files changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | | - | |
301 | | - | |
| 302 | + | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5078 | 5078 | | |
5079 | 5079 | | |
5080 | 5080 | | |
| 5081 | + | |
5081 | 5082 | | |
5082 | 5083 | | |
5083 | 5084 | | |
5084 | 5085 | | |
5085 | | - | |
| 5086 | + | |
5086 | 5087 | | |
5087 | 5088 | | |
5088 | 5089 | | |
| |||
5250 | 5251 | | |
5251 | 5252 | | |
5252 | 5253 | | |
| 5254 | + | |
5253 | 5255 | | |
5254 | 5256 | | |
5255 | 5257 | | |
5256 | | - | |
| 5258 | + | |
5257 | 5259 | | |
5258 | 5260 | | |
5259 | 5261 | | |
| |||
5286 | 5288 | | |
5287 | 5289 | | |
5288 | 5290 | | |
| 5291 | + | |
5289 | 5292 | | |
5290 | 5293 | | |
5291 | 5294 | | |
5292 | 5295 | | |
5293 | 5296 | | |
5294 | 5297 | | |
5295 | | - | |
| 5298 | + | |
5296 | 5299 | | |
5297 | 5300 | | |
5298 | 5301 | | |
| |||
0 commit comments