Disable message saving to DB via an environment variable #3837
+48
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add an environment variable
DISABLE_MESSAGE_SAVING
which disables messages being saved to the database. This is useful for scenarios where you are avoiding saving potential PII to your Flowise instance.This disables the buffer memory nodes. If they were used in a Flow it will no longer work and will instead show an error on run and in the UI. Because this is a very serious environment variable to enable, so I think this is an okay result.
Analytics integrations continue to work if enabled per flow.
Feedback will no longer work but I have not added error messages for that. I could add a validation to prevent Feedback being toggled on?
The messages UI will show a different error message:
Future upgrades to this may shift this from an environment variable to a per-flow setting but this is the simpler approach for now.
Please let me know if you would like any changes to this or there are any other potential areas impacted!
cc @tgmerritt @HenryHengZJ