{"id":18524511,"url":"https://github.com/stelligent/iam_complexity_metrics","last_synced_at":"2025-05-14T19:17:20.172Z","repository":{"id":38293908,"uuid":"246672522","full_name":"stelligent/iam_complexity_metrics","owner":"stelligent","description":"Experimenting with the notion of complexity metrics for IAM policy documents","archived":false,"fork":false,"pushed_at":"2022-06-07T21:35:38.000Z","size":17,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T00:26:55.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stelligent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-11T20:23:19.000Z","updated_at":"2020-03-27T14:01:05.000Z","dependencies_parsed_at":"2022-08-27T05:50:23.103Z","dependency_job_id":null,"html_url":"https://github.com/stelligent/iam_complexity_metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fiam_complexity_metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fiam_complexity_metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fiam_complexity_metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fiam_complexity_metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stelligent","download_url":"https://codeload.github.com/stelligent/iam_complexity_metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239242066,"owners_count":19605946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:42:07.620Z","updated_at":"2025-02-17T05:42:10.487Z","avatar_url":"https://github.com/stelligent.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prerequisites\n\n1. Install Ruby 2.5 or greater\n2. Install bundler if need be\n3. bundle install\n\n## SPCM for CloudFormation Templates\n\nTo compute the Stelligent Policy Complexity Metric (SPCM) against a directory of CloudFormation templates:\n\n```rake cfn_iam_metrics[/var/tmp/aws_sample_templates]```\n\nwhere /var/tmp/aws_sample_templates is a directory containing templates ending in either .yml, .yaml, .json, or .template\n\nThe parser is very limited and best effort around ignoring pseudo-functions and dynamic values embedded inside policy \ndocuments.\n\n## SPCM for Live IAM Policy Documents\n\nTo compute the Stelligent Policy Complexity Metric (SPCM) against all the AWS Managed Policy documents\nin an account:\n\n```rake live_iam_metrics[aws_profile]```\n\nwhere aws_profile is the name of the aws_profile to use to access the live AWS account, e.g. labs, dev, prod, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fiam_complexity_metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstelligent%2Fiam_complexity_metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fiam_complexity_metrics/lists"}