{"id":20708559,"url":"https://github.com/matb85/aws-iam-parsing","last_synced_at":"2026-04-19T18:31:50.313Z","repository":{"id":231867825,"uuid":"782902410","full_name":"Matb85/aws-iam-parsing","owner":"Matb85","description":"Home assignment for the Remitly Summer Internship 2024 recruitment process","archived":false,"fork":false,"pushed_at":"2024-04-10T08:15:31.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:41:16.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Matb85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T11:19:20.000Z","updated_at":"2024-07-19T15:00:21.000Z","dependencies_parsed_at":"2024-11-17T02:17:03.777Z","dependency_job_id":null,"html_url":"https://github.com/Matb85/aws-iam-parsing","commit_stats":null,"previous_names":["matb85/remitly-home-assignment","matb85/aws-iam-parsing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Matb85%2Faws-iam-parsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Matb85%2Faws-iam-parsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Matb85%2Faws-iam-parsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Matb85%2Faws-iam-parsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Matb85","download_url":"https://codeload.github.com/Matb85/aws-iam-parsing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242978359,"owners_count":20215972,"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-17T01:32:08.229Z","updated_at":"2026-04-19T18:31:50.273Z","avatar_url":"https://github.com/Matb85.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home assignment for the Remitly Summer Internship 2024 recruitment process\n\n## Created by Mateusz Bis 10 IV 2024\n\n### Features\n\nThis project impements an **verifyPolicyJSON** method that:\n\n- takes in a single argument - an AWS IAM Policy string as []bytes\n- verifies whether the []bytes string is a **valid** AWS::IAM::Role Policy\n- returns a bool value: **true** if the Resource policy field contains exactly one asterisk character, otherwise it returns **false** (inluding when the policy is invalid)\n\nThe method can be executed by running main.go - it reads JSON from data.json (which should be located in the root working directory), passes it to **verifyPolicyJSON** and prints out the function's result.\n\n### Requirements\n\nI've tested the project on go1.22.2, I cannot guarantee it will work on older versions.\n\nLink to download Golang version 1.22.2: https://go.dev/dl/\n\n### Steps to run the project:\n\n1. Clone the project\n\n```bash\n$ git clone https://github.com/Matb85/remitly-home-assignment.git\n$ cd ./remitly-home-assignment\n```\n\n2. Install dependencies\n\n```bash\n$ go get ./...\n# or\n$ go mod download\n```\n\n3. Prepare data and insert it to the data.json file\n\n```bash\n$ echo YOURDATA \u003e\u003e data.json\n\n```\n\n4. Run the project\n\n```bash\n$ go run ./main.go\n```\n\n5. Alternatively, build \u0026 run the project\n\n```bash\n$ go build ./main.go\n$ ./main\n```\n\n### Unit Tests\n\nI have written several unit tests for **verifyPolicyJSON** and **UnmarshalJSON** methods in order to ensure that everything works as expected.\n\nTo run the test suite, execute the following command:\n\n```bash\n$ go test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatb85%2Faws-iam-parsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatb85%2Faws-iam-parsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatb85%2Faws-iam-parsing/lists"}