{"id":19411498,"url":"https://github.com/volcengine/reset-authentication","last_synced_at":"2025-07-28T23:03:29.376Z","repository":{"id":57626223,"uuid":"401613794","full_name":"volcengine/reset-authentication","owner":"volcengine","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-26T08:39:45.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T02:33:54.403Z","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/volcengine.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}},"created_at":"2021-08-31T07:33:49.000Z","updated_at":"2024-07-06T18:14:53.000Z","dependencies_parsed_at":"2022-08-31T07:11:22.577Z","dependency_job_id":null,"html_url":"https://github.com/volcengine/reset-authentication","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/volcengine/reset-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Freset-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Freset-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Freset-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Freset-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volcengine","download_url":"https://codeload.github.com/volcengine/reset-authentication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Freset-authentication/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267600094,"owners_count":24113712,"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-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-11-10T12:21:44.948Z","updated_at":"2025-07-28T23:03:29.333Z","avatar_url":"https://github.com/volcengine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 火山公有云密码重置\n\n## 1. 实现逻辑：\n  此agent是安装在火山云虚拟机内的，通过此agent提供虚拟机内的重置认证功能，此服务仅在开机后启动一次，之后将不再运行，客户重置认证需要重启虚拟机\n\n## 2. 对metadata请求接口\n  2.1 http://100.96.0.96/volcstack/latest/instance_id (GET)\n  获取虚拟机的ID信息，使用来校验可用的数据源接口\n\n  2.2 http://100.96.0.96/volcstack/latest/reset_authentication_version (POST)\n  推送agent自身的version，metadata会根据虚拟机的version信息判断虚拟机是否支持重置功能，未推送将不再支持此功能\n\n  2.3 http://100.96.0.96/volcstack/latest/reset_password （GET）\n  获取要重置的虚拟机密码，此密码会在用户浏览器进行加密，此得到的结果会是一个加密后的密码\n\n  2.4 /volcstack/latest/reset_del_pubkey (GET)\n  获取要重置的虚拟机的预备删除key，此结果会删除 /root/.ssh/authorized_keys 其中的公钥\n\n  2.5 /volcstack/latest/reset_add_pubkey (GET)\n  获取要重置的虚拟机的预备增加key，此结果会增加 /root/.ssh/authorized_keys 其中的公钥\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Freset-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolcengine%2Freset-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Freset-authentication/lists"}