paketo-buildpacks/packit

Accessing secure storages

Opened this issue · 3 comments

We are building a buildpack and are using packit. The way documented for downloading dependencies from buildpack.toml is using the provided dependency manager.
dependencyManager := postal.NewService(cargo.NewTransport())
packit.Build(runtime.Build(dependencyManager))
It works fine as long as dependencies are from public repositories like maven, but if we want to add a URI to a private storage that in our case stores tar files, we have no way of configuring authentication for it.
It would be amazing if we could have a way to add basic auth to our requests when using this packit dependency manager.

fg-j commented

In order to authenticate with some sort of private storage, users will need to provide credentials via a binding. For that reason, I'm blocking this on #107 for now.

Hey there @RadiatorSpring, just wanted to get a quick follow up to see what format of credentials would you be looking to be able to provide?

Something as simple as Username and Password for basic auth would be enough