mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add API key scope to restrict access to user data (#17692)
This commit is contained in:
@@ -212,6 +212,7 @@ func WorkspaceAgent(t testing.TB, db database.Store, orig database.WorkspaceAgen
|
||||
MOTDFile: takeFirst(orig.TroubleshootingURL, ""),
|
||||
DisplayApps: append([]database.DisplayApp{}, orig.DisplayApps...),
|
||||
DisplayOrder: takeFirst(orig.DisplayOrder, 1),
|
||||
APIKeyScope: takeFirst(orig.APIKeyScope, database.AgentKeyScopeEnumAll),
|
||||
})
|
||||
require.NoError(t, err, "insert workspace agent")
|
||||
return agt
|
||||
|
||||
Reference in New Issue
Block a user