Skip to content

QDrantDocumentStore serializes plaintext API key when to_dict is called #1786

Description

@mathislucka

Describe the bug
I noticed this when calling pipeline.dumps but it should be the case when simply calling to_dict on the QDrantDocumentStore as well. The YAML config for the document store will contain a metadata key which holds:

  • User-Agent
  • api-key

The api-key attribute has the api key (loaded via Secret.from_env_var) in plaintext.

Expected behavior would be that the api key does not get serialized in plain text.

To Reproduce
Create an instance of QDrantDocumentStore and call to_dict

Describe your environment (please complete the following information):

  • OS: [e.g. iOS]
  • Haystack version:
  • Integration version:

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions