File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
rust/operator-binary/src/authorization Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl SupersetOpaConfig {
4242 // CUSTOM_SECURITY_MANAGER = None => CUSTOM_SECURITY_MANAGER = ""
4343 // Could be better if not set.
4444 pub fn as_config ( & self ) -> BTreeMap < String , Option < String > > {
45- let config = BTreeMap :: from ( [
45+ BTreeMap :: from ( [
4646 (
4747 "CUSTOM_SECURITY_MANAGER" . to_string ( ) ,
4848 Some ( "OpaSupersetSecurityManager" . to_string ( ) ) ,
@@ -56,6 +56,7 @@ impl SupersetOpaConfig {
5656 ) ,
5757 // There is no proper way to interfere this without changing e.g. CRD's.
5858 // Thus, we go for an default and make it accessible through envOverrides.
59+ // TODO: Documentation
5960 (
6061 "STACKABLE_OPA_RULE" . to_string ( ) ,
6162 Some ( "os.getenv('STACKABLE_OPA_RULE', 'user_roles')" . to_string ( ) ) ,
@@ -68,7 +69,6 @@ impl SupersetOpaConfig {
6869 "STACKABLE_OPA_PACKAGE" . to_string ( ) ,
6970 self . opa_package . clone ( ) ,
7071 ) ,
71- ] ) ;
72- config
72+ ] )
7373 }
7474}
You can’t perform that action at this time.
0 commit comments