File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed 
operator-binary/src/authorization Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ pub enum SupersetConfigOptions {
8989    CustomSecurityManager , 
9090    StackableOpaEndpoint , 
9191    StackableOpaPackage , 
92+     StackableOpaRule , 
9293} 
9394
9495impl  SupersetConfigOptions  { 
@@ -140,6 +141,7 @@ impl FlaskAppConfigOptions for SupersetConfigOptions {
140141            SupersetConfigOptions :: CustomSecurityManager  => PythonType :: Expression , 
141142            SupersetConfigOptions :: StackableOpaEndpoint  => PythonType :: StringLiteral , 
142143            SupersetConfigOptions :: StackableOpaPackage  => PythonType :: StringLiteral , 
144+             SupersetConfigOptions :: StackableOpaRule  => PythonType :: Expression , 
143145            // TODO: Set new options for OpaSecurityManager like: 
144146        } 
145147    } 
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ impl SupersetOpaConfig {
5252                "AUTH_USER_REGISTRATION_ROLE" . to_string ( ) , 
5353                Some ( "os.getenv('AUTH_USER_REGISTRATION_ROLE', 'Public')" . to_string ( ) ) , 
5454            ) , 
55-             // TODO: Figure out how  to tell a what are the  
56-             // rule names used . 
55+             // There is no proper way  to interfere this without changing e.g. CRD's.  
56+             // Thus, we go for an default and make it accessible through envoverrides . 
5757            ( 
5858                "STACKABLE_OPA_RULE" . to_string ( ) , 
59-                 Some ( "os.getenv('STACKABLE_OPA_RULE ', 'user_roles')" . to_string ( ) ) , 
59+                 Some ( "os.getenv('OPA_RULE ', 'user_roles')" . to_string ( ) ) , 
6060            ) , 
6161            ( 
6262                "STACKABLE_OPA_ENDPOINT" . to_string ( ) , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments