{"repo":"Netflix/repokid","free":true,"listed":false,"github":"https://github.com/Netflix/repokid","clone":"git clone https://github.com/Netflix/repokid.git","description":"AWS Least Privilege for Distributed, High-Velocity Deployment","language":"Python","stars":1146,"topics":["security","aws"],"license":"Apache-2.0","category":"security-tools","readme_excerpt":"Repokid ======= Repokid uses Access Advisor provided by Aardvark to remove permissions granting access to unused services from the inline policies of IAM roles in an AWS account. Getting Started Install DynamoDB You will need a DynamoDB table called repokid roles (specify account and endpoint in dynamo db in config file). The table should have the following properties: - RoleId (string) as a primary partition key, no primary sort key - A global secondary index named Account with a primary partition key of Account and RoleId and Account as projected attributes - A global secondary index named RoleName with a primary partition key of RoleName and RoleId and RoleName as projected attributes For development, you can run dynamo locally. To run locally: The endpoint for DynamoDB will be http://localhost:8000 . A DynamoDB admin panel can be found at http://localhost:8001 . If you run the development version the table and index will be created for you automatically. IAM Permissions Repokid needs an IAM Role in each account that will be queried. Additionally, Repokid needs to be launched with a role or user which can sts:AssumeRole into the different account roles. RepokidInstanceProfile: - Only create one. - Needs the ability to call sts:AssumeRole into all of the RepokidRoles. - DynamoDB permissions for the repokid roles table and all indexes (specified in assume role subsection of dynamo db in config) and the ability to run dynamodb:ListTables RepokidRole: - Must exist in every acc","default_branch":null,"files":null,"tree":[],"storefront":"/r/Netflix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Netflix/repokid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}