@@ -167,6 +167,7 @@ func AGPLRoutes(a *AuthTester) (map[string]string, map[string]RouteCheck) {
167
167
// skipRoutes allows skipping routes from being checked.
168
168
skipRoutes := map [string ]string {
169
169
"POST:/api/v2/users/logout" : "Logging out deletes the API Key for other routes" ,
170
+ "GET:/derp" : "This requires a WebSocket upgrade!" ,
170
171
}
171
172
172
173
assertRoute := map [string ]RouteCheck {
@@ -193,11 +194,8 @@ func AGPLRoutes(a *AuthTester) (map[string]string, map[string]RouteCheck) {
193
194
"GET:/api/v2/workspaceagents/me/listen" : {NoAuthorize : true },
194
195
"GET:/api/v2/workspaceagents/me/metadata" : {NoAuthorize : true },
195
196
"GET:/api/v2/workspaceagents/me/turn" : {NoAuthorize : true },
196
- "GET:/api/v2/workspaceagents/me/derp" : {NoAuthorize : true },
197
- "GET:/api/v2/workspaceagents/me/wireguardlisten" : {NoAuthorize : true },
198
- "POST:/api/v2/workspaceagents/me/keys" : {NoAuthorize : true },
197
+ "GET:/api/v2/workspaceagents/me/coordinate" : {NoAuthorize : true },
199
198
"GET:/api/v2/workspaceagents/{workspaceagent}/iceservers" : {NoAuthorize : true },
200
- "GET:/api/v2/workspaceagents/{workspaceagent}/derp" : {NoAuthorize : true },
201
199
202
200
// These endpoints have more assertions. This is good, add more endpoints to assert if you can!
203
201
"GET:/api/v2/organizations/{organization}" : {AssertObject : rbac .ResourceOrganization .InOrg (a .Admin .OrganizationID )},
@@ -270,6 +268,10 @@ func AGPLRoutes(a *AuthTester) (map[string]string, map[string]RouteCheck) {
270
268
AssertAction : rbac .ActionCreate ,
271
269
AssertObject : workspaceExecObj ,
272
270
},
271
+ "GET:/api/v2/workspaceagents/{workspaceagent}/coordinate" : {
272
+ AssertAction : rbac .ActionCreate ,
273
+ AssertObject : workspaceExecObj ,
274
+ },
273
275
"GET:/api/v2/workspaces/" : {
274
276
StatusCode : http .StatusOK ,
275
277
AssertAction : rbac .ActionRead ,
0 commit comments