{"id":13461429,"url":"https://github.com/marmotedu/iam","last_synced_at":"2026-10-19T00:47:50.138Z","repository":{"id":37421616,"uuid":"370912548","full_name":"marmotedu/iam","owner":"marmotedu","description":"企业级的 Go 语言实战项目：认证和授权系统（带配套课程）","archived":false,"fork":false,"pushed_at":"2025-03-20T06:31:55.000Z","size":4051,"stargazers_count":4214,"open_issues_count":25,"forks_count":1086,"subscribers_count":72,"default_branch":"master","last_synced_at":"2026-09-24T08:43:28.506Z","etag":null,"topics":["application","authentication","authorization","gin","go","golang","gorm","iam","project"],"latest_commit_sha":null,"homepage":"https://konglingfei.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marmotedu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG/CHANGELOG-0.1.0.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-26T05:06:46.000Z","updated_at":"2026-09-23T03:43:32.000Z","dependencies_parsed_at":"2023-02-19T10:01:32.365Z","dependency_job_id":"dacbc375-480b-4695-a7cd-ecbacaf9dd2c","html_url":"https://github.com/marmotedu/iam","commit_stats":{"total_commits":526,"total_committers":20,"mean_commits":26.3,"dds":"0.48859315589353614","last_synced_commit":"f39d4105e563c01fb4869bbaf1b19f5afa944400"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/marmotedu/iam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmotedu%2Fiam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmotedu%2Fiam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmotedu%2Fiam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmotedu%2Fiam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marmotedu","download_url":"https://codeload.github.com/marmotedu/iam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmotedu%2Fiam/sbom","scorecard":{"id":620925,"data":{"date":"2025-08-11","repo":{"name":"github.com/marmotedu/iam","commit":"16c723d3c1f75fe437e501ef7f22a816c48a6add"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 9/25 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:32","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:33","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/golangci-lint.yaml:1","Warn: no topLevel permission defined: .github/workflows/iamci.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: internal/pkg/util/gormutil/gorm_test.go:73"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: parameter expansion requires a literal: scripts/admin.sh:0","Info: Possibly incomplete results: error parsing shell code: unclosed here-document 'EOF': scripts/install/install.sh:273","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/golangci-lint.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/golangci-lint.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/iamci.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/iamci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/iamci.yaml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/iamci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/iamci.yaml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/iamci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/iamci.yaml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/iamci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/iamci.yaml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/marmotedu/iam/iamci.yaml/master?enable=pin","Warn: containerImage not pinned by hash: build/docker/iam-apiserver/Dockerfile:5","Warn: containerImage not pinned by hash: build/docker/iam-authz-server/Dockerfile:5","Warn: containerImage not pinned by hash: build/docker/iam-pump/Dockerfile:5","Warn: containerImage not pinned by hash: build/docker/iam-watcher/Dockerfile:5","Warn: containerImage not pinned by hash: build/docker/iamctl/Dockerfile:5","Warn: goCommand not pinned by hash: scripts/lib/release.sh:475","Warn: goCommand not pinned by hash: scripts/lib/release.sh:496","Warn: goCommand not pinned by hash: scripts/lib/release.sh:505","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   5 containerImage dependencies pinned","Info:   1 out of   4 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.6.2 not signed: https://api.github.com/repos/marmotedu/iam/releases/133005041","Warn: release artifact v1.6.0 not signed: https://api.github.com/repos/marmotedu/iam/releases/55757314","Warn: release artifact v1.2.0 not signed: https://api.github.com/repos/marmotedu/iam/releases/55599353","Warn: release artifact v1.0.4 not signed: https://api.github.com/repos/marmotedu/iam/releases/45896196","Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/marmotedu/iam/releases/45873469","Warn: release artifact v1.6.2 does not have provenance: https://api.github.com/repos/marmotedu/iam/releases/133005041","Warn: release artifact v1.6.0 does not have provenance: https://api.github.com/repos/marmotedu/iam/releases/55757314","Warn: release artifact v1.2.0 does not have provenance: https://api.github.com/repos/marmotedu/iam/releases/55599353","Warn: release artifact v1.0.4 does not have provenance: https://api.github.com/repos/marmotedu/iam/releases/45896196","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/marmotedu/iam/releases/45873469"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2020-0017 / GHSA-w73w-5m7g-f7qc","Warn: Project is vulnerable to: GO-2024-2955 / GHSA-869c-j7wc-8jqv","Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g","Warn: Project is vulnerable to: GO-2024-3250 / GHSA-29wx-vh33-7x7r","Warn: Project is vulnerable to: GO-2025-3553 / GHSA-mh63-6h87-95cp","Warn: Project is vulnerable to: GO-2025-3372 / GHSA-6wxm-mpqj-6jpf","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T05:12:20.040Z","repository_id":37421616,"created_at":"2025-08-21T05:12:20.040Z","updated_at":"2025-08-21T05:12:20.040Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38344159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"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":["application","authentication","authorization","gin","go","golang","gorm","iam","project"],"created_at":"2024-07-31T11:00:38.820Z","updated_at":"2026-10-19T00:47:49.380Z","avatar_url":"https://github.com/marmotedu.png","language":"Go","funding_links":[],"categories":["Go","学习项目","Learning Content","go项目实战","Learning and Reference","💻 项目实战","游戏"],"sub_categories":["静态网站生成器","Static Site Generator","Examples and Exercises","💾 Redis"],"readme":"# IAM - 身份识别与访问管理系统\n\n- 更多「云原生 AI 实战营」项目见：[云原生 AI 实战营项目介绍](https://konglingfei.com/cloudai/intro/%E4%BA%91%E5%8E%9F%E7%94%9F_AI_%E5%AE%9E%E6%88%98%E8%90%A5%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D.html)\n\nIAM = **I**dentity and **A**ccess **M**anagement\n\nIAM 是一个基于 Go 语言开发的身份识别与访问管理系统，用于对资源访问进行授权。**最新稳定版本为：v1.6.2，建议基于稳定版安装测试**。\n\n这里需要注意：\n- 如果你是极客时间《Go 语言项目开发实战》专栏的读者，请使用 v1.1.0 版本（tag）\n- 如果你是图书《从零构建企业级 Go 项目》的读者，请使用 v1.6.t2 版本（tag）\n\n\u003e 更详细的版本映射请参考：[版本映射](./docs/guide/zh-CN/version_map.md)\n\nIAM 同时也具有以下能力：\n\n1. 配合极客时间专栏 **《[Go 语言项目开发实战](https://time.geekbang.org/column/intro/100079601?tab=intro)》**，讲解如何用 Go 做企业级应用的开发，是该项目的理论课程，包含了项目各个知识点和构建思路的讲解，也会包含我的一线研发经验和建议。\n\n2. 作为一个开发脚手架，供开发者克隆后二次开发，快速构建自己的应用。\n\nIAM 项目会长期维护、定期更新，**欢迎兄弟们 Star \u0026 Contribute**\n\n## 功能特性\n\n本项目用到了Go企业开发的大部分核心技能点，见下图：\n\n![技术思维导图](./docs/images/技术思维导图.png)\n\n更多请参考：[marmotedu/gocollect](https://github.com/marmotedu/gocollect)\n\n## 软件架构\n\n![IAM架构](./docs/images/IAM架构.png)\n\n架构解析见：[IAM 架构 \u0026 能力说明](./docs/guide/zh-CN/installation/installation-architecture.md)\n\n## 快速开始\n\n### 依赖检查\n\n1. 服务器能访问外网\n\n2. 操作系统：CentOS Linux 8.x (64-bit)\n\n\u003e 本安装脚本基于 CentOS 8.2 安装，建议你选择 CentOS 8.x 系统。其它Linux发行版、macOS也能安装，不过需要手动安装。\n\n### 快速部署\n\n快速部署请参考：[IAM 部署指南](docs/guide/zh-CN/installation/README.md#快速部署)\n\n\u003e IAM 项目还提供了更详细的部署文档，请参考：[手把手教你部署IAM系统](docs/guide/zh-CN/installation/installation-procedures.md)\n\n### 构建\n\n如果你需要重新编译IAM项目，可以执行以下 2 步：\n\n1. 克隆源码\n\n```bash\n$ git clone https://github.com/marmotedu/iam $GOPATH/src/github.com/marmotedu/iam\n```\n\n2. 编译\n\n```bash\n$ cd $GOPATH/src/github.com/marmotedu/iam\n$ make\n```\n\n构建后的二进制文件保存在 `_output/platforms/linux/amd64/` 目录下。\n\n## 使用指南\n\n[IAM Documentation](docs/guide/zh-CN)\n\n## 如何贡献\n\n欢迎贡献代码，贡献流程可以参考 [developer's documentation](docs/devel/zh-CN/development.md)。\n\n## 社区\n\nYou are encouraged to communicate most things via [GitHub issues](https://github.com/marmotedu/iam/issues/new/choose) or pull requests.\n\n## 保持联系\n\n\u003cimg src=\"./docs/images/three-code.png\" alt=\"\" width=\"900\" /\u003e\n\n## 许可证\n\nIAM is licensed under the MIT. See [LICENSE](LICENSE) for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmotedu%2Fiam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarmotedu%2Fiam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmotedu%2Fiam/lists"}