File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
operator-binary/src/authorization Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ pub enum SupersetConfigOptions {
9090 StackableOpaBaseUrl ,
9191 StackableOpaPackage ,
9292 StackableOpaRule ,
93+ OpaRolesCache ,
9394}
9495
9596impl SupersetConfigOptions {
@@ -143,6 +144,7 @@ impl FlaskAppConfigOptions for SupersetConfigOptions {
143144 SupersetConfigOptions :: StackableOpaBaseUrl => PythonType :: StringLiteral ,
144145 SupersetConfigOptions :: StackableOpaPackage => PythonType :: StringLiteral ,
145146 SupersetConfigOptions :: StackableOpaRule => PythonType :: Expression ,
147+ SupersetConfigOptions :: OpaRolesCache => PythonType :: Expression ,
146148 }
147149 }
148150}
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ impl SupersetOpaConfig {
6565 "STACKABLE_OPA_PACKAGE" . to_string ( ) ,
6666 self . opa_package . clone ( ) ,
6767 ) ,
68+ (
69+ "OPA_ROLES_CACHE" . to_string ( ) ,
70+ Some ( "os.getenv('OPA_ROLES_CACHE', '10')" . to_string ( ) ) ,
71+ ) ,
6872 ] )
6973 }
7074}
You can’t perform that action at this time.
0 commit comments