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

use registered_domain to search in bitwarden #929

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Oct 8, 2024

Important

Change domain extraction in bitwarden.py to use registered_domain for Bitwarden searches.

  • Behavior:
    • In bitwarden.py, change domain extraction in _get_secret_value_from_url() from domain to registered_domain using tldextract.
    • This affects how URLs are processed when searching for items in Bitwarden, ensuring the full registered domain is used.

This description was created by Ellipsis for 2946cda. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 2946cda in 10 seconds

More details
  • Looked at 15 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/services/bitwarden.py:161
  • Draft comment:
    The change to use registered_domain instead of domain is correct and improves precision in domain extraction for Bitwarden searches.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from extracting the domain to extracting the registered domain is correct and aligns with the intent to search for items in Bitwarden using the registered domain. This is a more precise approach for identifying the domain associated with the URL.

Workflow ID: wflow_mPeXdTXKlVPve2ZB


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit 78c0a91 into main Oct 8, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/fix-bitwarden-domain-search branch October 8, 2024 17:07
# Extract the domain from the URL and search for items in Bitwarden with that domain
domain = tldextract.extract(url).domain
# Extract the domain(with suffix) from the URL and search for items in Bitwarden with that domain
domain = tldextract.extract(url).registered_domain
Copy link
Contributor

Choose a reason for hiding this comment

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

can we fall back to the domain if the registered_domain search doesn't return anything?

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.

3 participants