Repository navigation
docs(design): §4.11 Grafana GitHub SSO 方案 + 进度回填 - #18
Open
TangJia025 wants to merge 2 commits into
Open
TangJia025 wants to merge 2 commits into
TangJia025 wants to merge 2 commits into
Conversation
记下用 GitHub 内建 OAuth provider 替换共享 admin 账号的方案,解决研发与 社区运营同学访问看板的问题(当前只有一个 admin 账号 + Vault 口令)。 - 读者分三层,本节只覆盖「研发 / 社区运营」那层;社区用户仍走 §4.7.5 的 状态页。这不是「先不做」,而是 Grafana 开源版能力不足以安全对外——理由 在 4.11.2 里逐条列出,避免后来人把它当成待办。 - 4.11.1 给 values 落点:6 个 GF_AUTH_GITHUB_*,client_secret 走 Vault 注入 不进 values;charts/grafana 的 env 是通用 k8s EnvVar 透传,chart 无需改动。 另记 callback URL 必须带 /grafana 子路径(漏了就是回调 404)。 - 4.11.2 是本节的核心:Team Sync / SAML / 细粒度数据源权限三项 Enterprise-only。 最硬的一条是开源版里 Viewer 可直打 /api/ds/query 发任意 PromQL,绕过面板 权限;叠加现有 series 带 namespace/pod/pod_ip/cluster(等于内部资产清单)、 且数据源凭据同时能 POST /api/v1/write,结论是 Grafana 不能对社区用户开放。 - 4.11.4 工作量 ≈1~1.5 人天、日历 2~3 天(卡在 org owner 审批与运维写 Vault)。 旁注:文中「OSS」按 Grafana 自身命名指开源发行版,与华为云语境下的对象存储 同缩写,故首次出现处写全为「Grafana OSS(开源版)」。 Co-Authored-By: Claude Code <noreply@anthropic.com>
按本轮实测刷新,并把已归零的项从预估里扣掉。 子任务 A:4~4.5(原 8~9.5) - obs-sdk-java「无兜底缺陷」已由 PR #9 / #14 修复并发布 java/v1.0.0,1.5 归零 - 日志试点 PR #90 已合入、部署侧 OBS_* 已覆盖,两项归零 - 部署侧实测 19/19(缺的 cann/robot/test、openjiuwen/robot/test 不部署该服务), prod 全覆盖、取值均在设计文档的 community 枚举内 - 指标试点口径已定稿写入 issue(入口 2 处 + 两条管道出口各 2 处),代码待实现 子任务 B:21~35(原 32~52) - 中心三件套已建成在跑(prometheus / alertmanager / grafana 全 Running),入口 404 已修,中心搭建 5~8 归零 - 跨 Region 走公网 HTTPS 已打通,3~6 归零 - Grafana 已部署,2~3 归零(面板本身仍未配,单列 6~9) - Agent 铺开口径从 17 更正为 20 集群,hpckit 试点已通、其余 ~19 个待办 另补一条判据:「已接入」定为 scrape_samples_scraped > 0,而不是 up——Prometheus 把任何 2xx 都记成 up=1,空体 200 会虚报已接入(见 infra-common#4274)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
Welcome To opensourceways CommunityHey @TangJia025 , thanks for your contribution to the community. Bot Usage ManualI'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. Contact GuideIf you have any questions, please contact the SIG: infratructure , |
CLA Signature PassTangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
两个文档更新,无代码改动。
1. 设计文档新增 §4.11 Grafana 认证与访问(GitHub SSO 方案)
当前 Grafana 只有一个共享
admin账号(口令存 Vault)。本节记下用 GitHub 内建 OAuth provider 替换它的方案,面向研发与社区运营同学的日常看板访问。/api/ds/query发任意 PromQL,绕过面板权限;叠加现有 series 带namespace/pod/pod_ip/cluster(等于内部资产清单),且数据源凭据同时能 POST/api/v1/write。结论:Grafana 不能对社区用户开放——这不是「先不做」,是开源版的能力边界,写进文档免得后来人当待办去做。GF_AUTH_GITHUB_*的 values 落点,client_secret走 Vault 注入、不进 values;charts/grafana的env是通用 k8s EnvVar 透传,chart 无需改动。另记 callback URL 必须带/grafana子路径。2. 进度追踪回填
OBS_*三项已归零,实测 19/19 覆盖scrape_samples_scraped > 0而非up(Prometheus 把任何 2xx 都记成up=1,空体 200 会虚报已接入),见 infra-common#4274备注
Resolves https://github.com/opensourceways/backlog/issues/2062
🤖 Generated with Claude Code
AI 使用声明
当前 PR 是否有 AI 参与: