Skip to content

Commit c9a7dac

Browse files
committed
Enable vtab_externalauth_warn by default
Signed-off-by: mkhullar <mohit.khullar@gmail.com>
1 parent 5e61ccc commit c9a7dac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

db/comdb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int gbl_allow_old_authn = 1;
241241
int gbl_uses_externalauth = 0;
242242
int gbl_vtab_externalauth = 0;
243243
int gbl_vtab_externalauth_strict = 0;
244-
int gbl_vtab_externalauth_warn = 0;
244+
int gbl_vtab_externalauth_warn = 1;
245245
#ifdef COMDB2_TEST
246246
int gbl_uses_simpleauth = 0;
247247
#endif

db/db_tunables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ REGISTER_TUNABLE("vtab_externalauth", "Use IAM for vtab access control (Default:
24412441
REGISTER_TUNABLE("vtab_externalauth_strict", "Enforce access control on all CDB2_ALLOW_USER vtabs (Default: off)",
24422442
TUNABLE_BOOLEAN, &gbl_vtab_externalauth_strict, 0, NULL, NULL, NULL, NULL);
24432443

2444-
REGISTER_TUNABLE("vtab_externalauth_warn", "Log vtab access denials without enforcing (Default: off)", TUNABLE_BOOLEAN,
2444+
REGISTER_TUNABLE("vtab_externalauth_warn", "Log vtab access denials without enforcing (Default: on)", TUNABLE_BOOLEAN,
24452445
&gbl_vtab_externalauth_warn, 0, NULL, NULL, NULL, NULL);
24462446

24472447
REGISTER_TUNABLE("externalauth_warn", "Warn instead of returning error in case of missing authdata",

tests/tunables.test/t00_all_tunables.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@
11541154
(name='views_dft_roll_delete_lag_secs', description='Amount of seconds to run phase 3 of time partition rollout after phase 2', type='INTEGER', value='5', read_only='N')
11551155
(name='vtab_externalauth', description='Use IAM for vtab access control (Default: off)', type='BOOLEAN', value='OFF', read_only='N')
11561156
(name='vtab_externalauth_strict', description='Enforce access control on all CDB2_ALLOW_USER vtabs (Default: off)', type='BOOLEAN', value='OFF', read_only='N')
1157-
(name='vtab_externalauth_warn', description='Log vtab access denials without enforcing (Default: off)', type='BOOLEAN', value='OFF', read_only='N')
1157+
(name='vtab_externalauth_warn', description='Log vtab access denials without enforcing (Default: on)', type='BOOLEAN', value='ON', read_only='N')
11581158
(name='wait_for_prepare_seqnum', description='Wait-for-seqnum for prepare records. (Default: on)', type='BOOLEAN', value='ON', read_only='N')
11591159
(name='wait_for_seqnum_trace', description='', type='BOOLEAN', value='OFF', read_only='N')
11601160
(name='wal_osync', description='Open WAL files using the O_SYNC flag (Default: off)', type='BOOLEAN', value='OFF', read_only='N')

0 commit comments

Comments
 (0)