-
Couldn't load subscription status.
- Fork 36
feat: use creds from auth.json for imports #712
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
feat: use creds from auth.json for imports #712
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #712 +/- ##
==========================================
- Coverage 60.51% 60.41% -0.11%
==========================================
Files 59 59
Lines 6461 6477 +16
==========================================
+ Hits 3910 3913 +3
- Misses 1906 1916 +10
- Partials 645 648 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
test/import-http-auth.bats
Outdated
| url: ${{BUSYBOX_OCI}} | ||
| imports: | ||
| - path: http://localhost:9999/importme | ||
| credential: mytestcredential |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this ("credential") do? From code, it looks like we are just using hostname as the key to lookup credentials?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, thanks - that was from an earlier approach. I'll remove this
Adds support for authenticating to http servers using basic auth by checking for matching credentials in the containers/auth.json file supported by the containers/image library for use in authenticating to registries. Signed-off-by: Michael McCracken <mikmccra@cisco.com>
e5bb0fa to
0f10ac2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Adds support for authenticating to http servers using basic auth by checking for matching credentials in the containers/auth.json file supported by the containers/image library for use in authenticating to registries.
What type of PR is this?
This is a feature PR!
Which issue does this PR fix:
Fixes #710
What does this PR do / Why do we need it:
allows importing from authenticated hosts! we need that!
Testing done on this change:
See the test added in CI
Automation added to e2e:
none
Will this break upgrades or downgrades?
no, no change to CLI or stackerfile format!
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
You bet I do ✅