{"id":15813511,"url":"https://github.com/alexkravets/devices","last_synced_at":"2025-04-01T00:46:54.221Z","repository":{"id":141737199,"uuid":"371653709","full_name":"alexkravets/devices","owner":"alexkravets","description":"Token validation service for iOS devices.","archived":false,"fork":false,"pushed_at":"2021-06-19T06:34:45.000Z","size":190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T04:02:37.784Z","etag":null,"topics":["aws","device","ios","serverless","token","validation"],"latest_commit_sha":null,"homepage":"https://api.dev.devices.kra.vc/v1/","language":"JavaScript","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/alexkravets.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":"2021-05-28T09:45:39.000Z","updated_at":"2021-06-19T06:34:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3d3065d-f870-44e5-9501-afc88d1dc766","html_url":"https://github.com/alexkravets/devices","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/alexkravets%2Fdevices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkravets%2Fdevices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkravets%2Fdevices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexkravets%2Fdevices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexkravets","download_url":"https://codeload.github.com/alexkravets/devices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563381,"owners_count":20797446,"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":["aws","device","ios","serverless","token","validation"],"created_at":"2024-10-05T04:02:47.599Z","updated_at":"2025-04-01T00:46:54.197Z","avatar_url":"https://github.com/alexkravets.png","language":"JavaScript","readme":"# @kravc/devices\n\nDevice token validation service for iOS wrapped into `AWS Serverless` function\nthat relies on `AWS Secrets Manager` to store private key.\n\nAPI Reference: https://api.dev.devices.kra.vc/v1/#/\n\n\n## Configuration\n\nUpdate `url` value to where the service is going to be hosted in configuration\nfiles:\n\n- `config/serverless-dev.yaml`\n- `config/serverless-prd.yaml`\n\nCreate secret via AWS secret manager to include:\n\n```json\n{\n  \"devices\": {\n    \"keyId\":      \"KEY_ID\",\n    \"teamId\":     \"TEAM_ID\",\n    \"privateKey\": \"PRIVATE_KEY\"\n  }\n}\n```\n\nNOTE: Check the tutorial on how to get secret values:\n      https://fluffy.es/devicecheck-tutorial/#serverside\n\nUpdate `serverless.custom.secrets` value to include secret path (`kravc/dev` and\n`kravc/prd` has to be replace with custom values):\n\n- `config/serverless-dev.yaml`\n- `config/serverless-prd.yaml`\n\nUpdate `aws.region` and `aws.profile` to match your deployment preferences.\n\n\n## Build, Test, Deploy\n\nInstall dependencies:\n\n```sh\nnpm install\n```\n\nRun test:\n\n```sh\nnpm run test\n```\n\nRun service locally:\n\n```sh\nnpm run start\n```\n\nDeploy service to `dev` (`prd`) environment:\n\n```sh\nnpx deploy dev\n```\n\nShow service logs from `dev` (`prd`) environment:\n\n```sh\nnpx logs dev\n```\n\nShow service details from `dev` (`prd`) environment:\n\n```sh\nnpx info dev\n```\n\n\n---\n\nAuthor: [Alexander Kravets](mailto:a@kra.vc)\n\nRevision: June 19, 2021\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkravets%2Fdevices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexkravets%2Fdevices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexkravets%2Fdevices/lists"}