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 14 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

@audreyality

This comment was marked as resolved.

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

@audreyality audreyality left a comment

Choose a reason for hiding this comment

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

👍🏻 Much improved! This code's looking great!

@cd-bitwarden - any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants