{"id":18800153,"url":"https://github.com/fruit-testbed/p2p-update","last_synced_at":"2025-08-25T02:15:47.923Z","repository":{"id":64306778,"uuid":"94313150","full_name":"fruit-testbed/p2p-update","owner":"fruit-testbed","description":"Peer to Peer Secure Update project","archived":false,"fork":false,"pushed_at":"2018-06-14T12:24:35.000Z","size":8465,"stargazers_count":4,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T17:49:26.955Z","etag":null,"topics":["bittorrent","iot","nat","peer-to-peer","stun","system-update"],"latest_commit_sha":null,"homepage":"https://fruit-testbed.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fruit-testbed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-14T09:21:16.000Z","updated_at":"2022-11-09T17:57:19.000Z","dependencies_parsed_at":"2023-01-15T10:45:19.068Z","dependency_job_id":null,"html_url":"https://github.com/fruit-testbed/p2p-update","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/fruit-testbed/p2p-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fruit-testbed%2Fp2p-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fruit-testbed%2Fp2p-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fruit-testbed%2Fp2p-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fruit-testbed%2Fp2p-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fruit-testbed","download_url":"https://codeload.github.com/fruit-testbed/p2p-update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fruit-testbed%2Fp2p-update/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271998386,"owners_count":24856021,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bittorrent","iot","nat","peer-to-peer","stun","system-update"],"created_at":"2024-11-07T22:17:46.576Z","updated_at":"2025-08-25T02:15:47.878Z","avatar_url":"https://github.com/fruit-testbed.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peer-to-Peer Secure Update\n\nThis project aims to provide a framework to securely distribute system update\nusing peer-to-peer procotol that works in heterogeneous network environment,\nin the presence of NATs and firewalls, where there is no necessarily direct\naccess from a management node to the devices being updated.\n\nThe framework combines several key techniques:\n1. STUN-based UDP hole punching to discover and open NAT bindings\n2. A gossip protocol to deliver short messages to distribute update notifications\n3. BitTorrent to securely distribute the software update\n\nThis project is part of Federated RaspberryPi micro-Infrastructure Testbed - [FRuIT](https://fruit-testbed.org).\n\n\n## To build\n\nRequirements:\n- Go version \u003e=1.9\n- dep (https://github.com/golang/dep)\n\n```\ncd p2p-update\ndep ensure\n./build\n```\n\nThis generates an executable binary file: `p2pupdate`.\n\n\n## To run\n\nThe application can run on any Linux operating system.\n\n\n### Server mode\n\nThe server mode runs a lightweight STUN service to bootstrap a new peer and advertise\nits session to existing peers. Both the update notification and file are distributed\nusing peer-to-peer protocols.\n\nTo run in server mode, invoke:\n```\n./p2pupdate server\n```\n\n\n## Agent mode\n\nThe agent mode performs peer-to-peer communications with other agents to send/receive\nupdate notifications, use it to download/serve the update files, and deploy the updates\non local node.\n\nTo run in agent mode, invoke:\n```\n./p2pupdate agent\n```\n\nThere are two options\n- `--config-file`, is used to pass a custom config file.\n- `--default-config`, prints default configuration to standard output.\n\n\n\n## License\n\nApache Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffruit-testbed%2Fp2p-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffruit-testbed%2Fp2p-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffruit-testbed%2Fp2p-update/lists"}