Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-14627] totp secret is assigned to cipher object in zohovalut-csv-importer to… #11912

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kshashikumar
Copy link

… populate when importing keys from zoho vault fixes #11872 closes #11872

🎟️ Tracking

📔 Objective

totp secret is assigned to cipher object in zohovalut-csv-importer to populate when importing keys from zoho vault fixes #11872 closes #11872

📸 Screenshots

Before
image

After
image

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@kshashikumar kshashikumar requested a review from a team as a code owner November 7, 2024 22:46
@CLAassistant
Copy link

CLAassistant commented Nov 7, 2024

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-14627
Link: https://bitwarden.atlassian.net/browse/PM-14627

@bitwarden-bot bitwarden-bot changed the title totp secret is assigned to cipher object in zohovalut-csv-importer to… [PM-14627] totp secret is assigned to cipher object in zohovalut-csv-importer to… Nov 7, 2024
Copy link
Contributor

@djsmith85 djsmith85 left a comment

Choose a reason for hiding this comment

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

@kshashikumar Thank you for your contribution 🚀

Your changes are looking good. I just tested and you can actually simply assign the full login_totp to cipher.login.totp. This has the benefit of retaining all information (secret, algorithm and period)

Would you be willing to also add unit tests for this or even for the full zohovalut-csv-importer?

Unfortunately this specific importer has no unit tests yet, but examples can be found within libs/importer/spec.

Kind regards,
Daniel

@kshashikumar
Copy link
Author

Thank you for the review @djsmith85, will update the cipher.login.totp to take full url and also will add unit tests for it. Thanks again

@kshashikumar
Copy link
Author

kshashikumar commented Nov 8, 2024

Hi @djsmith85 , updated cipher.login.totp to take full totp url and also implemented unit tests for above. Please let me know if any further changes needed. Thank you for your time and consideration.

image

image

@djsmith85 djsmith85 self-requested a review November 8, 2024 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zoho importer does not import TOTP seeds
4 participants