Add support for multi-token management in SmartCardUtils#239
Add support for multi-token management in SmartCardUtils#239spoore1 merged 1 commit intoSSSD:masterfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly extends the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for managing multiple smart card tokens by introducing initialize_additional_token to create new tokens without wiping existing ones, and register_for_p11_child to make them visible to p11_child. The add_cert and add_key methods are also updated to allow targeting a specific token. The changes are logical, but I have a couple of suggestions to improve maintainability and security. I've identified some code duplication that could be refactored and an instance of overly permissive file permissions that should be tightened.
spoore1
left a comment
There was a problem hiding this comment.
I'll have more comments in the test PR but this is a start.
bcdf5e8 to
4823cbb
Compare
spoore1
left a comment
There was a problem hiding this comment.
I have a few questions and suggestions. Mostly changing some of the shell commands to fs calls for the file edits/manipulations.
de46bab to
bdf0db5
Compare
spoore1
left a comment
There was a problem hiding this comment.
Overall it's looking good. Thanks for the updates. Only thing left I think is if you move enroll_to_token from SSSD#8519 to here.
1041c58 to
c8567d4
Compare
c8567d4 to
04148d8
Compare
sumit-bose
left a comment
There was a problem hiding this comment.
Hi,
thank you for the updates, ACK.
bye,
Sumit
04148d8 to
bcacdd6
Compare
|
Test failure unrelated: |
No description provided.