Skip to content

Conversation

@swiftveteran
Copy link

When saving registry credentials, use the security CLI with -T flags to grant keychain access to both the container CLI and container-core-images plugin. Previously, credentials saved via SecItemAdd only allowed access from the creating binary, causing error -25308 when the images plugin tried to read credentials for private registries.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Registry credentials saved via container login were inaccessible to the container-core-images plugin, causing error -25308 when pulling from private registries. The fix uses the security CLI with -T flags to grant keychain access to both the container CLI and the images plugin binary, ensuring credentials work correctly across all container operations.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

When saving registry credentials, use the security CLI with -T flags to
grant keychain access to both the container CLI and container-core-images
plugin. Previously, credentials saved via SecItemAdd only allowed access
from the creating binary, causing error -25308 when the images plugin
tried to read credentials for private registries.
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.

1 participant