file upload block backend (#2000)

This commit is contained in:
Shuchang Zheng 2025-03-23 15:37:20 -07:00 committed by GitHub
parent 11ff8eb1ca
commit 6d8a49d5b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 319 additions and 101 deletions

View file

@ -298,6 +298,13 @@ class WorkflowRunContext:
LOG.error(f"Failed to get Bitwarden login credentials from AWS secrets. Error: {e}")
raise e
if not client_id:
raise ValueError("Bitwarden client ID not found")
if not client_secret:
raise ValueError("Bitwarden client secret not found")
if not master_password:
raise ValueError("Bitwarden master password not found")
if (
parameter.url_parameter_key
and self.has_parameter(parameter.url_parameter_key)
@ -395,6 +402,13 @@ class WorkflowRunContext:
LOG.error(f"Failed to get Bitwarden login credentials from AWS secrets. Error: {e}")
raise e
if not client_id:
raise ValueError("Bitwarden client ID not found")
if not client_secret:
raise ValueError("Bitwarden client secret not found")
if not master_password:
raise ValueError("Bitwarden master password not found")
bitwarden_identity_key = parameter.bitwarden_identity_key
if self.has_parameter(parameter.bitwarden_identity_key) and self.has_value(parameter.bitwarden_identity_key):
bitwarden_identity_key = self.values[parameter.bitwarden_identity_key]
@ -456,6 +470,13 @@ class WorkflowRunContext:
LOG.error(f"Failed to get Bitwarden login credentials from AWS secrets. Error: {e}")
raise e
if not client_id:
raise ValueError("Bitwarden client ID not found")
if not client_secret:
raise ValueError("Bitwarden client secret not found")
if not master_password:
raise ValueError("Bitwarden master password not found")
if self.has_parameter(parameter.bitwarden_item_id) and self.has_value(parameter.bitwarden_item_id):
item_id = self.values[parameter.bitwarden_item_id]
else: