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

Simplelogin alias generation only generate random words instead the domain name #13024

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

Conversation

albertboyd5
Copy link
Contributor

@albertboyd5 albertboyd5 commented Jan 23, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-16171

📔 Objective

This PR addresses the issue where the Simplelogin alias generator creates random words instead of including the current website's domain name. The new implementation ensures that aliases are generated based on the active website domain and updates the Simplelogin alias note appropriately.

The alias should be generated in the format [email protected], where website is derived from the current browser tab's domain.
The alias note in Simplelogin should include:
Website: www.website.com. Generated by Bitwarden.

📸 Screenshots

browser.mp4
web.mp4

⏰ 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

@albertboyd5 albertboyd5 requested review from a team as code owners January 23, 2025 04:10

This comment was marked as resolved.

@albertboyd5 albertboyd5 changed the title Fix lint issue Simplelogin alias generation only generate random words instead the domain name Jan 23, 2025
@audreyality

This comment was marked as resolved.

@audreyality audreyality marked this pull request as draft January 23, 2025 15:45

This comment was marked as resolved.

audreyality

This comment was marked as outdated.

audreyality

This comment was marked as outdated.

Comment on lines 136 to 138
get getCipherView(): CipherView | null {
return this.updatedCipherView ?? new CipherView();
}
Copy link
Member

Choose a reason for hiding this comment

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

🎨 The cipher could be further protected if this is scoped to the uri

Copy link
Member

Choose a reason for hiding this comment

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

Yes! It would be preferable to have the updatedCipherView protected as possible to ensure the only way it is written to is through the child form controls.

Let's expose it as a read-only uri instead like you've suggested. Thanks for catching that @audreyality!

Copy link
Member

Choose a reason for hiding this comment

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

Addressed in 4f50857.

@audreyality

This comment was marked as resolved.

@audreyality audreyality marked this pull request as ready for review January 30, 2025 20:26
audreyality

This comment was marked as outdated.

@audreyality audreyality added the needs-qa Marks a PR as requiring QA approval label Feb 6, 2025
@audreyality audreyality self-assigned this Feb 6, 2025
@audreyality
Copy link
Member

@djsmith85 - added you as a reviewer since I'm now one of the authors. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-qa Marks a PR as requiring QA approval
Projects
None yet
4 participants