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

feat!: add NewDefaultNativeStore and DynamicStore.IsAuthConfigured#73

Merged
Wwwsylvia merged 3 commits into
oras-project:mainfrom
Wwwsylvia:fix_fallback
Jun 9, 2023
Merged

feat!: add NewDefaultNativeStore and DynamicStore.IsAuthConfigured#73
Wwwsylvia merged 3 commits into
oras-project:mainfrom
Wwwsylvia:fix_fallback

Conversation

@Wwwsylvia

@Wwwsylvia Wwwsylvia commented Jun 8, 2023

Copy link
Copy Markdown
Member

Features:

  1. Add NewDefaultNativeStore()
  2. Export DynamicStore and DynamicStore.IsAuthConfigured
  3. Add a new option StoreOptions.DetectDefaultCredsStore

BREAKING CHANGE: When there is no authentication configured in the config file, DynamicStore no longer detects and sets the platform-default docker credentials helper by default.
Fixes: #71

@codecov-commenter

codecov-commenter commented Jun 8, 2023

Copy link
Copy Markdown

Codecov Report

Merging #73 (c5a5afb) into main (323e44c) will increase coverage by 0.31%.
The diff coverage is 81.25%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   82.41%   82.73%   +0.31%     
==========================================
  Files           6        6              
  Lines         381      388       +7     
==========================================
+ Hits          314      321       +7     
  Misses         45       45              
  Partials       22       22              
Impacted Files Coverage Δ
native_store.go 83.33% <40.00%> (-4.43%) ⬇️
store.go 80.95% <100.00%> (+4.12%) ⬆️

Comment thread store.go
@Wwwsylvia Wwwsylvia marked this pull request as ready for review June 8, 2023 11:13
@Wwwsylvia

Wwwsylvia commented Jun 8, 2023

Copy link
Copy Markdown
Member Author

One usage of this change: notaryproject/notation#712

@Wwwsylvia Wwwsylvia changed the title feat: improve fallback logic feat!: improve fallback logic Jun 8, 2023
Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
@Wwwsylvia Wwwsylvia changed the title feat!: improve fallback logic feat!: support NewDefaultNativeStore and DynamicStore.IsAuthConfigured Jun 9, 2023
@Wwwsylvia Wwwsylvia changed the title feat!: support NewDefaultNativeStore and DynamicStore.IsAuthConfigured feat!: add NewDefaultNativeStore and DynamicStore.IsAuthConfigured Jun 9, 2023
Signed-off-by: Sylvia Lei <lixlei@microsoft.com>

@shizhMSFT shizhMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Wwwsylvia Wwwsylvia merged commit b60b11b into oras-project:main Jun 9, 2023
@wangxiaoxuan273 wangxiaoxuan273 mentioned this pull request Jun 19, 2023
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storeWithFallbacks should leverage the native store of the fallback store for saving credentials

4 participants