2023-10-19 12:02:59 +03:00
|
|
|
#!/usr/bin/env python3
|
2023-10-23 23:19:37 +03:00
|
|
|
# Copyright 2023, Spearhead Systems SRL.
|
2023-10-19 12:02:59 +03:00
|
|
|
|
|
|
|
def agent_azure_keyvault(params, hostname, ipaddress):
|
2023-10-23 23:19:37 +03:00
|
|
|
tenant = params["tenant"]
|
|
|
|
client = params["client"]
|
|
|
|
secret = params["secret"]
|
|
|
|
|
|
|
|
args = [tenant, client, secret]
|
2023-10-19 12:55:47 +03:00
|
|
|
|
2023-10-23 23:19:37 +03:00
|
|
|
for vault in params["vaults"]:
|
2023-10-19 12:55:47 +03:00
|
|
|
args.extend([vault.strip()])
|
|
|
|
|
|
|
|
return args
|
2023-10-19 12:02:59 +03:00
|
|
|
|
|
|
|
special_agent_info["azure_keyvault"] = agent_azure_keyvault
|