Unable to attach/push files/accessories to an proxy-project artifact using Oras #22287
-
|
Hi, I found out that when I have proxy-project (eg Docker Hub proxy) I am unable to attach any files to artifacts. Example command (simpler variant also works): What I also found out is that when you click "Generate SBOM" in the Harbor UI, it attaches generated JSON without problems. It is because of special handling of internal attach calls and denying calls from outside (REST API calls). There is check in the source code https://github.com/goharbor/harbor/blob/v2.13.2/src/server/middleware/repoproxy/proxy.go#L309-L313 Check if we are at proxy-project and have internal call. And then check if we have internal call to the API
PR for this business logic is here #12404 . I understand reasoning behind this validation, BUT it does not allow me to attach files to proxy-projects. Is it something that cannot be changed, for example to have some special permission or something like that? Note: I am using Harbor v2.13.2 Thank you for explanation. Ivos |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
@bedla The proxy cache project is designed to disallow pushes. Could you try the attach operation with a normal project instead? And please file an github feature request for it, and BTW describe the story why you need and how you use. |
Beta Was this translation helpful? Give feedback.
@bedla The proxy cache project is designed to disallow pushes. Could you try the attach operation with a normal project instead?
And please file an github feature request for it, and BTW describe the story why you need and how you use.