Skip to content

Automate browser based workflows with AI

bitwarden serve service (#1895)

Shuchang Zhengda3d8dbbbbfc
diff --git a/skyvern/config.py b/skyvern/config.py
index a4d604709..cf9331016 100644
--- a/skyvern/config.py
+++ b/skyvern/config.py
@@ -157,6 +157,7 @@ class Settings(BaseSettings):
SKYVERN_AUTH_BITWARDEN_MASTER_PASSWORD: str | None = None
SKYVERN_AUTH_BITWARDEN_ORGANIZATION_ID: str | None = None
+ BITWARDEN_SERVER: str = "http://localhost"
BITWARDEN_SERVER_PORT: int = 8002
SVG_MAX_LENGTH: int = 100000
diff --git a/skyvern/forge/sdk/services/bitwarden.py b/skyvern/forge/sdk/services/bitwarden.py
index 6ad940b00..31d477328 100644
--- a/skyvern/forge/sdk/services/bitwarden.py
+++ b/skyvern/forge/sdk/services/bitwarden.py
@@ -33,6 +33,9 @@ from skyvern.forge.sdk.schemas.credentials import (
PasswordCredential,
)
+LOG = structlog.get_logger()
+BITWARDEN_SERVER_BASE_URL = f"{settings.BITWARDEN_SERVER}:{settings.BITWARDEN_SERVER_PORT or 8002}"
+
class BitwardenItemType(IntEnum):
LOGIN = 1
@@ -84,11 +87,6 @@ def get_list_response_item_from_bitwarden_item(item: dict) -> CredentialItem:
raise BitwardenGetItemError(f"Unsupported item type: {item['type']}")
-LOG = structlog.get_logger()
-
-BITWARDEN_SERVER_BASE_URL = f"http://localhost:{settings.BITWARDEN_SERVER_PORT or 8002}"
-
-
def is_valid_email(email: str | None) -> bool:
if not email:
return False