IAM政策和角色审计员

probator-auditor-iam的Python项目详细描述


认证审计师IAM

请在Probator存储库中打开问题

说明

该审计师验证并应用AWS账户的IAM政策。

配置选项

Option nameDefault ValueTypeDescription
enabled^{}boolEnable the IAM roles and auditor
interval^{}intHow often the auditor executes, in minutes
manage_roles^{}boolEnable management of IAM roles
roles^{}stringJSON document with roles to push to accounts. See below for example
delete_inline_policies^{}boolDelete inline policies from existing roles
hostnameNonestringGit server hostname
repositoryNonestringPath of the Git repository
authentication_type^{}stringAuthentication type
oauth_tokenNonestringOAuth2 token. Required if ^{} is ^{}
usernameNonestringGit username. Required if ^{} is ^{}
passwordNonestringGit password./Required if ^{} is ^{}
max_session_duration^{}stringIAM Assume Role MaxSessionDuration (in hours)
disable_ssl_verify^{}boolDisable SSL certificate validation

roles配置

roles设置允许您配置角色,以便在Probator中启用的所有帐户上创建和管理。json文档的结构如下 一个字典,顶级键是角色的名称,字典值有两个键;trustpolicies

trust

trust设置必须是有效的IAM假定角色策略文档。如果trust键是空对象({})、空或未设置,则默认信任 提供文件。

policies

policies键包含要附加到角色的IAM策略名称列表。在运行审计师之前,这些政策必须存在于账户内。 最好是由审计人员创建。

示例文档

下面的示例演示如何管理Probator在监视和审核您的帐户时所扮演的角色

{"probator_role":{"trust":{"Version":"2012-10-17","Statement":[{"Sid":"","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::123456789012:role/probator-instance-role","Service":"ec2.amazonaws.com"},"Action":"sts:AssumeRole"}]},"policies":["ProbatorAccess"]}}

本项目基于Riot Games为Cloud Inquisitor所做的工作

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpring重定向请求处理程序   SwingJava:拆分字符串并将其放入文本区域的   Java:标记“”上出现语法错误,此标记后面应为表达式   web服务Java RestService从日志文件写入和读取数据   java如何将ArrayList<String>转换为char数组,然后向后打印每个单词?   java SimpleDataFormat解析返回年终日期   加密Java aes解密bytebuffer,包括填充为空字节   java有没有办法从特定的if语句调用变量?   java从更新返回到渲染   spring GRPC Java登录测试   java为什么下面的代码不工作(StringBuffer.toString!=null)   java是一种可行的模式吗?   使用Spring集成测试的JavaOSGi片段   java jCommander为未知和未使用的值引发异常?   在imageView的editText中输入的java图像URL