You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a local registry on a custom port (:8443) . So when I'm using a local image in my pipelines I reference it by specifying the following image:
Now I tried to add a global secret and restrict it to an image from my registry. So I entered the following image name in the webui: myregistry.example.com:8443/myimage:mytag
This results in the error message Error updating global secret. Invalid Secret Image: image 'myregistry.example.com:8443/myimage:mytag' do not match regexp '^([\w\d\-_\.\/]*[\w\d\-_]+)+(:[\w\d\-_]+)?$'
Component
server, web-ui
Describe the bug
I'm running a local registry on a custom port (:8443) . So when I'm using a local image in my pipelines I reference it by specifying the following image:
Now I tried to add a global secret and restrict it to an image from my registry. So I entered the following image name in the webui:
myregistry.example.com:8443/myimage:mytag
This results in the error message
Error updating global secret. Invalid Secret Image: image 'myregistry.example.com:8443/myimage:mytag' do not match regexp '^([\w\d\-_\.\/]*[\w\d\-_]+)+(:[\w\d\-_]+)?$'
I searched the code and found the following RegEx
woodpecker/server/model/secret.go
Lines 117 to 122 in a1a35eb
This RegEx does not allow the port in the url part.
A RegEx like this should fix the problem
System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: