Skip to content

Storing full YAML config (including passwords) in MongoDB #316

@jackdmarquez

Description

@jackdmarquez

Summary

Flowcept persists the entire YAML settings into MongoDB (Workflows collection) when project.enrich_messages=true. This includes sensitive fields (e.g., passwords).

Immediate workaround

Setting project.enrich_messages=false prevents the settings from being stored.

Proposed approach

Implement a redaction step before persisting settings:

  • Maintain a static list of sensitive keys (e.g., in configs.py) such as:
    • password, passwd, secret, token, api_key, key, credentials, etc.
  • Optionally support a configurable denylist/allowlist in settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions