{
  "id": "go/grpc-permission-denied-rbac",
  "signature": "rpc error: code = PermissionDenied desc = user 'alice' does not have permission to access resource 'admin-panel'",
  "signature_zh": "rpc错误：代码=权限被拒绝 描述=用户'alice'没有访问资源'admin-panel'的权限",
  "regex": "rpc\\ error:\\ code\\ =\\ PermissionDenied\\ desc\\ =\\ user\\ 'alice'\\ does\\ not\\ have\\ permission\\ to\\ access\\ resource\\ 'admin\\-panel'",
  "domain": "go",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The authenticated user lacks the required role or permissions for the requested operation.",
  "root_cause_type": "generic",
  "root_cause_zh": "认证的用户缺少请求操作所需的角色或权限。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retry the request with the same credentials.",
      "why_fails": "The user's permissions haven't changed; retrying will still fail.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different user's token without proper authorization.",
      "why_fails": "Using another user's token may be a security violation and may still lack permissions.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Grant the necessary permissions to the user in the authorization system.",
      "success_rate": 0.9,
      "how": "Update role-based access control (RBAC) policies to include the user for the admin-panel resource.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a service account with appropriate permissions.",
      "success_rate": 0.85,
      "how": "conn, err := grpc.Dial(\"localhost:8080\", grpc.WithInsecure(), grpc.WithPerRPCCredentials(&serviceAccountCreds{}))",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}