Skip to content

Commit 3959d96

Browse files
committed
IAM decision history
Signed-off-by: mohitkhullar <[email protected]>
1 parent 7a62dc5 commit 3959d96

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

db/comdb2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ int gbl_authentication_cache_ageout = 900;
245245
int gbl_authorization_cache_ageout = 600;
246246
int gbl_cache_authz_perms = 1;
247247
int gbl_iam_verbosity = 0;
248+
int gbl_iam_decision_history = 0;
248249
int gbl_use_sp_resource = 0;
249250
int gbl_upd_key;
250251
unsigned long long gbl_sqltick;

db/comdb2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,7 @@ extern int gbl_authentication_cache_ageout;
16471647
extern int gbl_authorization_cache_ageout;
16481648
extern int gbl_cache_authz_perms;
16491649
extern int gbl_iam_verbosity;
1650+
extern int gbl_iam_decision_history;
16501651
extern int gbl_use_sp_resource;
16511652
extern char* gbl_foreign_metadb;
16521653
extern char* gbl_foreign_metadb_class;

db/db_tunables.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,9 @@ REGISTER_TUNABLE("authorization_cache_ageout", "Max age of authorization cache (
24162416
REGISTER_TUNABLE("iam_usermetric_verbosity", "IAM user metric verbosity [Default: 0 (off)]", TUNABLE_INTEGER,
24172417
&gbl_iam_verbosity, 0, NULL, NULL, NULL, NULL);
24182418

2419+
REGISTER_TUNABLE("iam_decision_history", "Enable IAM decision history [Default: 0 (off)]", TUNABLE_INTEGER,
2420+
&gbl_iam_decision_history, 0, NULL, NULL, NULL, NULL);
2421+
24192422
REGISTER_TUNABLE("iam_allow_sp_resource", "Allow stored-procedure as IAM resource [Default: 0 (off)]", TUNABLE_INTEGER,
24202423
&gbl_use_sp_resource, 0, NULL, NULL, NULL, NULL);
24212424

tests/tunables.test/t00_all_tunables.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@
427427
(name='iam_allow_sp_resource', description='Allow stored-procedure as IAM resource [Default: 0 (off)]', type='INTEGER', value='0', read_only='N')
428428
(name='iam_base_bri', description='base resource identifier for IAM', type='STRING', value=NULL, read_only='Y')
429429
(name='iam_dbname', description='override dbname for IAM', type='STRING', value=NULL, read_only='Y')
430+
(name='iam_decision_history', description='Enable IAM decision history [Default: 0 (off)]', type='INTEGER', value='0', read_only='N')
430431
(name='iam_usermetric_verbosity', description='IAM user metric verbosity [Default: 0 (off)]', type='INTEGER', value='0', read_only='N')
431432
(name='ignore_bad_table', description='Allow a database with a corrupt table to come up, without that table.', type='BOOLEAN', value='OFF', read_only='N')
432433
(name='ignore_datetime_cast_failures', description='ignore_datetime_cast_failures', type='BOOLEAN', value='OFF', read_only='N')

0 commit comments

Comments
 (0)