【已评审】去除Redfish接口KerberosControllers里未实现的属性

背景

Kerberos认证作为BMC的一种三方认证方式,openUBMC当前未实现端到端功能,仅提前实现了部分资源树接口和北向接口。/redfish/v1/AccountService/KerberosService/KerberosControllers/:controllerid 接口里KerberosGroups属性功能未实现,北向映射器配置错误。待后续功能实现后,再完善北向接口

关联ISSUE

/redfish/v1/AccountService/KerberosService/KerberosControllers/1,KerberosGroups属性实际不支持设置,实际设置失败,但是响应码200

整体方案

去除/redfish/v1/AccountService/KerberosService/KerberosControllers/:controllerid 接口里的KerberosGroups属性

评审点

将/redfish/v1/AccountService/KerberosService/KerberosControllers/:controllerid 的GET和PATCH接口里的KerberosGroups属性去除

详细描述

场景1

资源URI :/redfish/v1/AccountService/KerberosService/KerberosControllers/:controllerid
资源
接口方法 :GET
接口请求:N/A
接口响应
变更前:

{
  "@odata.context": "/redfish/v1/$metadata#HwKerberosController.HwKerberosController",
  "@odata.id": "/redfish/v1/AccountService/KerberosService/KerberosControllers/1",
  "@odata.type": "#HwKerberosController.v1_0_0.HwKerberosController",
  "Id": "1",
  "Name": "Kerberos Controller",
  "KerberosServerAddress": null,
  "KerberosPort": 98,
  "Realm": null,
  "KerberosGroups": []
}

变更后:

{
  "@odata.context": "/redfish/v1/$metadata#HwKerberosController.HwKerberosController",
  "@odata.id": "/redfish/v1/AccountService/KerberosService/KerberosControllers/1",
  "@odata.type": "#HwKerberosController.v1_0_0.HwKerberosController",
  "Id": "1",
  "Name": "Kerberos Controller",
  "KerberosServerAddress": null,
  "KerberosPort": 98,
  "Realm": null
}

场景2

资源URI :/redfish/v1/AccountService/KerberosService/KerberosControllers/:controllerid
资源
接口方法 :PATCH
接口请求
变更前:

{
   "KerberosServerAddress": "x.x.x.x",
   "KerberosPort": 98,
   "Realm": "",
   "KerberosGroups": [
      "GroupName": "xxx",
       "GroupDomain": "xxx",
      "GroupSID": "xxx",
      "GroupRole": "xxx",
      "GroupLoginRule": "xxx",
      "GroupLoginInterface": "xxx"
  ]
}

变更后:

{
   "KerberosServerAddress": "x.x.x.x",
   "KerberosPort": 98,
   "Realm": ""
}

接口响应:同GET

是否准备好AI预审

评审结论

同意去除未实现的属性,同时更新redfish接口文档描述

遗留问题

预审答案内容由AI生成,仅供参考:

帖子评审结论:【待评审】去除Redfish接口KerberosControllers里未实现的属性

帖子相关性:相关(Redfish 相关: 帖子内容包含 ‘redfish’ 关键字)

  • 总评审点数:1
  • Redfish 相关评审点:1
  • 其他评审点:0

总体结果:通过(1/1 个评审点通过)

评审点 1:将/redfish/v1/AccountService/KerberosService/KerberosControllers/`:controlleri…【Redfish】

结果:通过

  • URI 示例生成:通过
  • Schema 验证:通过(5 项通过)
    • Schema 来源:DMTF ✗,OEM ✓(实际参与校验:OEM)
    • 入口 schema 文件:rackmount/oem/openubmc/json_schema/hwkerberoscontroller.v1_0_0.json(rackmount OEM 自定义(rackmount/oem/openubmc))
    • Schema 依据:静态校验直接依据:rackmount OEM 自定义(rackmount/oem/openubmc)(rackmount/oem/openubmc/json_schema/hwkerberoscontroller.v1_0_0.json)
  • 规则合规性检查:通过(18 项检查全部通过)