@@ -1366,6 +1366,8 @@ class PAMConfigurationNewCommand(Command, PamConfigurationEditMixin):
1366
1366
action = 'store_true' , help = 'Enable tunneling' )
1367
1367
parser .add_argument ('--enable-rotation' , '-er' , dest = 'enable_rotation' , action = 'store_true' ,
1368
1368
help = 'Enable rotation' )
1369
+ parser .add_argument ('--enable-remote-browser-isolation' , '-erbi' , dest = 'enable_remotebrowserisolation' ,
1370
+ action = 'store_true' , help = 'Enable remote browser isolation' )
1369
1371
parser .add_argument ('--enable-connections-recording' , '-ecr' , required = False , dest = 'recordingenabled' ,
1370
1372
action = 'store_true' , help = 'Enable recording connections for the resource' )
1371
1373
parser .add_argument ('--enable-typescripts-recording' , '-etcr' , required = False , dest = 'typescriptrecordingenabled' ,
@@ -1434,7 +1436,8 @@ def execute(self, params, **kwargs):
1434
1436
bool (kwargs .get ('enable_tunneling' )),
1435
1437
bool (kwargs .get ('enable_rotation' )),
1436
1438
bool (kwargs .get ('recordingenabled' )),
1437
- bool (kwargs .get ('typescriptrecordingenabled' ))
1439
+ bool (kwargs .get ('typescriptrecordingenabled' )),
1440
+ bool (kwargs .get ('enable_remotebrowserisolation' ))
1438
1441
)
1439
1442
tmp_dag .print_tunneling_config (record .record_uid , None )
1440
1443
@@ -1473,6 +1476,10 @@ class PAMConfigurationEditCommand(Command, PamConfigurationEditMixin):
1473
1476
help = 'Enable connections' )
1474
1477
parser .add_argument ('--disable-connections' , '-dc' , required = False , dest = 'disable_connections' , action = 'store_true' ,
1475
1478
help = 'Enable connections' )
1479
+ parser .add_argument ('--enable-remote-browser-isolation' , '-erbi' , required = False , dest = 'enable_remotebrowserisolation' , action = 'store_true' ,
1480
+ help = 'Enable remote browser isolation' )
1481
+ parser .add_argument ('--disable-remote-browser-isolation' , '-drbi' , required = False , dest = 'disable_remotebrowserisolation' , action = 'store_true' ,
1482
+ help = 'Disable remote browser isolation' )
1476
1483
parser .add_argument ('--enable-connections-recording' , '-ecr' , required = False , dest = 'enable_connections_recording' ,
1477
1484
action = 'store_true' , help = 'Enable connections recording' )
1478
1485
parser .add_argument ('--disable-connections-recording' , '-dcr' , required = False , dest = 'disable_connections_recording' ,
@@ -1563,26 +1570,31 @@ def execute(self, params, **kwargs):
1563
1570
if ((kwargs .get ('enable_connections' ) and kwargs .get ('disable_connections' )) or
1564
1571
(kwargs .get ('enable_tunneling' ) and kwargs .get ('disable_tunneling' )) or
1565
1572
(kwargs .get ('enable_rotation' ) and kwargs .get ('disable_rotation' )) or
1573
+ (kwargs .get ('enable_remotebrowserisolation' ) and kwargs .get ('disable_remotebrowserisolation' )) or
1566
1574
(kwargs .get ('enable_connections_recording' ) and kwargs .get ('disable_connections_recording' )) or
1567
1575
(kwargs .get ('enable_typescripts_recording' ) and kwargs .get ('disable_typescripts_recording' ))):
1568
1576
raise CommandError ('pam-config-edit' , 'Cannot enable and disable the same feature at the same time' )
1569
1577
1570
1578
# First check if enabled is true then check if disabled is true. if not then set it to None
1571
1579
_connections = True if kwargs .get ('enable_connections' ) \
1572
1580
else False if kwargs .get ('disable_connections' ) else None
1573
- _tunneling = True if kwargs .get ('enable_tunneling' ) else False if kwargs .get ('disable_tunneling' ) else None
1574
- _rotation = True if kwargs .get ('enable_rotation' ) else False if kwargs .get ('disable_rotation' ) else None
1581
+ _tunneling = True if kwargs .get ('enable_tunneling' ) \
1582
+ else False if kwargs .get ('disable_tunneling' ) else None
1583
+ _rotation = True if kwargs .get ('enable_rotation' ) \
1584
+ else False if kwargs .get ('disable_rotation' ) else None
1585
+ _rbi = True if kwargs .get ('enable_remotebrowserisolation' ) \
1586
+ else False if kwargs .get ('disable_remotebrowserisolation' ) else None
1575
1587
_recording = True if kwargs .get ('enable_connections_recording' ) \
1576
1588
else False if kwargs .get ('disable_connections_recording' ) else None
1577
- _typescript_recording = ( True if kwargs .get ('enable_typescripts_recording' ) else False if
1578
- kwargs .get ('disable_typescripts_recording' ) else None )
1589
+ _typescript_recording = True if kwargs .get ('enable_typescripts_recording' ) \
1590
+ else False if kwargs .get ('disable_typescripts_recording' ) else None
1579
1591
1580
- if (_connections is not None or _tunneling is not None or _rotation is not None or _recording is not None or
1581
- _typescript_recording is not None ):
1592
+ if (_connections is not None or _tunneling is not None or _rotation is not None or _rbi is not None or
1593
+ _recording is not None or _typescript_recording is not None ):
1582
1594
encrypted_session_token , encrypted_transmission_key , transmission_key = get_keeper_tokens (params )
1583
1595
tmp_dag = TunnelDAG (params , encrypted_session_token , encrypted_transmission_key ,
1584
1596
configuration .record_uid , is_config = True )
1585
- tmp_dag .edit_tunneling_config (_connections , _tunneling , _rotation , _recording , _typescript_recording )
1597
+ tmp_dag .edit_tunneling_config (_connections , _tunneling , _rotation , _recording , _typescript_recording , _rbi )
1586
1598
tmp_dag .print_tunneling_config (configuration .record_uid , None )
1587
1599
for w in self .warnings :
1588
1600
logging .warning (w )
0 commit comments