-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
Milestone
Description
Problem Statement
Currently due to the limitations of oras-go the easiest (and basically the only possible, sensible way) is to deal with Dockder credentials when they are stored as a file. It doesn't provide API for supplying them in this format as a string
, []byte
or io.Reader
, etc. Hence a temporary file is created to supply those credentials, see
It's not the best approach from a security, maintainability, and extensibility point of view.
Proposed Solution
Submit PR to oras-go that will extend the API of this library to be able to consume credentials in Docker's config.json
format not only from a file directly but from one of string
, []byte
or io.Reader
.
In case something like that is not an option provide an implementation in KGO codebase.
Acceptance Criteria
- Temporary file is not created as a workaround for dealing with credentials in Docker's
config.json
format