Skip to content

Conversation

@saehejkang
Copy link
Contributor

@saehejkang saehejkang commented Jan 30, 2026

Type of Change

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

Motivation and Context

  • Add necessary functionality for container registry list command

Relates to: apple/container#1088

Testing

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

Copy link
Contributor

@jglogan jglogan left a comment

Choose a reason for hiding this comment

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

@saehejkang a couple suggestions so that it fits better with the managed resource plan. I've been swamped with other things and need time to think through the design a bit further for that, but we will get there soon.

}

/// List all hostnames in the keychain.
public func listHosts(id: String) throws -> [String] {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a public version of two calls if we implement the suggestion above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we do not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EDIT: I am actually unsure how this would work. I feel like both functions need to be public, unless I am interpreting your comment incorrectly?

@saehejkang saehejkang changed the title [keychain]: add functions for container registry list command [keychain]: add functionality for container registry list command Feb 2, 2026
@saehejkang saehejkang marked this pull request as ready for review February 2, 2026 04:27
Copy link
Contributor

@jglogan jglogan left a comment

Choose a reason for hiding this comment

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

@saehejkang Looks good but could you clean up the parameter usage as I mentioned in the comments? Thank you!

}
}

/// List all registry entries for this domain.
Copy link
Contributor

@jglogan jglogan Feb 2, 2026

Choose a reason for hiding this comment

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

Could you make the following formal parameter changes in KeychainHelper and KeychainQuery?

  • Use username and password for account name and credentials (not account or user).
  • Use securityDomain instead of id.
  • Use hostname instead of domain or host (or registry domain in docc).

Also can you full docc (description and parameters) on both types?

public var createdDate: Date
}

/// Holds the stored attributes for a registry.
Copy link
Contributor

Choose a reason for hiding this comment

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

Put this in its own file, and add docc for the fields (hostname is a domain name and optional port, for example).

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.

2 participants