@@ -14,7 +14,7 @@ type GitpodServerMethodType =
1414 | keyof Omit < GitpodServer , "dispose" | "setClient" >
1515 | typeof accessCodeSyncStorage
1616 | typeof accessHeadlessLogs ;
17- type GroupKey = "default" | "startWorkspace" | "createWorkspace" | "phoneVerification" | "sendHeartBeat" ;
17+ type GroupKey = "default" | "startWorkspace" | "createWorkspace" | "phoneVerification" | "sendHeartBeat" | "getToken" ;
1818type GroupsConfig = {
1919 [ key : string ] : {
2020 points : number ;
@@ -57,7 +57,7 @@ const defaultFunctions: FunctionsConfig = {
5757 deleteOrgAuthProvider : { group : "default" , points : 1 } ,
5858 getConfiguration : { group : "default" , points : 1 } ,
5959 getGitpodTokenScopes : { group : "default" , points : 1 } ,
60- getToken : { group : "default " , points : 1 } ,
60+ getToken : { group : "getToken " , points : 1 } ,
6161 deleteAccount : { group : "default" , points : 1 } ,
6262 getClientRegion : { group : "default" , points : 1 } ,
6363 getWorkspaces : { group : "default" , points : 1 } ,
@@ -207,6 +207,10 @@ function getConfig(config: RateLimiterConfig): RateLimiterConfig {
207207 points : 200 , // 200 calls per user, per connection, per minute
208208 durationsSec : 60 ,
209209 } ,
210+ getToken : {
211+ points : 200 , // 200 calls per user, per connection, per minute
212+ durationsSec : 60 ,
213+ } ,
210214 startWorkspace : {
211215 points : 3 , // 3 workspace starts per user per 10s
212216 durationsSec : 10 ,
0 commit comments