mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-19 11:45:10 +08:00
fix: keep password in opendal config to fix connection initialization (#12529)
### What problem does this PR solve? If we delete the password in kwargs, func 'init_db_config' will fail, so we need to keep this field. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -56,12 +56,6 @@ def get_opendal_config():
|
||||
"has_credentials": any(k in kwargs for k in ("password", "connection_string")),
|
||||
}
|
||||
logging.info("Loaded OpenDAL configuration (non sensitive fields only): %s", safe_log_info)
|
||||
|
||||
# For safety, explicitly remove sensitive keys from kwargs after use
|
||||
if "password" in kwargs:
|
||||
del kwargs["password"]
|
||||
if "connection_string" in kwargs:
|
||||
del kwargs["connection_string"]
|
||||
return kwargs
|
||||
except Exception as e:
|
||||
logging.error("Failed to load OpenDAL configuration from yaml: %s", str(e))
|
||||
|
||||
Reference in New Issue
Block a user