Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Releases: oras-project/oras-credentials-go

v0.4.0

01 Feb 09:09
51dbb8a
Compare
Choose a tag to compare

Important

All existing APIs have been moved to oras-go and are now deprecated in oras-credentials-go. For more information, please refer to #80.

Deprecation

Detailed Commits

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.1

17 Oct 06:28
21321d3
Compare
Choose a tag to compare

Bug Fixes

  • Fix #1: Legacy auth keys (e.g. https://ghcr.io/ instead of ghcr.io) are not supported in config files

Detailed Commits

  • chore: enable workflows for release branches (#98) by @Wwwsylvia in #99
  • fix: file store to support legacy auth keys in config files by @Wwwsylvia in #100

Full Changelog: v0.3.0...v0.3.1

v0.3.0

20 Jul 06:26
5e38e75
Compare
Choose a tag to compare

New Features

  • Introduce package trace that provides mechanisms to trace the execution of credential helper executables.

Detailed Commits

Full Changelog: v0.2.0...v0.3.0

v0.2.0

20 Jun 09:22
26b25ce
Compare
Choose a tag to compare

New Features

  • Introduce new public APIs and data types:
  • Introduce a new option DetectDefaultNativeStore in StoreOptions
    • BREAKING CHANGE: The default value of DetectDefaultNativeStore is false, which was equivalently set to true in previous versions. Details can be found in #73

Other Changes

  • Remove dependency on github.com/docker/docker-credential-helpers
  • Support context cancelling for native stores
  • BREAKING CHANGE: NewStore and NewStoreFromDocker returns *DynamicStore instead of Store
  • Return more user-friendly error message when invoking docker-credential-desktop.exe in WSL2 while Docker Desktop is not running

Detailed Commits

Full Changelog: v0.1.1...v0.2.0

v0.1.1

25 May 06:02
97227b1
Compare
Choose a tag to compare

Bug Fixes

  • Fix #65: Login to docker.io does not work as expected

Other Changes

  • Improve error messages

Detailed Commits

Full Changelog: v0.1.0...v0.1.1

v0.1.0

10 May 08:08
8c9764f
Compare
Choose a tag to compare

Features

oras-credentials-go is a registry credential management SDK designed for oras-go. It is based on Docker configuration files and Docker credential helpers.

oras-credentials-go provides the following functionalities:

  • A Store interface for retrieving, saving and removing credentials
  • A native credentials store that uses a Docker credential helper program to manage credentials
  • A file credentials store that uses a Docker-format config file to manage credentials in plaintext:
    • Supports option DisablePut that disables putting credentials in plaintext
  • A dynamic credentials store that will dynamically determine which underlying credentials store to use based on the specified Docker-format config file
    • Supports reading from the Docker config file
  • Attaching multiple Stores to an existing Store as fallbacks
  • Convenient utility methods:
    • Credential(): Return a function for auth.Client.Credential
    • Login(): Validate and store the given credential for the given server address
    • Logout(): Remove the credential for the given server address

Detailed Commits

New Contributors

Full Changelog: https://github.com/oras-project/oras-credentials-go/commits/v0.1.0