goharbor/harbor

Permission Annotations in Swagger

Aberta

#21.734 aberto em 13 de mar. de 2025

 (3 comentários) (0 reação) (0 responsável)Go (5.235 forks)batch import
backloghelp wantedkind/questionkind/requirement

Métricas do repositório

Stars
 (28.490 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador