goharbor/harbor

Permission Annotations in Swagger

開放

#21,734 建立於 2025年3月13日

 (3 則留言) (0 個反應) (0 位負責人)Go (5,235 個分叉)batch import
backloghelp wantedkind/questionkind/requirement

倉庫指標

星標
 (28,490 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Is your feature request related to a problem? Please describe. I am trying to write scripts using the API v2.0 and a Robot account, but I keep getting 403 Forbidden responses.

Describe the solution you'd like It would be helpful if in the Swagger file, you could identify "Permissions required: System-wide Project/List, Project-level Project/Read"

Describe the main design/architecture of your solution

Image

Describe the development plan you've considered While this may introduce a mild security risk ("I have permission to do X, therefore, I could also do Y"), it may help developers to identify where additional permission controls should be placed.

貢獻者指南