Commit 30f2b11
fix(registry-servers): tag registry installs with registry+server fields (#2292)
Registry-installed workloads currently send only req.image, which makes
the API treat them as direct image installs. Policy gates that allow only
registry-resolved servers then reject them — even when the image is the
exact one listed in the registry — because workload_service's image-name
lookup misses (the registry is keyed by server name, not image URL), and
RegistryServerName/RegistryAPIURL come back empty on the RunConfig.
Send registry: 'default' and server: server.name so the API takes the
resolveRegistryServer path. The canonical registry entry name is kept
separate from the user-editable workload name, which may diverge when
the user renames the workload at install time or installs the same
server twice into different groups.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 424cc24 commit 30f2b11
2 files changed
Lines changed: 37 additions & 0 deletions
File tree
- renderer/src/features/registry-servers/lib
- __tests__
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
103 | 131 | | |
104 | 132 | | |
105 | 133 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
0 commit comments