Skip to content

Conversation

@ayush-panta
Copy link
Contributor

Description of changes: Added rerouting to a custom get function that routes requests through a get socket in order to communicate with host-side docker-credential-helpers.

Testing done: This has been tested locally alongside changes to finch. It works as intended for standard workflows, such as pushing, pulling, and running images that require credentials.

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ayush-panta ayush-panta requested a review from a team as a code owner December 30, 2025 18:49
Signed-off-by: ayush-panta <ayushkp@amazon.com>
@ayush-panta ayush-panta force-pushed the finch-credhelper-update branch from 454a500 to 4ef1633 Compare December 30, 2025 19:12
// Get retrieves credentials from the Finch daemon.
func (h FinchCredentialHelper) Get(serverURL string) (string, string, error) {
if os.Getenv("USE_NATIVE_CREDSTORE") != "" {
return h.getFromCredSocket(serverURL)
Copy link
Contributor

@Shubhranshu153 Shubhranshu153 Dec 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are not able to reuse any of it, i would say just create a different binary with finch.
Using this main doent seem to be helpful and creates a dependency on a different package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants