-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socialise with Flux image reconciliation #134
Comments
Is Flux logged into the balena registry when performing these requests? |
No, these requests are currently unauthenticated (though they can be, if required). |
I expect if they authenticate it will work, the balena registry and API do not support unauthenticated requests of any kind, including scraping tags. In your example the Flux context would need to |
This is the registry auth it's configured with (docker login with the same credentials works):
Same issue for getting tags for
|
I guess public blocks should be allowed without auth, so my original comment may be innacurate. Based on the error above, it seems to be trying to use a public registry REST API, and I don't think our registry has such a thing as that's usually hosted out-of-band to registry2 IIRC? Though I was able to get it working with skopeo so I'm not sure exactly what calls Flux is making without looking at the code. Though maybe |
According to my understanding from reading the code, our regex doesn't cover this specific request URL (getting a tags list for an image). Same for
|
I don’t think fixing this reflex will yield the results you are hoping for.
Every app release has its own repository and only a single tag, all managed
by the API. This is why we need the semver/commit to be part of the
registry path when using bh.cr. Everything after : is ignored.
Flux won’t be able to list the next available tag in our registry via any
traditional methods. The workaround we use for Renovate is to look at
GitHub release tags and apply them to the registry path.
…On Fri, Oct 27, 2023 at 7:06 PM Anton Belodedenko ***@***.***> wrote:
According to my understanding from reading the code
<https://github.com/balena-io/open-balena-registry-proxy/blob/master/src/app.ts#L32C1-L35C3>,
our regex doesn't cover this specific request URL (getting a tags list for
an image).
Same for scopeio, (basic) authenticated or not:
$ skopeo list-tags docker://bh.cr/balena/logs-to-vector-amd64
FATA[0007 <http://bh.cr/balena/logs-to-vector-amd64FATA%5B0007>] Error listing repository tags: fetching tags list: requested access to the resource is denied
—
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4CWIH7JZ3PBCIXWGLSI7DYBQ47VAVCNFSM6AAAAAA6TJLENKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGU4TSMZQHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Flux will make the following request to a registry to get the latest tags for an image is is managing (e.g.):
Current behaviour is results in:
The text was updated successfully, but these errors were encountered: