-
Notifications
You must be signed in to change notification settings - Fork 173
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
zarf tools registry ls <img> --full-ref
has strange port in output
#2026
Comments
definitely looks suspicious to me too @btlghrants . This seems to be an issue in the upstream crane package |
This is actually due to our wrapping logic. if we detect the repository matches the repo in Zarf state we will open a tunnel (on a random open port) to connect and get the information back - on most commands that doesn't affect the output but here it does - we could look to see if 1) we can modify the headers to tell the registry that there is a proxy in the way and it should act as the original address or 2) mutate the response to contain the correct host/port if we are using a tunnel. |
## Description This Pr normalizes Zarf command execution in Zarf so that the patterns work correctly when used as a library ## Related Issue Relates to #1814 Fixes #2026 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
I believe this also impacts
This can then impact subsequent commands. For example, if I check the catalog for a ref, and then try to pull the tags with
|
Environment
Device and OS: HP ZBook Fury 17 G7 Mobile Workstation / Ubuntu 20.04.6 LTS
App version: Zarf v0.29.2
Kubernetes distro being used: k3d version v5.6.0 / k3s version v1.27.4-k3s1
Other:
Steps to reproduce
zarf tools registry ls <img>
with the--full-ref
flag multiple times.Expected result
I expect the returned images' registry port to reflect the one I passed in.
Actual Result
I see a rando registry port output with my result. And the port seems to change every time I call..?
Visual Proof (screenshots, videos, text, etc)
Severity/Priority
Low/Low
Additional Context
It's my first bug report to this project... so if I did a dumb, be sure to let me know. Many thanks & keep up the good work!
The text was updated successfully, but these errors were encountered: