Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CloudDefenseAI/AWSZeroTrustPolicy
/ functions
Functions
72 in github.com/CloudDefenseAI/AWSZeroTrustPolicy
⨍
Functions
72
◇
Types & classes
6
↳
Endpoints
1
↓ 9 callers
Method
connect
(self, serviceName, aws_access_key_id, aws_secret_access_key)
aws/awsOps.py:40
↓ 3 callers
Function
empty_directory
(directory_name)
runner.py:57
↓ 3 callers
Method
exists
(self, key)
redisops/redisOps.py:93
↓ 3 callers
Function
load_policies_from_directory
(directory_name: str)
runner.py:92
↓ 2 callers
Function
expand_wildcard_actions
(actions_list, service_actions_cache=None)
aws/comparePolicies.py:99
↓ 2 callers
Method
get_assume_role_credentials
(self, account)
aws/awsOps.py:78
↓ 2 callers
Function
load_policy
(filepath)
aws/comparePolicies.py:48
↓ 2 callers
Function
measure_time_block
(message: str = "Execution time")
aws/s3Ops.py:32
↓ 1 callers
Method
cleanup
(self)
aws/dataCleanup.py:8
↓ 1 callers
Function
compare_policy
(current_policy, generated_policy)
aws/comparePolicies.py:132
↓ 1 callers
Method
connect_to_iam_with_assumed_role
(self, aws_credentials)
aws/awsOps.py:9
↓ 1 callers
Method
connect_to_s3_with_assumed_role
(self, aws_credentials)
aws/awsOps.py:48
↓ 1 callers
Function
create_dirs
(account_id)
runner.py:39
↓ 1 callers
Function
create_service_actions_cache
(services)
aws/comparePolicies.py:26
↓ 1 callers
Function
create_service_actions_cache
(services)
aws/createServiceMap.py:18
↓ 1 callers
Function
create_service_map
(mergedData)
aws/createServiceMap.py:42
↓ 1 callers
Function
create_services_list
(actions_data)
aws/comparePolicies.py:18
↓ 1 callers
Function
create_services_list
(actions_data)
aws/createServiceMap.py:10
↓ 1 callers
Function
generateLeastprivPolicies
(user_arn, policy_output_dir, actions_list)
aws/policygenOps.py:102
↓ 1 callers
Function
generate_least_privilege_policy
( user_arn, actions_data, service_actions_cache, service_replace_map )
aws/policygenOps.py:61
↓ 1 callers
Method
getConfig
(self)
aws/s3Ops.py:60
↓ 1 callers
Method
getConnection
(self)
aws/awsOps.py:59
↓ 1 callers
Method
getObjects
(self, completedBuckets, bucketData, num_days, unique_id)
aws/s3Ops.py:95
↓ 1 callers
Method
getPolicies
(self, account_id, num_days, bucketData, unique_id)
aws/s3Ops.py:129
↓ 1 callers
Method
get_all_keys
(self)
redisops/redisOps.py:53
↓ 1 callers
Method
get_iam_connection
(self)
aws/awsOps.py:20
↓ 1 callers
Method
get_list_items
(self, key)
redisops/redisOps.py:49
↓ 1 callers
Function
get_policies_for_users
(path, merged_data)
aws/getPreviousPolicies.py:18
↓ 1 callers
Method
get_redis_dump
(self)
redisops/redisOps.py:76
↓ 1 callers
Function
get_user_arn
(username)
runner.py:85
↓ 1 callers
Method
insertKeyVal
(self, key, value)
redisops/redisOps.py:9
↓ 1 callers
Method
is_request_processed
(self, account_id, bucket_name, date, region)
aws/s3Ops.py:91
↓ 1 callers
Function
is_valid_action
(action)
aws/comparePolicies.py:54
↓ 1 callers
Function
is_valid_arn
(arn)
aws/getPreviousPolicies.py:14
↓ 1 callers
Function
load_service_actions_cache
(file_path)
aws/policygenOps.py:51
↓ 1 callers
Function
load_service_replace_map
(file_path)
aws/policygenOps.py:56
↓ 1 callers
Function
measure_time_block
(message: str = "Execution time")
runner.py:18
↓ 1 callers
Method
mergeData
(self, accountId, num_days, bucketData)
aws/s3Ops.py:65
↓ 1 callers
Method
push_back
(self, key, value)
redisops/redisOps.py:17
↓ 1 callers
Method
push_back_nested_json
(self, outer_key, inner_key, jsonObj)
redisops/redisOps.py:60
↓ 1 callers
Method
read_json
(self, key)
redisops/redisOps.py:39
↓ 1 callers
Function
reformat_bucket_data
(bucket_data)
runner.py:112
↓ 1 callers
Function
runPolicyGeneratorCRUD
(filePath, date, region, bucketName, accountID)
aws/policygenOps.py:117
↓ 1 callers
Function
runner
( accountType, aws_access_key_id, aws_secret_access_key, accountId, num_days, bu
runner.py:122
↓ 1 callers
Function
user_exists
(iam_client, user_name)
aws/getPreviousPolicies.py:91
↓ 1 callers
Function
write_service_actions_cache_to_file
(service_actions_cache, file_path)
aws/comparePolicies.py:43
↓ 1 callers
Function
write_service_actions_cache_to_file
(service_actions_cache, file_path)
aws/createServiceMap.py:27
Method
__init__
(self, redis_connection)
aws/dataCleanup.py:5
Method
__init__
(self)
aws/s3Ops.py:54
Function
bucketThreadFn
( completedBuckets, bucketName, regions, startDay, endDay, accountId, day_d
aws/s3Ops.py:151
Function
compare_policies
()
aws/comparePolicies.py:169
Function
compare_policy_worker
( present_policy_filepath, user_policy_filepath, output_filepath )
aws/comparePolicies.py:58
Method
connect
(self, host, port, dbNum)
redisops/redisOps.py:6
Method
createList
(self, key, value_list)
redisops/redisOps.py:12
Function
dayThreadFn
(day, accountId, region, s3Client, bucketName, completedDays, unique_id)
aws/s3Ops.py:234
Function
fatal
(message)
utils/helpers.py:6
Method
flushdb
(self)
redisops/redisOps.py:57
Function
getTimings
(num_days)
utils/helpers.py:17
Function
get_event_type
(event_name)
aws/policygenOps.py:20
Function
get_policy_from_file
(folder, username)
runner.py:78
Function
get_previous_policies
(iam_client, path, current_user)
aws/getPreviousPolicies.py:39
Method
insert_json
(self, key, json_object)
redisops/redisOps.py:36
Method
insert_jsonobj_list
(self, key, listOfJsonObjects)
redisops/redisOps.py:45
Function
is_valid_action
(action)
aws/createServiceMap.py:38
Function
load_policy
(filepath)
aws/createServiceMap.py:32
Function
logException
(exp)
utils/helpers.py:12
Method
pop_back
(self, key)
redisops/redisOps.py:30
Method
pop_front
(self, key)
redisops/redisOps.py:33
Method
push_back_json
(self, key, jsonObj)
redisops/redisOps.py:24
Method
push_front
(self, key, value)
redisops/redisOps.py:21
Function
regionThreadFn
( startDay, endDay, accountId, region, s3Client, bucketName, completedRegio
aws/s3Ops.py:192
Function
run_script
(script: Script)
app.py:12