@@ -24,7 +24,7 @@ pub enum Action {
2424 Query ,
2525 CreateStream ,
2626 ListStream ,
27- GetStream ,
27+ GetStreamInfo ,
2828 GetSchema ,
2929 GetStats ,
3030 DeleteStream ,
@@ -63,6 +63,8 @@ pub enum Action {
6363 DeleteFilter ,
6464 ListCache ,
6565 RemoveCache ,
66+ Login ,
67+ Metrics ,
6668}
6769
6870#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -102,7 +104,9 @@ impl RoleBuilder {
102104 self . stream . clone ( ) . unwrap ( ) ,
103105 self . tag . clone ( ) ,
104106 ) ,
105- Action :: PutUser
107+ Action :: Login
108+ | Action :: Metrics
109+ | Action :: PutUser
106110 | Action :: ListUser
107111 | Action :: PutUserRoles
108112 | Action :: GetUserRoles
@@ -115,7 +119,7 @@ impl RoleBuilder {
115119 | Action :: ListRole
116120 | Action :: CreateStream
117121 | Action :: DeleteStream
118- | Action :: GetStream
122+ | Action :: GetStreamInfo
119123 | Action :: ListStream
120124 | Action :: ListCluster
121125 | Action :: ListClusterMetrics
@@ -201,11 +205,14 @@ pub mod model {
201205 fn editor_perm_builder ( ) -> RoleBuilder {
202206 RoleBuilder {
203207 actions : vec ! [
208+ Action :: Login ,
209+ Action :: Metrics ,
204210 Action :: Ingest ,
205211 Action :: Query ,
206212 Action :: CreateStream ,
213+ Action :: DeleteStream ,
207214 Action :: ListStream ,
208- Action :: GetStream ,
215+ Action :: GetStreamInfo ,
209216 Action :: GetSchema ,
210217 Action :: GetStats ,
211218 Action :: GetRetention ,
@@ -217,8 +224,15 @@ pub mod model {
217224 Action :: DeleteHotTierEnabled ,
218225 Action :: PutAlert ,
219226 Action :: GetAlert ,
220- Action :: GetAbout ,
221227 Action :: QueryLLM ,
228+ Action :: CreateFilter ,
229+ Action :: ListFilter ,
230+ Action :: GetFilter ,
231+ Action :: DeleteFilter ,
232+ Action :: ListDashboard ,
233+ Action :: GetDashboard ,
234+ Action :: CreateDashboard ,
235+ Action :: DeleteDashboard ,
222236 ] ,
223237 stream : Some ( "*" . to_string ( ) ) ,
224238 tag : None ,
@@ -228,17 +242,31 @@ pub mod model {
228242 fn writer_perm_builder ( ) -> RoleBuilder {
229243 RoleBuilder {
230244 actions : vec ! [
231- Action :: Ingest ,
245+ Action :: Login ,
232246 Action :: Query ,
233247 Action :: ListStream ,
234- Action :: GetStream ,
235248 Action :: GetSchema ,
236249 Action :: GetStats ,
237- Action :: GetRetention ,
250+ Action :: PutRetention ,
238251 Action :: PutAlert ,
239252 Action :: GetAlert ,
240- Action :: GetAbout ,
253+ Action :: GetRetention ,
254+ Action :: PutHotTierEnabled ,
255+ Action :: GetHotTierEnabled ,
256+ Action :: DeleteHotTierEnabled ,
257+ Action :: ListDashboard ,
258+ Action :: GetDashboard ,
259+ Action :: CreateDashboard ,
260+ Action :: DeleteDashboard ,
261+ Action :: Ingest ,
241262 Action :: QueryLLM ,
263+ Action :: GetStreamInfo ,
264+ Action :: GetCacheEnabled ,
265+ Action :: PutCacheEnabled ,
266+ Action :: GetFilter ,
267+ Action :: ListFilter ,
268+ Action :: CreateFilter ,
269+ Action :: DeleteFilter ,
242270 ] ,
243271 stream : None ,
244272 tag : None ,
@@ -248,17 +276,21 @@ pub mod model {
248276 fn reader_perm_builder ( ) -> RoleBuilder {
249277 RoleBuilder {
250278 actions : vec ! [
279+ Action :: Login ,
251280 Action :: Query ,
252281 Action :: ListStream ,
253- Action :: GetStream ,
254282 Action :: GetSchema ,
255283 Action :: GetStats ,
256- Action :: GetRetention ,
257- Action :: GetAlert ,
258- Action :: GetAbout ,
259284 Action :: QueryLLM ,
260- Action :: ListCluster ,
261- Action :: GetHotTierEnabled ,
285+ Action :: ListFilter ,
286+ Action :: GetFilter ,
287+ Action :: CreateFilter ,
288+ Action :: DeleteFilter ,
289+ Action :: ListDashboard ,
290+ Action :: GetDashboard ,
291+ Action :: CreateDashboard ,
292+ Action :: DeleteDashboard ,
293+ Action :: GetStreamInfo ,
262294 ] ,
263295 stream : None ,
264296 tag : None ,
0 commit comments