Skip to content

Conversation

@imjasonh
Copy link

@imjasonh imjasonh commented Nov 3, 2025

Type of Change

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

Motivation and Context

Context: #820

Testing

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

Copilot AI and others added 8 commits November 2, 2025 23:49
- Add DockerConfigReader to parse ~/.docker/config.json
- Add CredentialHelperExecutor to invoke docker-credential-* helpers
- Integrate credential helpers into ImageService authentication flow
- Add tests for DockerConfig and CredentialHelper functionality

Co-authored-by: imjasonh <[email protected]>
Use defer block to ensure file handle is properly closed even if operations fail

Co-authored-by: imjasonh <[email protected]>
Validate helper names to only allow alphanumeric characters, hyphens, and underscores
to prevent potential command injection vulnerabilities

Co-authored-by: imjasonh <[email protected]>
Move file handle close to execute immediately after write operation
to ensure proper sequencing and cleanup

Co-authored-by: imjasonh <[email protected]>
- Add descriptive @test annotations to all test methods
- Add blank lines between test methods for readability
- Add additional test cases for helper name validation
- Add test for empty credHelpers configuration
- Apply swift-format to ensure consistent code style
- Reorder imports alphabetically per style guide

Co-authored-by: imjasonh <[email protected]>
…port

Add Docker credential helper support for dynamic registry authentication
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