操作系统信息
例如:云服务器,Centos7.98C/32G
Kubernetes版本信息
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.0
KubeSphere版本信息
KS v4.1.2/k8s v1.31.0 在线安装 使用kk安装。
问题是什么
gitee触发webhook会返回403,同时在ks-api也会出现403的日志,大致意思是提示匿名用户无权限访问
{“kind”:“Status”,“apiVersion”:“v1”,“metadata”:{},“status”:“Failure”,“message”:“webhook.devops.kubesphere.io \“git\” is forbidden: User \“system:anonymous\” cannot create resource \“webhook\” in API group \“devops.kubesphere.io\” at the cluster scope”,“reason”:“Forbidden”,“details”:{“name”:“git”,“group”:“devops.kubesphere.io”,“kind”:“webhook”},“code”:403}
2024-11-13T00:46:38.736588292Z I1113 08:46:38.736483 1 filters.go:96] 10.233.126.6 - “POST /kapis/devops.kubesphere.io/v1alpha2/webhook/git/?url=https%3A%2F%2Fgitee.com%2Fah_block2025%2Fblock2025-tms.git HTTP/1.1” 403 357 0ms2024-11-13T00:46:45.178684585Z I1113 08:46:45.178565 1 filters.go:96] 10.233.126.6 - “POST /kapis/devops.kubesphere.io/v1alpha2/webhook/git/?url=https%3A%2F%2Fgitee.com%2Fah_block2025%2Fblock2025-tms.git HTTP/1.1” 403 357 0ms