- Notifications
You must be signed in to change notification settings - Fork1k
Commitaf2c645
committed
refactor: add allow_list field to API keys for resource scoping
- Add allow_list field to CreateTokenRequest API and database schema- Implement APIKeyEffectiveScope that merges scopes with token allow_list- Create x/wildcard package for type-safe wildcard values- Add rbac.ParseAllowList for validating and normalizing allow lists- Support resource targeting like "workspace:*" or "template:<uuid>"- Default to wildcard (*:*) for backward compatibility1 parent3d8007b commitaf2c645
File tree
21 files changed
+541
-38
lines changed- coderd
- apidoc
- apikey
- database
- dbauthz
- dbgen
- httpmw
- rbac
- codersdk
- docs/reference/api
- scripts/apitypings
- site/src/api
21 files changed
+541
-38
lines changedSome generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
119 | 150 |
| |
120 | 151 |
| |
121 | 152 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
| |||
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
118 |
| - | |
| 121 | + | |
119 | 122 |
| |
120 | 123 |
| |
121 | 124 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 |
| |
229 | 233 |
| |
230 | 234 |
| |
231 | 235 |
| |
232 | 236 |
| |
233 | 237 |
| |
234 | 238 |
| |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
239 | 242 |
| |
240 | 243 |
| |
241 | 244 |
| |
| |||
247 | 250 |
| |
248 | 251 |
| |
249 | 252 |
| |
250 |
| - | |
| 253 | + | |
| 254 | + | |
251 | 255 |
| |
252 | 256 |
| |
253 | 257 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 |
| - | |
| 189 | + | |
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
238 | 273 |
| |
239 | 274 |
| |
240 | 275 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
167 |
| - | |
168 |
| - | |
| 166 | + | |
169 | 167 |
| |
170 | 168 |
| |
171 | 169 |
| |
| |||
323 | 321 |
| |
324 | 322 |
| |
325 | 323 |
| |
326 |
| - | |
327 |
| - | |
328 |
| - | |
| 324 | + | |
329 | 325 |
| |
330 | 326 |
| |
331 | 327 |
| |
332 |
| - | |
333 |
| - | |
334 |
| - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
335 | 331 |
| |
336 |
| - | |
| 332 | + | |
337 | 333 |
| |
338 | 334 |
| |
339 |
| - | |
340 |
| - | |
341 |
| - | |
342 | 335 |
| |
343 | 336 |
| |
344 | 337 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
437 |
| - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
438 | 441 |
| |
439 | 442 |
| |
440 | 443 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
|
0 commit comments
Comments
(0)